org.apache.airavata.ws.monitor
Class MonitorUtil

java.lang.Object
  extended by org.apache.airavata.ws.monitor.MonitorUtil

public class MonitorUtil
extends Object

Manipulate XML Events


Nested Class Summary
static class MonitorUtil.EventType
          Type of the notification event.
 
Field Summary
static String BODY
          body In sendingResult
static String DESCRIPTION_TAG
          description
static String GOT_RESULT_EVENT_TAG
          gotResult
static String REQUEST
          request In invokingService
static String RESULT
          result In sendingResult
static String TIMESTAMP_TAG
          timestamp
static org.xmlpull.infoset.XmlNamespace WOR_NS
          Workflow tracking namespace
static String WORKFLOW_EXPERIMENT_ID
          experimentID In Notification Message
static org.xmlpull.infoset.XmlNamespace XBAYA_EVENTS_NS
          XBaya events namespace
 
Constructor Summary
MonitorUtil()
           
 
Method Summary
static String getExperiementID(org.xmlpull.infoset.XmlElement event)
           
static String getLocation(org.xmlpull.infoset.XmlElement event)
           
static String getMappedResource(org.xmlpull.infoset.XmlElement event)
          Gets the mapped resource from the event.
static String getMessage(org.xmlpull.infoset.XmlElement event)
           
static String getNodeID(org.xmlpull.infoset.XmlElement event)
           
static String getRetryCount(org.xmlpull.infoset.XmlElement event)
          Gets the retry count from the event.
static String getStatus(org.xmlpull.infoset.XmlElement event)
           
static Date getTimestamp(org.xmlpull.infoset.XmlElement event)
           
static MonitorUtil.EventType getType(org.xmlpull.infoset.XmlElement event)
           
static URI getWorkflowID(org.xmlpull.infoset.XmlElement event)
           
static URI getWorkflowInstanceID(org.xmlpull.infoset.XmlElement event)
          Gets the workflow instance ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WOR_NS

public static final org.xmlpull.infoset.XmlNamespace WOR_NS
Workflow tracking namespace


XBAYA_EVENTS_NS

public static final org.xmlpull.infoset.XmlNamespace XBAYA_EVENTS_NS
XBaya events namespace


GOT_RESULT_EVENT_TAG

public static final String GOT_RESULT_EVENT_TAG
gotResult

See Also:
Constant Field Values

DESCRIPTION_TAG

public static final String DESCRIPTION_TAG
description

See Also:
Constant Field Values

TIMESTAMP_TAG

public static final String TIMESTAMP_TAG
timestamp

See Also:
Constant Field Values

REQUEST

public static final String REQUEST
request In invokingService

See Also:
Constant Field Values

RESULT

public static final String RESULT
result In sendingResult

See Also:
Constant Field Values

BODY

public static final String BODY
body In sendingResult

See Also:
Constant Field Values

WORKFLOW_EXPERIMENT_ID

public static final String WORKFLOW_EXPERIMENT_ID
experimentID In Notification Message

See Also:
Constant Field Values
Constructor Detail

MonitorUtil

public MonitorUtil()
Method Detail

getType

public static MonitorUtil.EventType getType(org.xmlpull.infoset.XmlElement event)
Parameters:
event -
Returns:
The type of the event.

getTimestamp

public static Date getTimestamp(org.xmlpull.infoset.XmlElement event)
Parameters:
event -
Returns:
The timestamp.

getNodeID

public static String getNodeID(org.xmlpull.infoset.XmlElement event)
Parameters:
event -
Returns:
The node ID if the message contains it; "", otherwise

getExperiementID

public static String getExperiementID(org.xmlpull.infoset.XmlElement event)
Parameters:
event -
Returns:
The node ID if the message contains it; "", otherwise

getWorkflowID

public static URI getWorkflowID(org.xmlpull.infoset.XmlElement event)
Parameters:
event -
Returns:
The workflow instance ID. null if there is no workflow instance ID.

getStatus

public static String getStatus(org.xmlpull.infoset.XmlElement event)
Parameters:
event -
Returns:
The type of the event to display

getMessage

public static String getMessage(org.xmlpull.infoset.XmlElement event)
Parameters:
event -
Returns:
The message to display.

getLocation

public static String getLocation(org.xmlpull.infoset.XmlElement event)
Parameters:
event -
Returns:
The location.

getMappedResource

public static String getMappedResource(org.xmlpull.infoset.XmlElement event)
Gets the mapped resource from the event.

Parameters:
event - The event, the type of which has to be resourceMapping.
Returns:
The resource

getRetryCount

public static String getRetryCount(org.xmlpull.infoset.XmlElement event)
Gets the retry count from the event.

Parameters:
event - The event, the type of which has to be resourceMapping.
Returns:
The resource

getWorkflowInstanceID

public static URI getWorkflowInstanceID(org.xmlpull.infoset.XmlElement event)
Gets the workflow instance ID.

Parameters:
event - The event, the type of which has to be workflowInitialized.
Returns:
The workflowInstanceID


Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.