|
|||||||||
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.platform.AControlDesigner
public class AControlDesigner
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 18, 2009
CParser
object. Accepts messages to configure particular
control system, described in the form of control oriented ontology langauge files. Sends message to the
AContainer
agents to start described agents. Agents will then register
with the platform registrary system.
Class that parsses COOL configuration files and designs control system or systems (system).
This is a class that responds gui requests to send the list of configuration file names ($COOL_HOME/config/Control dir).
Field Summary |
---|
Fields inherited from class org.jlab.coda.afecs.system.ABase |
---|
myConfig, myCRCClientConnection, myName, myPlatformConnection, myRcDomainConnection |
Constructor Summary | |
---|---|
AControlDesigner()
Constructor does cMsg connect |
Method Summary | |
---|---|
void |
definePriority(AComponent c)
Sets default priority for a component in case the deffinition in the cool is missing |
java.lang.String |
getAvailableContainerHostName()
For all registered containers on the platform randomly selects one and returns the host name of that container. |
boolean |
parseControl(java.lang.String session,
java.lang.String runtype)
Parses COOL control description file |
boolean |
parseControl(java.lang.String session,
java.lang.String runtype,
java.lang.String agentName,
java.lang.String containerHost)
This method is called by the request of the supervisor that needed to restart an agent on some other container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AControlDesigner()
Method Detail |
---|
public boolean parseControl(java.lang.String session, java.lang.String runtype)
session
- in wich control runsruntype
- the name of the configuraion file
public boolean parseControl(java.lang.String session, java.lang.String runtype, java.lang.String agentName, java.lang.String containerHost)
session
- in wich control runsruntype
- the name of the configuraion fileagentName
- the name of the agentcontainerHost
- the name of the container
public void definePriority(AComponent c)
c
- AComponent
objectpublic java.lang.String getAvailableContainerHostName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |