org.npsnet.xrti
Class MessageChannelFactory
java.lang.Object
org.npsnet.xrti.MessageChannelFactory
- Direct Known Subclasses:
- DefaultMessageChannelFactory
- public abstract class MessageChannelFactory
- extends java.lang.Object
The abstract base class of all message channel factories.
- Author:
- Andrzej Kapolka
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageChannelFactory
public MessageChannelFactory()
newChannelToExecutive
public abstract 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.
- 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 abstract MessageChannelAcceptor newFederateChannelAcceptor(java.util.Properties config)
throws java.lang.IllegalArgumentException,
java.io.IOException
- Creates a new acceptor for channels from federates.
- 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