org.npsnet.xrti
Class DefaultMessageChannelFactory

java.lang.Object
  extended byorg.npsnet.xrti.MessageChannelFactory
      extended byorg.npsnet.xrti.DefaultMessageChannelFactory

public class DefaultMessageChannelFactory
extends MessageChannelFactory

The default message channel factory. Creates instances of InternetMessageChannel.

Author:
Andrzej Kapolka

Constructor Summary
DefaultMessageChannelFactory()
           
 
Method Summary
 MessageChannelAcceptor newFederateChannelAcceptor(java.util.Properties config)
          Creates a new acceptor for channels from federates.
 MessageChannel newChannelToExecutive(java.util.Properties config)
          Creates a new channel to the XRTI Executive based on the specified configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageChannelFactory

public DefaultMessageChannelFactory()
Method Detail

newChannelToExecutive

public MessageChannel newChannelToExecutive(java.util.Properties config)
                                     throws java.lang.IllegalArgumentException,
                                            java.io.IOException
Creates a new channel to the XRTI Executive based on the specified configuration.

Specified by:
newChannelToExecutive in class MessageChannelFactory
Parameters:
config - the configuration properties to use
Returns:
the newly created channel
Throws:
java.lang.IllegalArgumentException - if the configuration properties are invalid
java.io.IOException - if the channel could not be created

newFederateChannelAcceptor

public MessageChannelAcceptor newFederateChannelAcceptor(java.util.Properties config)
                                                  throws java.lang.IllegalArgumentException,
                                                         java.io.IOException
Creates a new acceptor for channels from federates.

Specified by:
newFederateChannelAcceptor in class MessageChannelFactory
Parameters:
config - the configuration properties to use
Returns:
the newly created acceptor
Throws:
java.lang.IllegalArgumentException - if the configuration properties are invalid
java.io.IOException - if the acceptor could not be created