public class RemoteServerController extends AbstractAggreGateDeviceController<RemoteServer,RemoteContextManager>
commandWriter, FLAG_NO_REPLY| Constructor and Description |
|---|
RemoteServerController(RemoteServer device,
boolean async) |
RemoteServerController(RemoteServer device,
boolean async,
boolean json) |
RemoteServerController(RemoteServer device,
boolean async,
boolean useContextManager,
org.apache.log4j.Logger logger,
int maxEventQueueLength) |
RemoteServerController(RemoteServer device,
boolean async,
boolean useContextManager,
org.apache.log4j.Logger logger,
int maxEventQueueLength,
boolean json) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
connectImpl() |
java.util.TimerTask |
createConnectionTimer() |
protected void |
disconnectImpl() |
java.lang.String |
getAddress() |
protected java.lang.String |
getConnectionErrorMessage() |
protected BlockingChannel |
getDataChannel() |
boolean |
isConnected() |
protected boolean |
loginImpl() |
protected void |
prepareDataChannel() |
void |
removeConnectionTimerTask() |
protected void |
send(OutgoingAggreGateCommand cmd) |
protected void |
setDataChannel(BlockingChannel socketChannel) |
void |
start() |
void |
startConnectionTimerTask(java.lang.String name) |
void |
startConnectionTimerTask(java.lang.String name,
long delay,
long period) |
addDisconnectListener, callRemoteFunction, callRemoteFunction, confirmEvent, createClassicEncodingSettings, decodeRemoteDataTable, destroy, getCallerController, getCommandBuilder, getContextManager, getDevice, getEventPreprocessor, getEventQueueLength, getFormatCache, getProtocolVersion, getProxyContexts, getRejectedEvents, getSettings, isAvoidSendingFormats, isPropagateUnifiedSearchRequests, isUsesCompression, processAsyncCommand, sendCommandAndCheckReplyCode, setAvoidSendingFormats, setCallerController, setCommandParser, setContextManager, setDevice, setFormatCache, setUsesCompression, toStringcheckAndConnect, connect, disconnect, getActiveCommands, getCommandParser, getCommandTimeout, getLogger, getStatistics, isActive, isLoggedIn, login, newDataReceived, resetCommandTimeouts, sendCommand, setCommandTimeout, setConnected, setLoggedIn, setResetTimeoutsOnData, startCommandProcessorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconnect, disconnect, getActiveCommands, getStatistics, isActive, login, sendCommandpublic RemoteServerController(RemoteServer device, boolean async)
public RemoteServerController(RemoteServer device, boolean async, boolean json)
public RemoteServerController(RemoteServer device, boolean async, boolean useContextManager, org.apache.log4j.Logger logger, int maxEventQueueLength)
public RemoteServerController(RemoteServer device, boolean async, boolean useContextManager, org.apache.log4j.Logger logger, int maxEventQueueLength, boolean json)
protected boolean connectImpl()
throws java.lang.InterruptedException,
DisconnectionException,
java.io.IOException,
RemoteDeviceErrorException,
ContextException
connectImpl in class AbstractAggreGateDeviceController<RemoteServer,RemoteContextManager>java.lang.InterruptedExceptionDisconnectionExceptionjava.io.IOExceptionRemoteDeviceErrorExceptionContextExceptionprotected void prepareDataChannel()
throws RemoteDeviceErrorException
RemoteDeviceErrorExceptionprotected java.lang.String getConnectionErrorMessage()
protected boolean loginImpl()
throws ContextException
loginImpl in class AbstractDeviceController<IncomingAggreGateCommand,OutgoingAggreGateCommand>ContextExceptionpublic void start()
throws java.io.IOException,
java.lang.InterruptedException,
ContextException,
RemoteDeviceErrorException
start in interface AggreGateDeviceController<IncomingAggreGateCommand,OutgoingAggreGateCommand>start in class AbstractAggreGateDeviceController<RemoteServer,RemoteContextManager>java.io.IOExceptionjava.lang.InterruptedExceptionContextExceptionRemoteDeviceErrorExceptionprotected void disconnectImpl()
disconnectImpl in class AbstractAggreGateDeviceController<RemoteServer,RemoteContextManager>protected void send(OutgoingAggreGateCommand cmd) throws DisconnectionException, java.io.IOException
send in class AbstractDeviceController<IncomingAggreGateCommand,OutgoingAggreGateCommand>DisconnectionExceptionjava.io.IOExceptionprotected void setDataChannel(BlockingChannel socketChannel)
protected BlockingChannel getDataChannel()
public boolean isConnected()
isConnected in class AbstractDeviceController<IncomingAggreGateCommand,OutgoingAggreGateCommand>public java.lang.String getAddress()
public void startConnectionTimerTask(java.lang.String name)
public void startConnectionTimerTask(java.lang.String name,
long delay,
long period)
public void removeConnectionTimerTask()
public java.util.TimerTask createConnectionTimer()