|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the API used to access a collection of service data contained in a service
| Method Summary | |
void |
add(ServiceData serviceData)
Adds a service data element to the set and makes it available to queries and subscriptions |
QName |
checkMatching(QName name)
If the name is a local name without a namespace, a matching qualified name with the same local name is returned. |
ServiceData |
create(java.lang.String name)
Creates a service data element with local name name. |
void |
delete(java.lang.String name)
|
java.lang.Object |
evaluate(java.lang.Object expression)
This method can be used to provide native expression types in the ServiceDataSet implementation, and it may be called by the framework as a result of a findServiceData query or a subscription expression evaluation. |
ServiceData |
get(java.lang.String name)
|
QName[] |
getNames()
Get the names of all currently contained service data elements |
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(java.lang.String name)
|
void |
removeListener(ServiceDataListener listener)
|
int |
size()
|
| Method Detail |
public java.lang.Object evaluate(java.lang.Object expression)
throws FaultType
FaultType
public ServiceData create(java.lang.String name)
throws GridServiceException
add method is called
GridServiceException
public void add(ServiceData serviceData)
throws GridServiceException
GridServiceException
public QName checkMatching(QName name)
throws GridServiceException
GridServiceException
public ServiceData get(java.lang.String name)
throws GridServiceException
GridServiceException
public void delete(java.lang.String name)
throws GridServiceException
GridServiceException
public ServiceData remove(java.lang.String name)
throws GridServiceException
GridServiceExceptionpublic void registerListener(ServiceDataListener listener)
public void removeListener(ServiceDataListener listener)
public QName[] getNames()
public QName[] getNotifiableNames()
public java.util.Iterator iterator()
ServiceData elementspublic int size()
public void notifyListeners(ServiceData serviceData)
ServiceData.notifyChange
public void notifyListenersWithAck(ServiceData serviceData)
ServiceData.notifyChange
The call returns when a notification has been sent to all listeners and their subscribers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||