com.apama.engine
Class EngineConnection

java.lang.Object
  extended by com.apama.engine.EngineConnection

public class EngineConnection
extends java.lang.Object

EngineConnection encapsulates the information related to a connection between two Apama messaging components.

See Also:
ConnectOperationsInterface.setPersistentReceiveConnections(EngineConnection...)

Constructor Summary
EngineConnection(java.lang.String host, int port, java.lang.String... channels)
           
 
Method Summary
 java.lang.String[] getChannels()
          Get the channels associated with this connection.
 java.lang.String getHost()
          Get the host associated with this connection.
 int getPort()
          Get the port associated with this connection.
 java.lang.String toString()
          A string representation for diagnostics; may change in a future release.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EngineConnection

public 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.
Method Detail

getChannels

public java.lang.String[] getChannels()
Get the channels associated with this connection.

Returns:
The list of channels that the downstream component should listen to.

getHost

public java.lang.String getHost()
Get the host associated with this connection.

Returns:
The host of the upstream (even-sending) component

getPort

public int getPort()
Get the port associated with this connection.

Returns:
The port of the upstream (even-sending) component

toString

public java.lang.String toString()
A string representation for diagnostics; may change in a future release.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG