|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.mds.aggregator.impl.AggregatorServiceGroupResource
Implements an aggregating in-memory service group resource.
Entries will be stored in a hash table under each service group resource
so that we can easily find them; the key for a service group entry
must first contain the key to the appropriate service group and then
the key within that to the appropriate entry.
| Nested Class Summary | |
(package private) class |
AggregatorServiceGroupResource.EntrySweeper
Gets rid of dead registrations |
| Field Summary | |
(package private) AggregatorConfiguration |
configuration
|
static long |
DEFAULT_SWEEP_PERIOD
The default entry sweeper, in milliseconds. |
(package private) java.util.Hashtable |
entries
Maps entry keys to entry resource objects. |
(package private) java.util.Hashtable |
entryCache
A cache to return concurrency exception safe iterators from |
(package private) boolean |
entryCacheDirty
|
(package private) AggregatorServiceGroupResource.EntrySweeper |
entrySweeper
|
private ResourceKey |
key
|
private static org.apache.commons.logging.Log |
logger
|
(package private) org.globus.mds.usefulrp.ServiceMetaDataResourceProperty |
metadata
|
(package private) ResourcePropertySet |
propSet
|
static javax.xml.namespace.QName |
REGISTRATION_COUNT_RP
|
(package private) org.globus.mds.usefulrp.AccumulatorResourceProperty |
registrationCountRP
|
static javax.xml.namespace.QName |
RP_SET
|
(package private) java.util.Hashtable |
sessionKeys
Maps entry keys to session keys. |
(package private) java.util.ArrayList |
sources
the AggregationSource(s) used to populate content for this SG |
private long |
sweeperInterval
|
| Constructor Summary | |
AggregatorServiceGroupResource()
|
|
| Method Summary | |
void |
addAggregatorSource(AggregatorSource source)
|
AggregatorConfiguration |
getConfiguration()
|
ResourceKey |
getKey()
|
ResourcePropertySet |
getResourcePropertySet()
|
protected void |
init(javax.xml.namespace.QName rpSetName)
|
private boolean |
isEntryCacheDirty()
|
java.util.Iterator |
iterateEntryKeys()
|
java.util.Iterator |
iterateEntryValues()
|
void |
loadCompatibleSources(AggregatorSink sink)
|
void |
notifyChange()
|
org.apache.axis.message.addressing.EndpointReferenceType |
serviceGroupAdd(Add add)
Adds a registration to the AggregatingServiceGroup. |
private void |
setEntryCacheDirty(boolean dirty)
|
void |
setVersion(java.lang.String version)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long DEFAULT_SWEEP_PERIOD
private static org.apache.commons.logging.Log logger
public static final javax.xml.namespace.QName RP_SET
public static final javax.xml.namespace.QName REGISTRATION_COUNT_RP
ResourcePropertySet propSet
java.util.Hashtable entries
java.util.Hashtable sessionKeys
java.util.Hashtable entryCache
boolean entryCacheDirty
AggregatorServiceGroupResource.EntrySweeper entrySweeper
private long sweeperInterval
java.util.ArrayList sources
org.globus.mds.usefulrp.AccumulatorResourceProperty registrationCountRP
org.globus.mds.usefulrp.ServiceMetaDataResourceProperty metadata
AggregatorConfiguration configuration
private ResourceKey key
| Constructor Detail |
public AggregatorServiceGroupResource()
| Method Detail |
protected void init(javax.xml.namespace.QName rpSetName)
public void addAggregatorSource(AggregatorSource source)
public ResourcePropertySet getResourcePropertySet()
getResourcePropertySet in interface ResourcePropertiespublic void setVersion(java.lang.String version)
public ResourceKey getKey()
public java.util.Iterator iterateEntryKeys()
iterateEntryKeys in interface ServiceGroupResourcepublic java.util.Iterator iterateEntryValues()
iterateEntryValues in interface ServiceGroupResourceprivate boolean isEntryCacheDirty()
private void setEntryCacheDirty(boolean dirty)
public AggregatorConfiguration getConfiguration()
public void loadCompatibleSources(AggregatorSink sink)
throws java.lang.Exception
java.lang.Exception
public org.apache.axis.message.addressing.EndpointReferenceType serviceGroupAdd(Add add)
throws java.rmi.RemoteException,
AddRefusedFaultType,
ContentCreationFailedFaultType,
UnsupportedMemberInterfaceFaultType
serviceGroupAdd in interface ServiceGroupRegistrationResourcejava.rmi.RemoteException
AddRefusedFaultType
ContentCreationFailedFaultType
UnsupportedMemberInterfaceFaultTypepublic void notifyChange()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||