|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface enables to control the ability of establishing a connection and session start state in a connection. The application sets connection controller. The ConnectionController is used by the ETA implementation in two cases: a) First case, whenever the ETA has to decide whether to open connection in the IPDR/SP level (initiate "connect" message or just before response to "connect" message). The ETA MUST invoke canConnect and initiate (or response to) "connect" message just if true is returned (otherwise it will wait and retry later according to the configuration). b) Second case, just before opening active session (sending "start session" message to the collection system). In such case the ETA implementation MUST first invoke canStartSession and send "session start" just if true is returned (otherwise it will wait and retry later according to the configuration). This interface is returned by the ConnectionControllerFactory
ConnectionControllerFactory.getConnectionController()
,
ConnectionControllerFactory
Method Summary | |
boolean |
canConnect(java.lang.String collectorIdentifier,
ConnectionConfig connectionConfig)
Enables controlling the initialization of a connection. |
boolean |
canStartSession(java.lang.String collectorIdentifier,
ConnectionConfig connectionConfig,
SessionConfig sessionConfig)
Informs the caller whether or not it can start an "active session". |
Method Detail |
public boolean canConnect(java.lang.String collectorIdentifier, ConnectionConfig connectionConfig)
collectorIdentifier
- the collector identifier (IPv4 "dotted decimal notation")connectionConfig
- The connection configuration
public boolean canStartSession(java.lang.String collectorIdentifier, ConnectionConfig connectionConfig, SessionConfig sessionConfig)
collectorIdentifier
- the collector identifier (IPv4 "dotted decimal notation")connectionConfig
- the current connection configurationsessionConfig
- the relevant session configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |