public class SimuCanOpenProxy extends CanOpenProxy
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FcsTcpProxy.ClientContext |
org.lsst.ccs.framework.Module.ValueUpdate| Modifier and Type | Field and Description |
|---|---|
protected FcsTcpProxy.ClientContext |
clientContext |
protected Condition |
hardwareBooted |
protected Lock |
lock |
protected boolean |
stopped |
protected boolean |
stopping |
protected boolean |
tcpServerStarted |
bootingCompleted, 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()
This method has to be tested on test benches.
|
int |
getPortNumber() |
void |
initModule() |
boolean |
isReady(String clientName) |
boolean |
isTcpServerStarted() |
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.
|
canClearAlert, checkCanOpenNodes, checkHardwareID, checkNewHardware, checkStarted, checkStopped, configAsHeartbeatConsumer, configAsHeartbeatProducer, configAsHeartbeatProducer, connectHardware, disconnectHardware, getBootedNodeBySerialNumber, getExpectedNodesNB, getHardwareBootTimeout, getHardwareList, getMyClientName, getNodeName, getPdoStorage, identifyHardware, isHardwareIdentified, isHardwareReady, listHardware, listHardwareNames, listNodes, printBootedNodeBySerialNumber, processSDORequestError, publishData, publishHardwareData, readDevicesInfo, readPDOs, readSDO, readSDO, sendCanOpenCommand, setHardwareBootTimeout, setHardwareBootTimeout, setHardwareList, shutdownNow, toString, updateDeviceInfo, writeSDO, writeSDOgetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, submitChange, submitChanges, validateBulkChangeprotected volatile boolean stopped
protected volatile boolean stopping
protected volatile boolean tcpServerStarted
protected FcsTcpProxy.ClientContext clientContext
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
CanOpenProxycheckHardware in interface org.lsst.ccs.framework.HardwareControllercheckHardware in class CanOpenProxyorg.lsst.ccs.HardwareExceptionpublic boolean isTcpServerStarted()
public int getPortNumber()
public void start()
public boolean isReady(String clientName)
public Object call(String clientName, String command) throws CWrapperNotConnected, CanOpenCallTimeoutException
clientName - command - CWrapperNotConnectedCanOpenCallTimeoutExceptionCopyright © 2016 LSST. All rights reserved.