|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.common.components.PollerClient
The PollerClient class is a base class that implements the JSDT Client interface for communications with other JSDT clients.
It is up to any class that derives from the PollerClient object to set it's unique name and override the authenticate method if authentication is required.
Field Summary | |
protected String |
m_name
The acutal name of the PollerClient with respect to the JSDT library. |
Constructor Summary | |
private |
PollerClient()
The default constructor is defined and will always throw a java.lang.UnsupportedOperationException. |
|
PollerClient(String name)
Initializes a PollerClient for the derived class. |
Method Summary | |
Object |
authenticate(com.sun.media.jsdt.AuthenticationInfo info)
Used to perform any required authentication by the JSDT registry or JSDT manager. |
String |
getName()
Returns the name of the JSDT client as initialized by the class constructor. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected String m_name
The acutal name of the PollerClient with respect to the JSDT library.
Constructor Detail |
private PollerClient() throws UnsupportedOperationException
The default constructor is defined and will always throw a java.lang.UnsupportedOperationException. This behavior is to prevent an actual client object from being created without a unique name as required by the JSDT engine.
UnsupportedOperationException
- Always
thrown by this constructor.public PollerClient(String name)
Initializes a PollerClient for the derived class. The passe string is kept internally for communications with the Java Shared Data Toolkit (JSDT).
name
- The unique name of the JSDT client.Method Detail |
public Object authenticate(com.sun.media.jsdt.AuthenticationInfo info)
Used to perform any required authentication by the JSDT registry or JSDT manager. The default implementation is to return a null object so that authentication is not performed.
Note: The object returned for Authentication should be serializable.
authenticate
in interface com.sun.media.jsdt.Client
info
- The Authentication challenge from
the server.public String getName()
Returns the name of the JSDT client as initialized by the class constructor.
getName
in interface com.sun.media.jsdt.Client
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |