|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.ogsa.impl.base.aggregator.DataAggregationManager
Service delegation component which aggregates and "caches" service data from other services into the local service data container using notification sinks. Should be compatible with any service that implements NotificationSinkPortType
| Field Summary | |
static java.lang.String |
DEFAULT_NAMESPACE
|
static java.lang.String |
DEFAULT_PARAM_NAME
|
static java.lang.String |
MANAGER_INSTANCE
|
| Constructor Summary | |
DataAggregationManager()
Constructs an aggregator that performs basic GT3.0-style service data aggregation. |
|
DataAggregationManager(DataAggregationSource dataSource,
DataAggregationSink[] dataSinks)
Constructs an Data Aggregation Manager that delegates functionality to the supplied DataAggregationSource and DataAggregationSink objects. |
|
| Method Summary | |
java.lang.String |
addDataAggregation(DataAggregationType dataAggregation)
Causes the aggregator to begin collecting data from a remote service. |
void |
addDataSink(DataAggregationSink sink)
|
void |
deliverNotification(ExtensibilityType message)
|
void |
flush()
gives a hint that this property should be checkpointed to the deployment descriptor, it is however not guaranteed that the properties have been persisted when the method returns |
DataAggregationSink[] |
getDataSinks()
|
DataAggregationSource |
getDataSource()
|
QName[] |
getOperations()
Called during initialization when the Grid service needs to find out what operations are supported by this provider. |
java.lang.Object |
getPersistentProperty(java.lang.String name)
gets a persistent property (checkpointed to deployment descriptor) keyed by name |
java.lang.Object |
getProperty(java.lang.String name)
gets a property keyed by name |
void |
initialize(GridServiceBase serviceBase)
Called when the operation provider is added to a grid service. |
boolean |
isValidSession(java.lang.String sessionID)
|
void |
processConfig()
|
void |
removeDataAggregation(java.lang.String sessionID)
|
void |
removeDataSink(DataAggregationSink sink)
|
void |
setPersistentProperty(java.lang.String name,
java.lang.Object obj)
sets a persistent property (checkpointed to deployment descriptor) keyed by name |
void |
setProperty(java.lang.String name,
java.lang.Object obj)
sets a property keyed by name |
void |
terminate()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_NAMESPACE
public static final java.lang.String DEFAULT_PARAM_NAME
public static final java.lang.String MANAGER_INSTANCE
| Constructor Detail |
public DataAggregationManager()
public DataAggregationManager(DataAggregationSource dataSource,
DataAggregationSink[] dataSinks)
dataSource - a class that implments the DataAggregationSource interfacedataSinks - an array of classes that implment the dataSink interface| Method Detail |
public QName[] getOperations()
OperationProvider
getOperations in interface OperationProvidernew QName[] {new QName("","*")}, will result in all
incoming operations being redirected to this provider (apart from the
OGSI defined GridService interface operations provided by the
GridServiceBase implementation. Note that individual
operations in the OGSI namespace could still be overridded with this
approach, but not using the 'all namespaces and all operation' wildcard.public java.lang.Object getProperty(java.lang.String name)
ServiceProperties
getProperty in interface ServicePropertiesname - property key
public void setProperty(java.lang.String name,
java.lang.Object obj)
ServiceProperties
setProperty in interface ServicePropertiesname - property keyobj - property value, if null the property will be removed
(if it exists)
public void flush()
throws ServicePropertiesException
ServiceProperties
flush in interface ServicePropertiesServicePropertiesException - if the properties could not be
persistedpublic java.lang.Object getPersistentProperty(java.lang.String name)
ServiceProperties
getPersistentProperty in interface ServicePropertiesname - property key
public void setPersistentProperty(java.lang.String name,
java.lang.Object obj)
ServiceProperties
setPersistentProperty in interface ServicePropertiesname - property keyobj - property value, if null the property will be removed
(if it exists)public DataAggregationSource getDataSource()
public DataAggregationSink[] getDataSinks()
public void addDataSink(DataAggregationSink sink)
public void removeDataSink(DataAggregationSink sink)
public boolean isValidSession(java.lang.String sessionID)
throws java.lang.Exception
java.lang.Exception
public void initialize(GridServiceBase serviceBase)
throws GridServiceException
OperationProvider
initialize in interface OperationProviderserviceBase - the service this provider is being associated with
GridServiceException - if the initialization (and service creation
is to be aborted)public void terminate()
public void processConfig()
throws ConfigException
ConfigException
public java.lang.String addDataAggregation(DataAggregationType dataAggregation)
throws GridServiceException
dataAggregation - Implementation-specific parameters of the data to be
collected.
GridServiceException
public void removeDataAggregation(java.lang.String sessionID)
throws GridServiceException
GridServiceException
public void deliverNotification(ExtensibilityType message)
throws GridServiceException
GridServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||