|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface must be implemented by All Adaptor Clients
| Method Summary | |
void |
addHeartBeatListener(HeartBeatListener listener)
Add the heart beat listener to this connector client |
void |
authenticate(com.adventnet.agent.security.UserContext userContext)
|
void |
connect(java.lang.String host,
int port,
java.lang.Object adaptorInfo)
Initializes the communication with the remote managed object server. |
void |
disconnect()
Diconnects the communication with the adaptor. |
void |
enableHeartBeat(boolean flag)
Enables the heart beat mechanism for this connector client |
int |
getHeartBeatRate()
Gets the heart beat rate time interval(in msec) at the connector client. |
boolean |
isAuthenticationEnabled()
|
java.lang.Boolean |
isConnectedWithAdaptor()
Indicates whether the client is connected with the adaptor. |
boolean |
isHeartBeatEnabled()
Specifies whether the heart beat mechanism is enabled for this connector client |
void |
removeHeartBeatListener(HeartBeatListener listener)
Remove a heart beat listener from this connector client |
void |
setHeartBeatRate(int rate)
Sets the heart beat rate time interval(in msec) at the connector client. |
void |
setProperty(java.lang.String propName,
java.lang.String propValue)
Method to set additional properties required by client |
void |
stopHeartBeat()
Stops the heart beat service |
| Method Detail |
public void connect(java.lang.String host,
int port,
java.lang.Object adaptorInfo)
throws java.net.ConnectException
host - The host name of the adaptor.port - The port number of the adaptor.adaptorInfo - The information object specific to the adaptor.public void disconnect()
public java.lang.Boolean isConnectedWithAdaptor()
throws java.net.NoRouteToHostException
public void enableHeartBeat(boolean flag)
flag - true to enable the heartbeatpublic boolean isHeartBeatEnabled()
public int getHeartBeatRate()
public void setHeartBeatRate(int rate)
rate - the heart beat rate time interval at the connector client
Default is 2000 msec i.e 2 secondspublic void addHeartBeatListener(HeartBeatListener listener)
listener - the heartbeat listenerpublic void removeHeartBeatListener(HeartBeatListener listener)
listener - the heartbeat listenerpublic void stopHeartBeat()
public boolean isAuthenticationEnabled()
public void authenticate(com.adventnet.agent.security.UserContext userContext)
throws com.adventnet.agent.security.AuthenticationException
public void setProperty(java.lang.String propName,
java.lang.String propValue)
propName - key for the propertypropValue - value of the property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||