Package org.scictrl.mp.orbitcorrect.mvc
Class ApplicationEngine
java.lang.Object
org.scictrl.mp.orbitcorrect.mvc.ApplicationEngine
ApplicationEngine class.
- Author:
- igor@kriznar.com
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantEPICS_CONNECTOR_INSTANCE="org.scictrl.csshell.epics.EPICSConnecto"{trunked}static final StringConstantEPICS_CONNECTOR_NAME="EPICS"static final StringConstantLOCAL_DATABUSH_LOCATOR="LOCAL"static final StringConstantPARAM_CONNECTOR="Connector"static final StringConstantPARAM_DATABUSH_LOCATOR="DataBush.locator"static final StringConstantSTATE="state" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()activate.voidaddPropertyChangeListener.voidaddPropertyChangeListener.voidfail.org.apache.commons.configuration.ConfigurationGetter for the fieldconfiguration.org.scictrl.csshell.AbstractConnector<?> Deprecated.use EControlSystemEngine insteadorg.apache.logging.log4j.LoggergetLogger.getName()Getter for the fieldname.org.apache.commons.configuration.ConfigurationgetPersistanceStore.getProperty(String key) getProperty.getProperty(String key, String defaultValue) getProperty.Getter for the fieldserver.getState()Getter for the fieldstate.Getter for the fieldstateReport.voidinitialize.booleanisLocal()Returns true if it uses private locally started DataBush infrastructure and server.resolveApplicationConfigFile(String confFileName) resolveApplicationConfigFile.voidsetLocal(boolean b) setLocal.voidsetState(ApplicationEngine.State s, String report) Setter for the fieldstate.voidshutdown()shutdown.
-
Field Details
-
PARAM_CONNECTOR
ConstantPARAM_CONNECTOR="Connector"- See Also:
-
EPICS_CONNECTOR_NAME
ConstantEPICS_CONNECTOR_NAME="EPICS"- See Also:
-
EPICS_CONNECTOR_INSTANCE
ConstantEPICS_CONNECTOR_INSTANCE="org.scictrl.csshell.epics.EPICSConnecto"{trunked}- See Also:
-
PARAM_DATABUSH_LOCATOR
ConstantPARAM_DATABUSH_LOCATOR="DataBush.locator"- See Also:
-
LOCAL_DATABUSH_LOCATOR
ConstantLOCAL_DATABUSH_LOCATOR="LOCAL"- See Also:
-
STATE
ConstantSTATE="state"- See Also:
-
-
Constructor Details
-
ApplicationEngine
Constructor for ApplicationEngine.
- Parameters:
name- aStringobject
-
-
Method Details
-
getLogger
public org.apache.logging.log4j.Logger getLogger()getLogger.
- Returns:
- a
Loggerobject
-
isLocal
public boolean isLocal()Returns true if it uses private locally started DataBush infrastructure and server.- Returns:
- true if it uses private locally started DataBush
-
getProperty
getProperty.
-
setLocal
public void setLocal(boolean b) setLocal.
- Parameters:
b- a boolean
-
addPropertyChangeListener
addPropertyChangeListener.
- Parameters:
n- aStringobjectl- aPropertyChangeListenerobject
-
addPropertyChangeListener
addPropertyChangeListener.
- Parameters:
l- aPropertyChangeListenerobject
-
getState
Getter for the field
state.- Returns:
- a
ApplicationEngine.Stateobject
-
getStateReport
Getter for the field
stateReport.- Returns:
- a
Stringobject
-
setState
Setter for the field
state.- Parameters:
s- aApplicationEngine.Stateobjectreport- aStringobject
-
getName
Getter for the field
name.- Returns:
- a
Stringobject
-
initialize
public void initialize()initialize.
-
activate
public void activate()activate.
-
fail
fail.
- Parameters:
t- aThrowableobject
-
resolveApplicationConfigFile
resolveApplicationConfigFile.
-
getConfiguration
public org.apache.commons.configuration.Configuration getConfiguration()Getter for the field
configuration.- Returns:
- a
Configurationobject
-
getPersistanceStore
public org.apache.commons.configuration.Configuration getPersistanceStore()getPersistanceStore.
- Returns:
- a
Configurationobject
-
getServer
Getter for the field
server.- Returns:
- a
IDataBushServerobject
-
getProperty
getProperty.
-
shutdown
public void shutdown()shutdown.
-
getConnector
Deprecated.use EControlSystemEngine insteadGetter for the field
connector.- Returns:
- a
AbstractConnectorobject
-