Package com.apama.engine
Class EngineConnection
- java.lang.Object
- 
- com.apama.engine.EngineConnection
 
- 
 public class EngineConnection extends java.lang.ObjectEngineConnection encapsulates the information related to a connection between two Apama messaging components.
- 
- 
Constructor SummaryConstructors Constructor Description EngineConnection(java.lang.String host, int port, boolean disconnectSlow, ConnectMode connectMode, java.lang.String... channels)EngineConnection(java.lang.String host, int port, java.lang.String... channels)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getChannels()Get the channels associated with this connection.ConnectModegetConnectMode()Get the connection mode associated with this connection.booleangetDisconnectSlow()Get the value of disconnectSlow flag associated with this connection.java.lang.StringgetHost()Get the host associated with this connection.intgetPort()Get the port associated with this connection.java.lang.StringtoString()A string representation for diagnostics; may change in a future release.
 
- 
- 
- 
Constructor Detail- 
EngineConnectionpublic EngineConnection(java.lang.String host, int port, java.lang.String... channels)- Parameters:
- host- The remote host to connect to
- port- The remote port to connect to
- channels- The array of channels to connect to. May include the empty String to indicate the default channel. Must be non-null, and contain no null elements.
 
 - 
EngineConnectionpublic EngineConnection(java.lang.String host, int port, boolean disconnectSlow, ConnectMode connectMode, java.lang.String... channels)- Parameters:
- host- The remote host to connect to
- port- The remote port to connect to
- disconnectSlow- Whether we should be disconnected if we don't keep up.
- connectMode- The connection mode to use. Set to LEGACY for single connection, all events delivered to the default channel. Set to PARALLEL for connection per channel and channel values passed through.
- channels- The array of channels to connect to. May include the empty String to indicate the default channel. Must be non-null, and contain no null elements.
 
 
- 
 - 
Method Detail- 
getChannelspublic java.lang.String[] getChannels() Get the channels associated with this connection.- Returns:
- The list of channels that the downstream component should listen to.
 
 - 
getHostpublic java.lang.String getHost() Get the host associated with this connection.- Returns:
- The host of the upstream (even-sending) component
 
 - 
getPortpublic int getPort() Get the port associated with this connection.- Returns:
- The port of the upstream (even-sending) component
 
 - 
getConnectModepublic ConnectMode getConnectMode() Get the connection mode associated with this connection.- Returns:
- The connection mode associated with this connection.
 
 - 
getDisconnectSlowpublic boolean getDisconnectSlow() Get the value of disconnectSlow flag associated with this connection.- Returns:
- returns true if we should be disconnected if this connection is slow.
 
 - 
toStringpublic java.lang.String toString() A string representation for diagnostics; may change in a future release.- Overrides:
- toStringin class- java.lang.Object
- See Also:
- Object.toString()
 
 
- 
 
-