|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.afecs.system.ABase
org.jlab.coda.afecs.archive.AAgent
org.jlab.coda.afecs.archive.ASupervisor
public class ASupervisor
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), Aug 17, 2009
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jlab.coda.afecs.agent.AAgent |
---|
AAgent.AsyncProcessThread, AAgent.MonProcessThread, AAgent.ReportDalogThread, AAgent.ReportLoadThread, AAgent.ReportStatusThread, AAgent.ShellExecutionThread |
Field Summary |
---|
Fields inherited from class org.jlab.coda.afecs.agent.AAgent |
---|
AbortRequest, activeMoveToState, cMsgRequests, me, myLoad, myMonProcesses, myPlugin, myStartTime, ResetRequest |
Fields inherited from class org.jlab.coda.afecs.system.ABase |
---|
myConfig, myCRCClientConnection, myName, myPlatformConnection, myRcDomainConnection |
Constructor Summary | |
---|---|
ASupervisor(AComponent ad)
No arg constructor calls parent AAgent constructor |
Method Summary | |
---|---|
void |
agentControlRequestAbort(java.lang.String initiator)
This method gets called when one of the supervised agent requests abort. |
void |
agentControlRequestClientReconnect(org.jlab.coda.cMsg.cMsgMessage msg)
|
void |
agentControlRequestConfigure(AComponent ac)
|
void |
agentControlRequestMoveToState(java.lang.String state)
Request supervisor to move to the state. |
void |
agentControlRequestPlatformDisconnect()
This will disconnect agent from the platform. |
void |
agentControlRequestReleaseComponent()
This will tell all the agents under its control to release their components. |
void |
agentControlRequestReset(java.lang.String initiator)
This method gets called when one of the supervised agents requests reset. |
void |
agentControlrequestSetRunNumber(int runnum)
|
void |
stopServiceExecutionThread()
Stops service execution thread |
void |
supAgentDifferentiate(AControl c)
Configure method. |
void |
supAgentReset()
Supervisor reset method. |
void |
supervisorControlRequestConfigure(AControl control)
|
Methods inherited from class org.jlab.coda.afecs.agent.AAgent |
---|
configure, connect2cMsg, differentiate, doSubscriptions, executeProcess, executeProcess, executeShellScript, isSet, moveToState, register, removeRegistration, reportLoad, reportStatus, reset, startDalogReporting, startLoadReporting, startStatusReporting, stopDalogReporting, stopLoadReporting, stopMonProcesses, stopStatusReporting, unsubscribeAll |
Methods inherited from class org.jlab.coda.afecs.system.ABase |
---|
B2O, connect, connect, connect, dalogMsg, dalogMsg, disconnect, getCurrentTime, getCurrentTime, getCurrentTimeInMs, getPlDescription, getPlEXPID, getPlMulticastUDL, getPlUDL, isConnected, isRCDomainConnected, msg2xml, msgForward, multicastConnect, multicastConnect, O2B, p2pSend, p2pSend, p2pSend, p2pSend, rcConnect, rcDomaindisconnect, rcMonitor, rcp2pSend, rcSend, rcSend, rcSend, rcSend, rcSend, rcSend, rcSend, removeUnixShellProcess, reporAlarmMsg, reportAlarmMsg, reportAlarmMsg, runShellCommand, send, send, send, send, send, send, send, sleep, updateHostUdl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASupervisor(AComponent ad)
AAgent
constructor
ad
- AComponent
object referenceMethod Detail |
---|
public void agentControlRequestAbort(java.lang.String initiator)
agentControlRequestAbort
in class AAgent
initiator
- agent name who initiates the abortpublic void agentControlRequestClientReconnect(org.jlab.coda.cMsg.cMsgMessage msg)
agentControlRequestClientReconnect
in class AAgent
public void agentControlRequestConfigure(AComponent ac)
agentControlRequestConfigure
in class AAgent
public void agentControlRequestMoveToState(java.lang.String state)
agentControlRequestMoveToState
in class AAgent
state
- The name of the state to be moved to.public void agentControlRequestPlatformDisconnect()
AAgent
agentControlRequestPlatformDisconnect
in class AAgent
public void agentControlRequestReleaseComponent()
agentControlRequestReleaseComponent
in class AAgent
public void agentControlRequestReset(java.lang.String initiator)
agentControlRequestReset
in class AAgent
initiator
- agent name who initiates the resetpublic void agentControlrequestSetRunNumber(int runnum)
agentControlrequestSetRunNumber
in class AAgent
public void stopServiceExecutionThread()
public void supAgentDifferentiate(AControl c)
AAgent.differentiate(org.jlab.coda.afecs.cool.ontology.AComponent)
method. Calls supervisor reset.
First calls AAgent.differentiate(org.jlab.coda.afecs.cool.ontology.AComponent)
method by setting its state to configuring, and then calls supervisor differentiate methos
c
- AComponent
object reference,
as a result CParser
parsing rdf configuration
file for the configured control.Next it sets the required state to
{@link org.jlab.coda.afecs.system.AConstants\#booted}.
Starts supervised agents state watching thread that will look for {@link org.jlab.coda.afecs.system.AConstants#configured}
message coming from supervised agents.
public void supAgentReset()
AAgent.reset()
method.
Stops active service execution thread.
Stops agent states watching thread.
Clears all internal registration storages.
Set state of this agent = AConstants.configured
public void supervisorControlRequestConfigure(AControl control)
supervisorControlRequestConfigure
in class AAgent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |