|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Client
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 |
| Methods inherited from interface javax.management.MBeanServer |
|---|
addNotificationListener, addNotificationListener, createMBean, createMBean, createMBean, createMBean, deserialize, deserialize, deserialize, getAttribute, getAttributes, getClassLoader, getClassLoaderFor, getClassLoaderRepository, getDefaultDomain, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, instantiate, instantiate, instantiate, instantiate, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, registerMBean, removeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean |
| Method Detail |
|---|
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.
java.net.ConnectExceptionvoid disconnect()
java.lang.Boolean isConnectedWithAdaptor()
throws java.net.NoRouteToHostException
java.net.NoRouteToHostExceptionvoid enableHeartBeat(boolean flag)
flag - true to enable the heartbeatboolean isHeartBeatEnabled()
int getHeartBeatRate()
void setHeartBeatRate(int rate)
rate - the heart beat rate time interval at the connector client
Default is 2000 msec i.e 2 secondsvoid addHeartBeatListener(HeartBeatListener listener)
listener - the heartbeat listenervoid removeHeartBeatListener(HeartBeatListener listener)
listener - the heartbeat listenervoid stopHeartBeat()
boolean isAuthenticationEnabled()
void authenticate(com.adventnet.agent.security.UserContext userContext)
throws com.adventnet.agent.security.AuthenticationException
com.adventnet.agent.security.AuthenticationException
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||