public class XmlFileStoreAlarmImpl extends ComponentImplBase implements SourceListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULLOGDIR
The default max number of file of logs
|
static int |
DEFAULTMAXFILESIZE
The default max size of each file of logs
|
static int |
DEFAULTMAXNUMBEROFFILES
The default max number of file of logs
|
static java.lang.String |
LOGDIR_PROPNAME
The name of the java property to set the path to save the file of logs
|
static java.lang.String |
MAXFILESIZE_PROPNAME
The name of the java property to set the max size of each file of logs
|
static java.lang.String |
MAXNUMBEROFFILES_PROPNAME
The name of the java property to set the max number of file of logs
|
m_containerServices, m_instanceName| Constructor and Description |
|---|
XmlFileStoreAlarmImpl()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Life cycle
|
void |
faultStateReceived(FaultState fs)
This method does nothing as we are interested in storing the XMLs
|
void |
initialize(ContainerServices containerServices)
Life cycle
|
void |
sourceXMLMsgReceived(java.lang.String xml)
An XML has been received from the source NC.
|
aboutToAbort, componentState, execute, namepublic static final java.lang.String MAXFILESIZE_PROPNAME
public static final int DEFAULTMAXFILESIZE
public static final java.lang.String MAXNUMBEROFFILES_PROPNAME
public static final int DEFAULTMAXNUMBEROFFILES
public static final java.lang.String LOGDIR_PROPNAME
public static final java.lang.String DEFAULLOGDIR
public void initialize(ContainerServices containerServices) throws ComponentLifecycleException
initialize in interface ComponentLifecycleinitialize in class ComponentImplBasecontainerServices - callback object for services provided by the containerComponentLifecycleExceptionalma.acs.component.ComponentLifecycle#initialize()public void cleanUp()
throws alma.maciErrType.wrappers.AcsJComponentCleanUpEx
cleanUp in interface ComponentLifecyclecleanUp in class ComponentImplBasealma.maciErrType.wrappers.AcsJComponentCleanUpExComponentLifecycle.cleanUp()public void sourceXMLMsgReceived(java.lang.String xml)
SourceListenerThe XML follows the ASIMessage.xsd schema definition and therefore it might have one or more fault states.
sourceXMLMsgReceived in interface SourceListenerxml - The ASIMessage received from an alarm sourceSourceListener.sourceXMLMsgReceived(String)public void faultStateReceived(FaultState fs)
faultStateReceived in interface SourceListenerSourceListener.faultStateReceived(cern.laser.source.alarmsysteminterface.FaultState)