org.globus.wsrf.impl.servicegroup.inmemory
Class InMemoryServiceGroupResource

java.lang.Object
  extended byorg.globus.wsrf.impl.servicegroup.inmemory.InMemoryServiceGroupResource
All Implemented Interfaces:
Resource, ResourceProperties, ServiceGroupRegistrationResource, ServiceGroupResource

public class InMemoryServiceGroupResource
extends Object
implements ResourceProperties, ServiceGroupRegistrationResource

Implements a simple 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.


Field Summary
(package private)  HashMap entries
          Maps entry keys to entry resource objects.
private  ResourceKey key
           
private static org.apache.commons.logging.Log logger
           
(package private)  ResourcePropertySet propSet
           
static QName RP_SET
           
 
Constructor Summary
InMemoryServiceGroupResource()
           
 
Method Summary
 ResourceKey getKey()
           
 ResourcePropertySet getResourcePropertySet()
           
 Iterator iterateEntryKeys()
          Provide an iterator that will return ResourceKeys that are valid in the context of the entry home
 Iterator iterateEntryValues()
          Provide an iterator to a java.util.Set for getting the runtime entry Resource instances directly.
 EndpointReferenceType serviceGroupAdd(Add add)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

RP_SET

public static final QName RP_SET

propSet

ResourcePropertySet propSet

entries

HashMap entries
Maps entry keys to entry resource objects.


key

private ResourceKey key
Constructor Detail

InMemoryServiceGroupResource

public InMemoryServiceGroupResource()
Method Detail

getResourcePropertySet

public ResourcePropertySet getResourcePropertySet()
Specified by:
getResourcePropertySet in interface ResourceProperties

getKey

public ResourceKey getKey()

iterateEntryKeys

public Iterator iterateEntryKeys()
Description copied from interface: ServiceGroupResource
Provide an iterator that will return ResourceKeys that are valid in the context of the entry home

Specified by:
iterateEntryKeys in interface ServiceGroupResource

iterateEntryValues

public Iterator iterateEntryValues()
Description copied from interface: ServiceGroupResource
Provide an iterator to a java.util.Set for getting the runtime entry Resource instances directly. The element returned by the iterator is of the type Map.Entry

Specified by:
iterateEntryValues in interface ServiceGroupResource

serviceGroupAdd

public EndpointReferenceType serviceGroupAdd(Add add)
                                                                         throws RemoteException
Specified by:
serviceGroupAdd in interface ServiceGroupRegistrationResource
Throws:
RemoteException