Class ProcessManagerApplication
java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.processmanager.ProcessManagerApplication
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,Application
,OnDemandValueProcessor.ValueProvider
public class ProcessManagerApplication
extends AbstractApplication
implements PropertyChangeListener
ProcessManagerApplication class.
- Author:
- igor@scictrl.com
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantCOMMAND="Info:Command"
static final String
ConstantCOMPLETION="Status:Completion"
static final String
ConstantCPU="CPU"
static final String
ConstantDESCRIPTION="Info:Description"
static final String
ConstantERROR="Status:Error"
static final String
ConstantERROR_MESSAGE="Status:ErrorMessage"
static final String
ConstantHOST="Info:Host"
static final String
ConstantKILL="Cmd:Kill"
static final String
ConstantLOCATION="Info:Location"
static final String
ConstantMEM="MEM"
static final String
ConstantPID="Info:PID"
static final String
ConstantRELAY="Info:Relay"
static final String
ConstantRUNNING="Status:Running"
static final String
ConstantSERVICE="Info:Service"
static final String
ConstantSTART="Cmd:Start"
static final String
ConstantSTATE="Status:State"
static final String
ConstantSTOP="Cmd:Stop"
static final String
ConstantUSER="Info:User"
Fields inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication
database, DEFAULT_NAME_DELIMITER, dynamicRecordCreator, ERROR_SUM, LINK_ERROR, LINK_ERROR_STRING, links, log, name, NAME_DELIMITER, nameDelimiter, records
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Configures the internals of this application, provides reference to configuration with root inside applications tag.protected void
notifyRecordWrite
(String name) This method is called whenever record value has been written for any record, which belongs to this application (it was added to the applicationAbstractApplication.addRecord(String, Record)
).void
void
setError.Methods inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication
activate, addRecord, addRecordOfCommandProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfOnDemandProcessor, addRecordOfOnLinkValueProcessor, configure, connectLinks, createNewStore, fullRecordName, getLinks, getName, getNameDelimiter, getNotNull, getRecord, getRecordErrorSum, getRecordLinkError, getRecordNames, getRecords, getStore, getStore, getValue, initialize, isActivated, isDynamicRecordCreator, log4debug, log4error, log4error, log4info, notifyLinkChange, notifyRecordChange, processLinkChange, pushDoneCommandProcessor, reconnectLinks, resetOnDemandProcessor, restore, store, toString, updateErrorSum, updateErrorSum, updateLinkError, updateLinkError
-
Field Details
-
START
ConstantSTART="Cmd:Start"
- See Also:
-
STOP
ConstantSTOP="Cmd:Stop"
- See Also:
-
KILL
ConstantKILL="Cmd:Kill"
- See Also:
-
ERROR
ConstantERROR="Status:Error"
- See Also:
-
RUNNING
ConstantRUNNING="Status:Running"
- See Also:
-
ERROR_MESSAGE
ConstantERROR_MESSAGE="Status:ErrorMessage"
- See Also:
-
STATE
ConstantSTATE="Status:State"
- See Also:
-
COMPLETION
ConstantCOMPLETION="Status:Completion"
- See Also:
-
HOST
ConstantHOST="Info:Host"
- See Also:
-
LOCATION
ConstantLOCATION="Info:Location"
- See Also:
-
USER
ConstantUSER="Info:User"
- See Also:
-
PID
ConstantPID="Info:PID"
- See Also:
-
SERVICE
ConstantSERVICE="Info:Service"
- See Also:
-
COMMAND
ConstantCOMMAND="Info:Command"
- See Also:
-
DESCRIPTION
ConstantDESCRIPTION="Info:Description"
- See Also:
-
RELAY
ConstantRELAY="Info:Relay"
- See Also:
-
CPU
ConstantCPU="CPU"
- See Also:
-
MEM
ConstantMEM="MEM"
- See Also:
-
-
Constructor Details
-
ProcessManagerApplication
public ProcessManagerApplication()Constructor for ProcessManagerApplication.
-
-
Method Details
-
configure
public void configure(String name, org.apache.commons.configuration.HierarchicalConfiguration config) Configures the internals of this application, provides reference to configuration with root inside applications tag. Server structure is not yet initialized, so does not have reference to Database, the Database reference will be available during activate call.- Specified by:
configure
in interfaceApplication
- Overrides:
configure
in classAbstractApplication
- Parameters:
name
- aString
objectconfig
- configuration with room inside application tag.
-
notifyRecordWrite
This method is called whenever record value has been written for any record, which belongs to this application (it was added to the applicationAbstractApplication.addRecord(String, Record)
). Implementation class should override this method to intercept the update.- Overrides:
notifyRecordWrite
in classAbstractApplication
- Parameters:
name
- the name of record, that triggered change.
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
setError
setError.
- Parameters:
error
- a booleancompletion
- aString
object
-