AgentServerConnection (Hyperic HQ Plugin API)
Keywords: org.hyperic.hq.agent.server.AgentServerConnection class

Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

## org.hyperic.hq.agent.server
Class AgentServerConnection

    java.lang.Object
      org.hyperic.hq.agent.server.AgentServerConnection

    public abstract class AgentServerConnection

extends java.lang.Object

This class represents an incoming connection to the agent. AgentConnectionListener objects return these when incoming connections are received.

Constructor Summary
`AgentServerConnection()`

Method Summary
`abstract void` | `close()` Close the connection.
`abstract java.io.InputStream` | `getInputStream()` Get a stream which can be used to read data from the connection.
`abstract java.io.OutputStream` | `getOutputStream()` Get a stream which can be used to write data to the connection.
`AgentCommand` | `readCommand()` Read the command invocation information from the client
`void` | `sendErrorResponse(java.lang.String msg)`
`void` | `sendSuccessResponse(AgentRemoteValue res)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AgentServerConnection

    public AgentServerConnection()

Method Detail

### getInputStream

    public abstract java.io.InputStream getInputStream()
                                                throws AgentConnectionException

  Get a stream which can be used to read data from the connection.

  Throws:
    `AgentConnectionException`

### getOutputStream

    public abstract java.io.OutputStream getOutputStream()
                                                  throws AgentConnectionException

  Get a stream which can be used to write data to the connection.

  Throws:
    `AgentConnectionException`

### close

    public abstract void close()

  Close the connection.

### readCommand

    public AgentCommand readCommand()
                             throws AgentConnectionException,
                                    java.io.EOFException

  Read the command invocation information from the client

  Throws:
    `AgentConnectionException`
    `java.io.EOFException`

### sendErrorResponse

    public void sendErrorResponse(java.lang.String msg)
                           throws AgentConnectionException

  Throws:
    `AgentConnectionException`

### sendSuccessResponse

    public void sendSuccessResponse(AgentRemoteValue res)
                             throws AgentConnectionException

  Throws:
    `AgentConnectionException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.