public class Agent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
static int |
DEFAULT_SECURE_PORT |
| Constructor and Description |
|---|
Agent(AgentContext context) |
Agent(AgentContext context,
boolean useSecureConnection,
boolean useDataCompression,
int bufferSize) |
Agent(AgentContext context,
boolean useSecureConnection,
boolean useDataCompression,
int bufferSize,
int pendingEventsQueueCapacity,
int maxCommandExecutors) |
Agent(RemoteServer server,
java.lang.String name,
boolean eventConfirmation) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
protected BlockingChannel |
constructChannel() |
void |
disconnect() |
AgentContext |
getContext() |
java.lang.Long |
getLastDataTimestamp() |
int |
getPendingEventsCount() |
RemoteServer |
getServer() |
long |
getStartMessageCount() |
boolean |
isConnected() |
void |
run() |
public static final int DEFAULT_PORT
public static final int DEFAULT_SECURE_PORT
public Agent(RemoteServer server, java.lang.String name, boolean eventConfirmation)
public Agent(AgentContext context)
public Agent(AgentContext context, boolean useSecureConnection, boolean useDataCompression, int bufferSize)
public Agent(AgentContext context, boolean useSecureConnection, boolean useDataCompression, int bufferSize, int pendingEventsQueueCapacity, int maxCommandExecutors)
public void connect()
throws RemoteDeviceErrorException
RemoteDeviceErrorExceptionprotected BlockingChannel constructChannel() throws java.io.IOException
java.io.IOExceptionpublic void disconnect()
public void run()
throws DisconnectionException,
SyntaxErrorException,
java.io.IOException
DisconnectionExceptionSyntaxErrorExceptionjava.io.IOExceptionpublic long getStartMessageCount()
public java.lang.Long getLastDataTimestamp()
public RemoteServer getServer()
public AgentContext getContext()
public boolean isConnected()
public int getPendingEventsCount()