|
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.DefaultDeserializer
public class DefaultDeserializer
A default implementation of the EventDeserializer
that
recognizes standard Soaplab events.
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 | |
---|---|
DefaultDeserializer()
|
Method Summary | |
---|---|
AnalysisEvent |
deserialize(java.lang.Object source,
java.io.File xmlEventFile)
Create an object representing an event from XML stored in given file. |
AnalysisEvent |
deserialize(java.lang.Object source,
java.lang.String xmlEvent)
Create an object representing an event from 'xmlEvent'. |
static EventDeserializer |
getDeserializer()
Find available deserializer, create its instance and return it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDeserializer()
Method Detail |
---|
public static EventDeserializer getDeserializer()
public AnalysisEvent deserialize(java.lang.Object source, java.lang.String xmlEvent) throws SoaplabException
EventDeserializer
deserialize
in interface EventDeserializer
source
- is a source of this event; can be null if the
source is not known (this is here because event serialization,
the XML string, does not contain any event source)xmlEvent
- is a serialized event
SoaplabException
- if something prevents to create an eventpublic AnalysisEvent deserialize(java.lang.Object source, java.io.File xmlEventFile) throws SoaplabException
EventDeserializer
Otherwise the same as the EventDeserializer.deserialize(Object,String)
method.
deserialize
in interface EventDeserializer
SoaplabException
|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |