|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.soaplab.services.events.AnalysisEvent org.soaplab.services.events.StateChangeEvent
public class StateChangeEvent
A class representing an event that characterizes a change of state of the underlying service/analysis/job.
Field Summary |
---|
Fields inherited from interface org.soaplab.services.events.EventConstants |
---|
ANALYSIS_EVENT, HEARTBEAT_PROGRESS, MESSAGE, NEW_STATE, PERCENT_PROGRESS, PERCENTAGE, PREVIOUS_STATE, REMAINING, STATE_CHANGED, STEP_PROGRESS, STEPS_COMPLETED, TIME_PROGRESS, TIMESTAMP, TIMESTAMP_FORMAT, TOTAL_STEPS |
Constructor Summary | |
---|---|
StateChangeEvent(java.lang.Object source,
java.lang.String message,
java.lang.String previousState,
java.lang.String newState)
The most general constructor, taking a message, the two states, the old and new one, and an event source. |
|
StateChangeEvent(java.lang.String previousState,
java.lang.String newState)
A usual constructor, taking just two states, the old and new one. |
|
StateChangeEvent(java.lang.String message,
java.lang.String previousState,
java.lang.String newState)
A constructor taking a general message and two states, the old and new one. |
Method Summary | |
---|---|
java.lang.String |
getNewState()
Get the new state as reported by this event. |
java.lang.String |
getPreviousState()
Get the previous state as reported by this event. |
org.jdom.Element |
toXML()
Create an XML element representing this event. |
Methods inherited from class org.soaplab.services.events.AnalysisEvent |
---|
formatSource, getMessage, getSource, getTimestamp, isOlderThan, setTimestamp, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StateChangeEvent(java.lang.Object source, java.lang.String message, java.lang.String previousState, java.lang.String newState)
public StateChangeEvent(java.lang.String message, java.lang.String previousState, java.lang.String newState)
public StateChangeEvent(java.lang.String previousState, java.lang.String newState)
Method Detail |
---|
public java.lang.String getPreviousState()
public java.lang.String getNewState()
public org.jdom.Element toXML()
toXML
in class AnalysisEvent
|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |