|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.mds.aggregator.impl.SubscriptionAggregatorSource
An AggregatorSource which generates data using asyncrhonous subscription-based messaging.
| Nested Class Summary | |
protected class |
SubscriptionAggregatorSource.NotificationCallback
|
| Constructor Summary | |
SubscriptionAggregatorSource(AggregatorSink sink)
|
|
SubscriptionAggregatorSource(AggregatorSink sink,
Object sinkParameters)
Creates a new instance of SubscriptionAggregatorSource |
|
| Method Summary | |
String |
addAggregation(Object parameters,
AggregatorServiceGroupEntryResource entry)
Establishes an implementation-specific data aggregation session. |
AggregatorSink |
getAggregatorSink()
Gets the AggregatorSink instance where data from the underlying AggregatorSource will be routed, or NULL if not set. |
AggregatorServiceGroupEntryResource |
getSessionContext(String sessionKey)
Retrieve AggregatorServiceGroupEntryResource entry context. |
String |
getSessionKey(AggregatorServiceGroupEntryResource entry)
Get a sessionKey from a given entry context. |
void |
initialize(Object parameters)
Called to initialize any necessary state. |
boolean |
isValidSession(String sessionKey)
Determines if a specified sessionKey is valid (active). |
void |
removeAggregation(String sessionKey)
Terminates the data aggregation represented by sessionKey. |
void |
setAggregatorSink(AggregatorSink sink,
Object sinkParameters)
Sets the AggregatorSink instance where data from the Aggregator Source will be routed. |
void |
terminate()
Called to free resources used by the source. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SubscriptionAggregatorSource(AggregatorSink sink,
Object sinkParameters)
public SubscriptionAggregatorSource(AggregatorSink sink)
| Method Detail |
public void initialize(Object parameters)
throws AggregatorException,
Exception
AggregatorSource
initialize in interface AggregatorSourceAggregatorException
Exceptionpublic AggregatorServiceGroupEntryResource getSessionContext(String sessionKey)
AggregatorSource
getSessionContext in interface AggregatorSourcesessionKey - The session key of the aggregation.
public String getSessionKey(AggregatorServiceGroupEntryResource entry)
throws AggregatorException
AggregatorSource
getSessionKey in interface AggregatorSourceAggregatorException
public boolean isValidSession(String sessionKey)
throws AggregatorException
AggregatorSource
isValidSession in interface AggregatorSourceAggregatorExceptionpublic AggregatorSink getAggregatorSink()
AggregatorSource
getAggregatorSink in interface AggregatorSource
public void setAggregatorSink(AggregatorSink sink,
Object sinkParameters)
AggregatorSource
setAggregatorSink in interface AggregatorSource
public String addAggregation(Object parameters,
AggregatorServiceGroupEntryResource entry)
throws AggregatorParamTypeNotSupportedException,
AggregatorException,
Exception
AggregatorSource
addAggregation in interface AggregatorSourceparameters - Implementation-specific parameters of the data to be
collected.entry - The AggregatorServiceGroupEntryResource instance to
associate with this aggregation session. This instance will be passed
unmodified to any connected AggregationSink.
AggregatorParamTypeNotSupportedException
AggregatorException
Exception
public void removeAggregation(String sessionKey)
throws AggregatorException,
Exception
AggregatorSource
removeAggregation in interface AggregatorSourcesessionKey - The session key of the aggregation to terminate.
AggregatorException
Exceptionpublic void terminate()
AggregatorSource
terminate in interface AggregatorSource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||