public class LoaderCanOpenProxy extends CanOpenProxy
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FcsTcpProxy.ClientContext |
CanOpenProxy.PDOStorage| Modifier and Type | Field and Description |
|---|---|
protected FcsTcpProxy.ClientContext |
clientContext |
protected boolean |
stopping |
protected boolean |
tcpServerStarted |
bootedNodesMap, hardwareList| Constructor and Description |
|---|
LoaderCanOpenProxy(String aName,
int aTickMillis,
int portNumber,
String aClientName,
int expectedNodesNB,
long hardwareBootTimeout) |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(String clientName,
String command)
This methods send a command to the tcp client.
|
void |
connectHardware() |
void |
disconnectHardware()
This methods stops the CWrapper client, and the TCP server.
|
boolean |
isReady(String clientName) |
boolean |
isTcpServerStarted() |
void |
start()
We don't want the tcp server to be started during INITIALISATION phase.
|
void |
startServer()
Starts the server tcp on the port portNumber.
|
void |
startThreadReader()
Starts a thread which read on the tcp socket, waiting for messages coming
from tcp proxy.
|
void |
stopServer()
Stops the tcp server.
|
checkCanOpenNodeConfiguration, checkCanOpenNodes, configAsHeartbeatConsumer, configAsHeartbeatProducer, configAsHeartbeatProducer, getBootedNodesMap, getBootedNodesNB, getDetectedNodeForSerialNumber, getExpectedNodesNB, getHardwareBootTimeout, getMyClientName, getNodes, getPdoStorage, identifieHardware, initializeHardware, initModule, isBooted, isBooted, isHardwareIdentified, isHardwareInitialized, isHardwareReady, isNodeIdBootedAndOK, listHardware, listNodes, readPDOs, readSDO, readSDO, sendCanOpen, setExpectedNodesNB, setHardwareBootTimeout, setHardwareBootTimeout, tick, toString, writeSDO, writeSDOalias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected volatile boolean stopping
protected volatile boolean tcpServerStarted
protected FcsTcpProxy.ClientContext clientContext
public void start()
public void disconnectHardware()
disconnectHardware in class CanOpenProxypublic void connectHardware()
connectHardware in class CanOpenProxypublic boolean isTcpServerStarted()
@Command(type=ACTION,
level=1,
description="Starts the tcp server.")
public void startServer()
@Command(type=ACTION,
level=1,
description="Starts to listen to the tcp client.")
public void startThreadReader()
public void stopServer()
public boolean isReady(String clientName)
public Object call(String clientName, String command) throws TimeoutException, CWrapperNotConnected
clientName - command - TimeoutExceptionCWrapperNotConnectedCopyright © 2014 LSST. All Rights Reserved.