org.npsnet.xrti
Class DefaultMessageChannelFactory
java.lang.Object
org.npsnet.xrti.MessageChannelFactory
org.npsnet.xrti.DefaultMessageChannelFactory
- public class DefaultMessageChannelFactory
- extends MessageChannelFactory
The default message channel factory. Creates instances
of InternetMessageChannel.
- Author:
- Andrzej Kapolka
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMessageChannelFactory
public DefaultMessageChannelFactory()
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