org.globus.ogsa.impl.core.service
Class ServiceDataSetImpl

java.lang.Object
  extended byorg.globus.ogsa.impl.core.service.ServiceDataSetImpl
All Implemented Interfaces:
ServiceDataSet

public class ServiceDataSetImpl
extends java.lang.Object
implements ServiceDataSet

Default transient service data set implementation without native expression support.


Constructor Summary
ServiceDataSetImpl()
           
 
Method Summary
 void add(ServiceData serviceData)
          Adds a service data element to the set and makes it available to queries and subscriptions
 javax.xml.namespace.QName checkMatching(javax.xml.namespace.QName qname)
          If the name is a local name without a namespace, a matching qualified name with the same local name is returned.
 ServiceData create(javax.xml.namespace.QName name)
          Creates a service data element with qualified name qname.
 ServiceData create(java.lang.String name)
          Creates a service data element with local name name.
 void delete(javax.xml.namespace.QName name)
           
 void delete(java.lang.String name)
           
 java.lang.Object evaluate(java.lang.Object expression)
          Native evaluation not supported
 ServiceData get(javax.xml.namespace.QName name)
           
 ServiceData get(java.lang.String name)
           
 javax.xml.namespace.QName[] getNames()
          Get the names of all currently contained service data elements
 javax.xml.namespace.QName[] getNotifiableNames()
          Get the names of all currently contained service data elements that can be subscribed to.
 java.util.Iterator iterator()
           
 void notifyListeners(ServiceData serviceData)
          This method is called by service data elements on their parent set when they change.
 void notifyListenersWithAck(ServiceData serviceData)
          This method is called by service data elements on their parent set when they change.
 void registerListener(ServiceDataListener listener)
          Registers a listener that will be called whenever a SerivceData value changes in the contained set.
 ServiceData remove(javax.xml.namespace.QName name)
           
 ServiceData remove(java.lang.String name)
           
 void removeListener(ServiceDataListener listener)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDataSetImpl

public ServiceDataSetImpl()
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.Object expression)
                          throws FaultType
Native evaluation not supported

Specified by:
evaluate in interface ServiceDataSet
Throws:
FaultType

create

public ServiceData create(java.lang.String name)
                   throws GridServiceException
Description copied from interface: ServiceDataSet
Creates a service data element with local name name. Note the element is not added to the set (and thus not target to queries or subscriptions) until the add method is called

Specified by:
create in interface ServiceDataSet
Throws:
GridServiceException

create

public ServiceData create(javax.xml.namespace.QName name)
                   throws GridServiceException
Description copied from interface: ServiceDataSet
Creates a service data element with qualified name qname. Note the element is not added to the set (and thus not target to queries or subscriptions) until the add method is called

Specified by:
create in interface ServiceDataSet
Throws:
GridServiceException

add

public void add(ServiceData serviceData)
         throws GridServiceException
Description copied from interface: ServiceDataSet
Adds a service data element to the set and makes it available to queries and subscriptions

Specified by:
add in interface ServiceDataSet
Throws:
GridServiceException

checkMatching

public javax.xml.namespace.QName checkMatching(javax.xml.namespace.QName qname)
                                        throws GridServiceException
Description copied from interface: ServiceDataSet
If the name is a local name without a namespace, a matching qualified name with the same local name is returned. This allows for queries and subscriptions on a local name only.

Specified by:
checkMatching in interface ServiceDataSet
Throws:
GridServiceException

get

public ServiceData get(java.lang.String name)
                throws GridServiceException
Specified by:
get in interface ServiceDataSet
Throws:
GridServiceException

get

public ServiceData get(javax.xml.namespace.QName name)
                throws GridServiceException
Specified by:
get in interface ServiceDataSet
Throws:
GridServiceException

remove

public ServiceData remove(java.lang.String name)
                   throws GridServiceException
Specified by:
remove in interface ServiceDataSet
Throws:
GridServiceException

remove

public ServiceData remove(javax.xml.namespace.QName name)
                   throws GridServiceException
Specified by:
remove in interface ServiceDataSet
Throws:
GridServiceException

delete

public void delete(java.lang.String name)
            throws GridServiceException
Specified by:
delete in interface ServiceDataSet
Throws:
GridServiceException

delete

public void delete(javax.xml.namespace.QName name)
            throws GridServiceException
Specified by:
delete in interface ServiceDataSet
Throws:
GridServiceException

registerListener

public void registerListener(ServiceDataListener listener)
Description copied from interface: ServiceDataSet
Registers a listener that will be called whenever a SerivceData value changes in the contained set.

Specified by:
registerListener in interface ServiceDataSet

removeListener

public void removeListener(ServiceDataListener listener)
Specified by:
removeListener in interface ServiceDataSet

getNames

public javax.xml.namespace.QName[] getNames()
Description copied from interface: ServiceDataSet
Get the names of all currently contained service data elements

Specified by:
getNames in interface ServiceDataSet

getNotifiableNames

public javax.xml.namespace.QName[] getNotifiableNames()
Description copied from interface: ServiceDataSet
Get the names of all currently contained service data elements that can be subscribed to.

Specified by:
getNotifiableNames in interface ServiceDataSet

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface ServiceDataSet
Returns:
an iterator over the ServiceData elements

size

public int size()
Specified by:
size in interface ServiceDataSet
Returns:
number of ServiceData instances contained in this set

notifyListeners

public void notifyListeners(ServiceData serviceData)
Description copied from interface: ServiceDataSet
This method is called by service data elements on their parent set when they change. See: ServiceData.notifyChange

Specified by:
notifyListeners in interface ServiceDataSet

notifyListenersWithAck

public void notifyListenersWithAck(ServiceData serviceData)
Description copied from interface: ServiceDataSet
This method is called by service data elements on their parent set when they change. See: ServiceData.notifyChange The call returns when a notification has been sent to all listeners and their subscribers.

Specified by:
notifyListenersWithAck in interface ServiceDataSet


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.