|
|||||||||||
| 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
|
| Field Summary | |
private NotificationConsumerManager |
consumer
|
private boolean |
initialized
|
(package private) WSResourceLifetimeServiceAddressingLocator |
lifetimeLocator
|
(package private) WSBaseNotificationServiceAddressingLocator |
locator
|
private static org.apache.commons.logging.Log |
logger
|
private java.lang.String |
resDescFilename
|
private java.util.Hashtable |
sessions
|
private AggregatorSink |
sink
|
private java.lang.Object |
sinkParameters
|
| Constructor Summary | |
SubscriptionAggregatorSource(AggregatorSink sink)
|
|
SubscriptionAggregatorSource(AggregatorSink sink,
java.lang.Object sinkParameters)
Creates a new instance of SubscriptionAggregatorSource |
|
| Method Summary | |
java.lang.String |
addAggregation(java.lang.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(java.lang.String sessionKey)
Retrieve AggregatorServiceGroupEntryResource entry context. |
java.lang.String |
getSessionKey(AggregatorServiceGroupEntryResource entry)
Get a sessionKey from a given entry context. |
void |
initialize(java.lang.Object parameters)
Called to initialize any necessary state. |
boolean |
isValidSession(java.lang.String sessionKey)
Determines if a specified sessionKey is valid (active). |
void |
removeAggregation(java.lang.String sessionKey)
Terminates the data aggregation represented by sessionKey. |
void |
setAggregatorSink(AggregatorSink sink,
java.lang.Object sinkParameters)
Sets the AggregatorSink instance where data from the Aggregator Source will be routed. |
private void |
setAnonymous(javax.xml.rpc.Stub stub)
|
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 |
| Field Detail |
private boolean initialized
private AggregatorSink sink
private java.lang.Object sinkParameters
private java.lang.String resDescFilename
private java.util.Hashtable sessions
private NotificationConsumerManager consumer
WSBaseNotificationServiceAddressingLocator locator
WSResourceLifetimeServiceAddressingLocator lifetimeLocator
private static org.apache.commons.logging.Log logger
| Constructor Detail |
public SubscriptionAggregatorSource(AggregatorSink sink,
java.lang.Object sinkParameters)
public SubscriptionAggregatorSource(AggregatorSink sink)
| Method Detail |
public void initialize(java.lang.Object parameters)
throws AggregatorException,
java.lang.Exception
AggregatorSource
initialize in interface AggregatorSourceAggregatorException
java.lang.Exceptionpublic AggregatorServiceGroupEntryResource getSessionContext(java.lang.String sessionKey)
AggregatorSource
getSessionContext in interface AggregatorSourcesessionKey - The session key of the aggregation.
public java.lang.String getSessionKey(AggregatorServiceGroupEntryResource entry)
throws AggregatorException
AggregatorSource
getSessionKey in interface AggregatorSourceAggregatorException
public boolean isValidSession(java.lang.String sessionKey)
throws AggregatorException
AggregatorSource
isValidSession in interface AggregatorSourceAggregatorExceptionpublic AggregatorSink getAggregatorSink()
AggregatorSource
getAggregatorSink in interface AggregatorSource
public void setAggregatorSink(AggregatorSink sink,
java.lang.Object sinkParameters)
AggregatorSource
setAggregatorSink in interface AggregatorSource
public java.lang.String addAggregation(java.lang.Object parameters,
AggregatorServiceGroupEntryResource entry)
throws AggregatorParamTypeNotSupportedException,
AggregatorException,
java.lang.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
java.lang.Exception
public void removeAggregation(java.lang.String sessionKey)
throws AggregatorException,
java.lang.Exception
AggregatorSource
removeAggregation in interface AggregatorSourcesessionKey - The session key of the aggregation to terminate.
AggregatorException
java.lang.Exceptionpublic void terminate()
AggregatorSource
terminate in interface AggregatorSourceprivate void setAnonymous(javax.xml.rpc.Stub stub)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||