|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.mds.aggregator.impl.AggregatorServiceGroupResource
org.globus.mds.trigger.impl.TriggerResource
Implementation of a Trigger ServiceGroup resource. Each resource is also an aggregator sink, in order to match trigger rules against received data.
| Field Summary | |
static QName |
FIRE_COUNT_RP
|
static QName |
RP_SET
|
protected Calendar |
terminationTime
|
static String |
TRIGGER_NS
|
| Fields inherited from class org.globus.mds.aggregator.impl.AggregatorServiceGroupResource |
DEFAULT_SWEEP_PERIOD, REGISTRATION_COUNT_RP |
| Constructor Summary | |
TriggerResource()
|
|
| Method Summary | |
void |
deliver(AnyContentType messageObj,
AggregatorServiceGroupEntryResource entry)
Takes delivery of a message from an AggregatorSource and applies the appropriate rules to it. |
Document |
evaluateXPath(Document inputDoc,
String xPathExpression,
String[] namespaces)
|
Calendar |
getCurrentTime()
|
org.globus.wsrf.ResourceKey |
getResourceKey()
|
AggregatorSource |
getSource()
Gets the AggregatorSource connected to this sink |
Calendar |
getTerminationTime()
|
org.globus.wsrf.TopicList |
getTopicList()
|
TriggerConfiguration |
getTriggerConfiguration()
|
void |
initialize(Object parameters)
Called to initialize any necessary state. |
void |
setResourceKey(org.globus.wsrf.ResourceKey k)
Used to inform the resource of its key. |
void |
setSource(AggregatorSource source)
Sets the AggregatorSource connected to this sink |
void |
setTerminationTime(Calendar time)
|
void |
terminate()
Called to free resources used by the sink. |
| Methods inherited from class org.globus.mds.aggregator.impl.AggregatorServiceGroupResource |
addAggregatorSource, decrementCurrent, getConfiguration, getCurrentRegCount, getKey, getLifetimeRegTotal, getResourcePropertySet, incrementCurrent, incrementTotal, init, iterateEntryKeys, iterateEntryValues, loadCompatibleSources, notifyChange, remove, removeAllEntryResources, removeEntryResource, serviceGroupAdd, setVersion, unloadSources |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String TRIGGER_NS
public static final QName RP_SET
public static final QName FIRE_COUNT_RP
protected Calendar terminationTime
| Constructor Detail |
public TriggerResource()
| Method Detail |
public TriggerConfiguration getTriggerConfiguration()
public void setResourceKey(org.globus.wsrf.ResourceKey k)
throws Exception
Exceptionpublic org.globus.wsrf.ResourceKey getResourceKey()
public void setTerminationTime(Calendar time)
public Calendar getTerminationTime()
public Calendar getCurrentTime()
public org.globus.wsrf.TopicList getTopicList()
getTopicList in interface org.globus.wsrf.TopicListAccessor
public void deliver(AnyContentType messageObj,
AggregatorServiceGroupEntryResource entry)
deliver in interface AggregatorSinkmessageObj - the message against which any registered triggerRules
will be applied againstentry - this AggregatorServiceGroupEntryResource should
contain appropriate trigger service rules in the AggregatorConfig
block of the ServiceGroupEntry Content member.
TODO: should there be any queuing/locking to stop multiple
triggers (either for same rule or for all rules) from firing
simultaneously?
TODO: add a thread pool for executing trigger actions,
break up the monolith
public Document evaluateXPath(Document inputDoc,
String xPathExpression,
String[] namespaces)
throws Exception
Exceptionpublic void initialize(Object parameters)
AggregatorSink
initialize in interface AggregatorSinkpublic void terminate()
AggregatorSink
terminate in interface AggregatorSinkpublic void setSource(AggregatorSource source)
AggregatorSink
setSource in interface AggregatorSinkpublic AggregatorSource getSource()
AggregatorSink
getSource in interface AggregatorSink
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||