|
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
public class AnalysisEvent
A base (immutable) class for all events coming from a running analysis.
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 | |
---|---|
AnalysisEvent(java.lang.Object source,
java.lang.String message)
A constructor taking a general message carried on by this event, and the source of this event. |
|
AnalysisEvent(java.lang.String message)
A constructor taking a general message carried on by this event. |
Method Summary | |
---|---|
java.lang.String |
formatSource()
Return a stringified version of this event's source. |
java.lang.String |
getMessage()
Get the main contents of this event. |
java.lang.Object |
getSource()
Get the event source (which may be null). |
java.util.Date |
getTimestamp()
Get the event timestamp. |
boolean |
isOlderThan(AnalysisEvent newEvent)
Compare this event with the 'newEvent'. |
void |
setTimestamp(java.util.Date timestamp)
Set the event timestamp. |
java.lang.String |
toString()
Return a stringified version of this event - in an XML format. |
org.jdom.Element |
toXML()
Create an XML element representing this event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnalysisEvent(java.lang.Object source, java.lang.String message)
public AnalysisEvent(java.lang.String message)
Method Detail |
---|
public java.lang.String getMessage()
toString()
to
get an XML representation of this event.
public java.lang.Object getSource()
public java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timestamp)
timestamp
- is time assigned to the eventpublic java.lang.String formatSource()
toString()
method) because the event source is not part of the event XML
serialization.
public org.jdom.Element toXML()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isOlderThan(AnalysisEvent newEvent)
newEvent
- is compared with this instance
|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |