org.jlab.coda.afecs.codarc
Class CodaRCAgent
java.lang.Object
org.jlab.coda.afecs.system.ABase
org.jlab.coda.afecs.agent.AAParent
org.jlab.coda.afecs.agent.ARAgent
org.jlab.coda.afecs.codarc.CodaRCAgent
public class CodaRCAgent
- extends ARAgent
JSA: Thomas Jefferson National Accelerator Facility
This software was developed under a United States Government license,
described in the NOTICE file included as part of this distribution.
Copyright (c), May 6, 2011
Methods inherited from class org.jlab.coda.afecs.system.ABase |
B2O, codaInfoGetCodaClass, codaInfoGetObjectType, codaInfoGetState, codaInfoGetStatus, codaInfoSyncGetCodaClass, codaInfoSyncGetObjectType, codaInfoSyncGetStatus, connect, connect, connect, dalogMsg, dalogMsg, disconnect, getCurrentTime, getCurrentTime, getCurrentTimeInMs, getPlDescription, getPlEXPID, getPlMulticastUDL, getPlUDL, isConnected, isNumber, isRcClientConnected, msg2xml, msgForward, multicastConnect, multicastConnect, O2B, p2pSend, p2pSend, p2pSend, p2pSend, rcClientConnect, rcClientDisconnect, rcClientInfoSyncGetState, rcConnect, rcMonitor, rcp2pSend, rcp2pSend, rcSend, rcSend, rcSend, rcSend, rcSend, rcSend, rcSend, rcSend, readFileAsString, removeUnixShellProcess, reporAlarmMsg, reportAlarmMsg, reportAlarmMsg, runControlGetConfigId, runControlGetRunNumber, runControlGetRunType, runControlSetRunNumber, runControlSetRunType, runControlSyncGetRunNumber, runControlSyncGetRunType, runShellCommand, send, send, send, send, send, send, send, sessionControlConfigure, sessionControlExit, sessionControlGetSession, sessionControlSetInterval, sessionControlSetSession, sessionControlSetState, sessionControlStartReporting, sessionControlStopReporting, sessionControlSyncGetSession, sleep, updateHostUdl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clientLastReportedTime
public java.util.concurrent.atomic.AtomicLong clientLastReportedTime
averageCount
public long averageCount
CodaRCAgent
public CodaRCAgent(AComponent comp)
aL_setup
public boolean aL_setup()
- Specified by:
aL_setup
in class ARAgent
aL_moveToState
public boolean aL_moveToState(java.lang.String stateName)
- Specified by:
aL_moveToState
in class ARAgent
aL_reset
public boolean aL_reset()
- Specified by:
aL_reset
in class ARAgent
aL_abort
public boolean aL_abort()
- Specified by:
aL_abort
in class ARAgent
getStateRequiredClientResponse
public java.util.ArrayList<java.lang.String> getStateRequiredClientResponse(java.lang.String requiredState)
- Returns the expected response string described in the cool state description
N.B. for the coda run control expected state name is described as the received package text
If there are more then one process described to be executed at least one must have a
return text described, or all must return the same text.
This text is going to be assigned as a state name for the client representing agent.
- Parameters:
requiredState
- actual state name to be transitioned
- Returns:
- the response string
calculateAverages
public void calculateAverages()
- Calculates average values for event rate and data rate