|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AggregatorSource
The AggregatorSource interface handles session management for establishing data aggregation relationships between services using source-sink paradigms. The exact data generation and consumption methods are abstracted in order to provide an extensible framework. For example, the underlying session may represented by an asynchronous notification channel (e.g. subscription), a synchronous polling mechanism (e.g. repeated queries) or some other mechanism, such as a command buffer or FIFO, etc.
| 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. |
void |
terminate()
Called to free resources used by the source. |
| Method Detail |
|---|
void initialize(java.lang.Object parameters)
throws AggregatorSinkTypeNotSupportedException,
AggregatorException,
java.lang.Exception
AggregatorSinkTypeNotSupportedException
AggregatorException
java.lang.Exceptionvoid terminate()
AggregatorSink getAggregatorSink()
void setAggregatorSink(AggregatorSink sink,
java.lang.Object sinkParameters)
java.lang.String addAggregation(java.lang.Object parameters,
AggregatorServiceGroupEntryResource entry)
throws AggregatorParamTypeNotSupportedException,
AggregatorException,
java.lang.Exception
parameters - 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
void removeAggregation(java.lang.String sessionKey)
throws AggregatorException,
java.lang.Exception
sessionKey - The session key of the aggregation to terminate.
AggregatorException
java.lang.ExceptionAggregatorServiceGroupEntryResource getSessionContext(java.lang.String sessionKey)
sessionKey - The session key of the aggregation.
java.lang.String getSessionKey(AggregatorServiceGroupEntryResource entry)
throws AggregatorException
AggregatorException
boolean isValidSession(java.lang.String sessionKey)
throws AggregatorException
AggregatorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||