javax.microedition.ipdr.configuration
Interface ConnectionConfig


public interface ConnectionConfig

This interface provides the configuration of the Connection. ETA defines that at least one implementation must be implemented by the ETA implementer. The required implementation takes all the information from the JAD/manifest

Version:
1.0
Author:
Shai Gotlib

Field Summary
static int INFINITE
          Indicates that connection attempts should be retried indefinitely
 
Method Summary
 void addReference()
          Adds a reference to this connection configuration
 CollectorConfig getCollectorConfig()
          Returns the collector configuration that this connection belongs too
 java.lang.String getCollectorHost()
          Returns the collector Host in IPv4 "dotted decimal notation"
 java.lang.String getCollectorIdentifier()
          Returns the collector identifier in IPv4 "dotted decimal notation"
 int getCollectorPort()
          Returns a collector TCP port
 int getConnectionCount()
          Returns the number of allowed connections
 java.lang.String getConnectionDescription()
          Returns a verbal description of the connection
 int getConnectTimeout()
          Returns a connect timeout in seconds
 ExporterConfig getExporterConfig()
          Returns ExporterConfig - instance of the exporter configuration
 int getKeepAliveInterval()
          Returns an exporter's keep alive interval in seconds
 int getReferenceCount()
          Returns current reference count (number of existing connections that use this configuration)
 int getRetryCount()
          Returns a number of retries for connection attempts
 int getRetryInterval()
          Returns the interval between connection attempts, in seconds
 SessionConfig getSessionConfig(byte sessionId)
          Returns the configuration of the session
 int getWaitingForCollectorsTimeout()
          Returns the WaitingForCollectorsTimeout.
 boolean isPassiveConnection()
          Returns true if the connection is passive false otherwise
 void removeReference()
          Removes a reference from this connection configuration
 

Field Detail

INFINITE

public static final int INFINITE
Indicates that connection attempts should be retried indefinitely

See Also:
Constant Field Values
Method Detail

addReference

public void addReference()
Adds a reference to this connection configuration


getExporterConfig

public ExporterConfig getExporterConfig()
Returns ExporterConfig - instance of the exporter configuration

Returns:
ExporterConfigIinstance
See Also:
ExporterConfig

getConnectionCount

public int getConnectionCount()
Returns the number of allowed connections

Returns:
the number of allowed connections (int)

getConnectionDescription

public java.lang.String getConnectionDescription()
Returns a verbal description of the connection

Returns:
verbal description of the connection (String)

getConnectTimeout

public int getConnectTimeout()
Returns a connect timeout in seconds

Returns:
connect timeout in seconds (int)

getCollectorIdentifier

public java.lang.String getCollectorIdentifier()
Returns the collector identifier in IPv4 "dotted decimal notation"

Returns:
collector identifier in IPv4 "dotted decimal notation" (String)

getCollectorHost

public java.lang.String getCollectorHost()
Returns the collector Host in IPv4 "dotted decimal notation"

Returns:
the collector Host in IPv4 "dotted decimal notation" (String)

getCollectorPort

public int getCollectorPort()
Returns a collector TCP port

Returns:
collector TCP port (int)

getCollectorConfig

public CollectorConfig getCollectorConfig()
Returns the collector configuration that this connection belongs too

Returns:
collector configuration that this connection belongs too (CollectorConfig)

getKeepAliveInterval

public int getKeepAliveInterval()
Returns an exporter's keep alive interval in seconds

Returns:
an exporter's keep alive interval in seconds

getReferenceCount

public int getReferenceCount()
Returns current reference count (number of existing connections that use this configuration)

Returns:
current reference count (number of existing connections that use this configuration)(int)

getRetryCount

public int getRetryCount()
Returns a number of retries for connection attempts

Returns:
number of retries for connection attempts (int)

getRetryInterval

public int getRetryInterval()
Returns the interval between connection attempts, in seconds

Returns:
the interval between connection attempts, in seconds (int)

isPassiveConnection

public boolean isPassiveConnection()
Returns true if the connection is passive false otherwise

Returns:
true if the connection is passive false otherwise (boolean)

removeReference

public void removeReference()
Removes a reference from this connection configuration

Returns:
void

getWaitingForCollectorsTimeout

public int getWaitingForCollectorsTimeout()
Returns the WaitingForCollectorsTimeout. This parameter indicate the ETA how long to wait for the high priority collector.

Returns:
the WaitingForCollectorsTimeout

getSessionConfig

public SessionConfig getSessionConfig(byte sessionId)
Returns the configuration of the session

Parameters:
sessionId - the session Id
Returns:
The session configuration (SessionConfig)