
public class SimuCanOpenProxy 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 static Logger |
fcslog |
protected Condition |
hardwareBooted |
protected Lock |
lock |
protected boolean |
stopped |
protected boolean |
stopping |
protected boolean |
tcpServerStarted |
bootedNodesMap, hardwareList| Constructor and Description |
|---|
SimuCanOpenProxy(String aName,
int aTickMillis,
int portNumber,
String aClientName,
long hardwareBootTimeout) |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(String clientName,
String command)
This methods send a command to the tcp client.
|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware() |
int |
getPortNumber() |
void |
initModule() |
boolean |
isReady(String clientName) |
boolean |
isTcpServerStarted() |
void |
shutdownNow() |
void |
start() |
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.
|
checkCanOpenNodes, checkHardwareID, checkNewHardware, checkStarted, checkStopped, configAsHeartbeatConsumer, configAsHeartbeatProducer, configAsHeartbeatProducer, connectHardware, disconnectHardware, displayReadPDOs, getBootedNodesMap, getBootedNodesNB, getDetectedNodeForSerialNumber, getExpectedNodesNB, getHardwareBootTimeout, getHardwareList, getMyClientName, getNodeName, getNodes, getPdoStorage, identifieHardware_old, identifyHardware, isBooted, isHardwareIdentified, isHardwareReady, listHardware, listNodes, publishData, publishHardwareData, readPDOs, readSDO, readSDO, sendCanOpen, setExpectedNodesNB, setHardwareBootTimeout, setHardwareBootTimeout, tick, toString, writeSDO, writeSDOalias, getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected volatile boolean stopped
protected volatile boolean stopping
protected volatile boolean tcpServerStarted
protected FcsTcpProxy.ClientContext clientContext
protected static final Logger fcslog
protected final Lock lock
protected final Condition hardwareBooted
public void initModule()
initModule in class CanOpenProxypublic void startServer()
public void startThreadReader()
public void stopServer()
public org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
checkHardware in interface org.lsst.ccs.framework.HardwareControllercheckHardware in class CanOpenProxyorg.lsst.ccs.HardwareExceptionpublic boolean isTcpServerStarted()
public int getPortNumber()
public void start()
public void shutdownNow()
shutdownNow in interface org.lsst.ccs.framework.ConfigurableshutdownNow in class org.lsst.ccs.framework.Modulepublic boolean isReady(String clientName)
public Object call(String clientName, String command) throws CWrapperNotConnected, CanOpenCallTimeoutException
clientName - command - CWrapperNotConnectedCanOpenCallTimeoutExceptionCopyright © 2015 LSST. All rights reserved.