Class ApplicationEngine

java.lang.Object
org.scictrl.mp.orbitcorrect.mvc.ApplicationEngine

public class ApplicationEngine extends Object

ApplicationEngine class.

Author:
igor@kriznar.com
  • Field Details

    • PARAM_CONNECTOR

      public static final String PARAM_CONNECTOR
      Constant PARAM_CONNECTOR="Connector"
      See Also:
    • EPICS_CONNECTOR_NAME

      public static final String EPICS_CONNECTOR_NAME
      Constant EPICS_CONNECTOR_NAME="EPICS"
      See Also:
    • EPICS_CONNECTOR_INSTANCE

      public static final String EPICS_CONNECTOR_INSTANCE
      Constant EPICS_CONNECTOR_INSTANCE="org.scictrl.csshell.epics.EPICSConnecto"{trunked}
      See Also:
    • PARAM_DATABUSH_LOCATOR

      public static final String PARAM_DATABUSH_LOCATOR
      Constant PARAM_DATABUSH_LOCATOR="DataBush.locator"
      See Also:
    • LOCAL_DATABUSH_LOCATOR

      public static final String LOCAL_DATABUSH_LOCATOR
      Constant LOCAL_DATABUSH_LOCATOR="LOCAL"
      See Also:
    • STATE

      public static final String STATE
      Constant STATE="state"
      See Also:
  • Constructor Details

    • ApplicationEngine

      public ApplicationEngine(String name)

      Constructor for ApplicationEngine.

      Parameters:
      name - a String object
  • Method Details

    • getLogger

      public org.apache.logging.log4j.Logger getLogger()

      getLogger.

      Returns:
      a Logger object
    • 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

      public String getProperty(String key, String defaultValue)

      getProperty.

      Parameters:
      key - a String object
      defaultValue - a String object
      Returns:
      a String object
    • setLocal

      public void setLocal(boolean b)

      setLocal.

      Parameters:
      b - a boolean
    • addPropertyChangeListener

      public void addPropertyChangeListener(String n, PropertyChangeListener l)

      addPropertyChangeListener.

      Parameters:
      n - a String object
      l - a PropertyChangeListener object
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener l)

      addPropertyChangeListener.

      Parameters:
      l - a PropertyChangeListener object
    • getState

      public ApplicationEngine.State getState()

      Getter for the field state.

      Returns:
      a ApplicationEngine.State object
    • getStateReport

      public String getStateReport()

      Getter for the field stateReport.

      Returns:
      a String object
    • setState

      public void setState(ApplicationEngine.State s, String report)

      Setter for the field state.

      Parameters:
      s - a ApplicationEngine.State object
      report - a String object
    • getName

      public String getName()

      Getter for the field name.

      Returns:
      a String object
    • initialize

      public void initialize()

      initialize.

    • activate

      public void activate()

      activate.

    • fail

      public void fail(Throwable t)

      fail.

      Parameters:
      t - a Throwable object
    • resolveApplicationConfigFile

      public File resolveApplicationConfigFile(String confFileName)

      resolveApplicationConfigFile.

      Parameters:
      confFileName - a String object
      Returns:
      a File object
    • getConfiguration

      public org.apache.commons.configuration.Configuration getConfiguration()

      Getter for the field configuration.

      Returns:
      a Configuration object
    • getPersistanceStore

      public org.apache.commons.configuration.Configuration getPersistanceStore()

      getPersistanceStore.

      Returns:
      a Configuration object
    • getServer

      public IDataBushServer getServer()

      Getter for the field server.

      Returns:
      a IDataBushServer object
    • getProperty

      public String getProperty(String key)

      getProperty.

      Parameters:
      key - a String object
      Returns:
      a String object
    • shutdown

      public void shutdown()

      shutdown.

    • getConnector

      @Deprecated public org.scictrl.csshell.AbstractConnector<?> getConnector()
      Deprecated.
      use EControlSystemEngine instead

      Getter for the field connector.

      Returns:
      a AbstractConnector object