|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hyperic.hq.agent.server.AgentConnectionListener
public abstract class AgentConnectionListener
The AgentConnectionListener is an interface for plugins which wish to handle incoming connections & pass them off to the agent.
| Constructor Summary | |
|---|---|
AgentConnectionListener(AgentConfig cfg)
Setup the connection listener. |
|
| Method Summary | |
|---|---|
abstract void |
cleanup()
Called by the agent when the connection listener should cleanup all resources such as sockets, open files, etc. |
protected AgentConfig |
getConfig()
|
abstract AgentServerConnection |
getNewConnection()
Fetch a new incoming connection and return it to the agent. |
abstract void |
setup(int timeout)
Initialize the listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentConnectionListener(AgentConfig cfg)
| Method Detail |
|---|
protected AgentConfig getConfig()
public abstract AgentServerConnection getNewConnection()
throws AgentConnectionException,
java.io.InterruptedIOException
AgentConnectionException - on generic connection failures
java.io.InterruptedIOException - if a timeout occurred waiting for the
connection
public abstract void setup(int timeout)
throws AgentStartException
timeout - Timeout in milliseconds to wait for a connection
AgentStartExceptionpublic abstract void cleanup()
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||