Class LoggingScriptController
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.jython.scriptcontroller.ScriptControllerBase
gda.jython.scriptcontroller.logging.LoggingScriptController
- All Implemented Interfaces:
Configurable,Findable,ILoggingScriptController,Scriptcontroller,gda.observable.IObservable
@ServiceInterface(ILoggingScriptController.class)
public class LoggingScriptController
extends ScriptControllerBase
implements ILoggingScriptController
A script controller which logs in a Derby database all the ScriptControllerLoggingMessage objects which are passed
through it.
It provides the tools to enable other classes to extract information about the contents of the database.
-
Field Summary
FieldsFields inherited from interface gda.jython.scriptcontroller.Scriptcontroller
SCRIPT_RUNNER_END_MARKER, SCRIPT_RUNNER_ERROR_MARKER, SCRIPT_RUNNER_RUNNING_MARKER, SCRIPT_RUNNER_START_MARKER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.static StringcreateUniqueID(String key) getDetails(String uniqueID) Class<? extends ScriptControllerLoggingMessage> getTable()voidRe-initialisation of values and states.voidsetDirectory(String directory) voidsetMessageClassToLog(Class<? extends ScriptControllerLoggingMessage> messageClassToLog) voidExpects arg is of the class messageClassToLog.Methods inherited from class gda.jython.scriptcontroller.ScriptControllerBase
addIObserver, addParameter, deleteIObserver, deleteIObservers, getCommand, getCommandFormat, getImportCommand, getParametersName, notifyIObservers, readParameters, run, setCommand, setCommandFormat, setImportCommand, setParametersNameMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfiguredMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObserversMethods inherited from interface gda.jython.scriptcontroller.Scriptcontroller
addParameter, getCommand, getImportCommand, getParametersName, notifyIObservers, setCommand, setImportCommand, setParametersName
-
Field Details
-
url
-
-
Constructor Details
-
LoggingScriptController
public LoggingScriptController()
-
-
Method Details
-
createUniqueID
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classScriptControllerBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
reconfigure
Description copied from interface:ConfigurableRe-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classScriptControllerBase- Throws:
FactoryException
-
update
Expects arg is of the class messageClassToLog.- Specified by:
updatein interfaceScriptcontroller- Overrides:
updatein classScriptControllerBase- Parameters:
o- the observed componentarg- the data to be sent to the observer.
-
getTable
- Specified by:
getTablein interfaceILoggingScriptController
-
getDetails
- Specified by:
getDetailsin interfaceILoggingScriptController
-
getMostRecentRun
- Specified by:
getMostRecentRunin interfaceILoggingScriptController
-
getMessageClassToLog
-
setMessageClassToLog
-
getDirectory
-
setDirectory
-