|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ogsa.ServiceGroupEntryGenerator
The ServiceGroupEntryGenerator
generates an OGSI ServiceGroup
EntryType
collection ServiceData
from a
ServiceNode
(recursively),
from a list of services, or from a list of handles
ServiceData
,
ServiceNode
,
EntryType
Constructor Summary | |
ServiceGroupEntryGenerator()
|
Method Summary | |
static java.util.Collection |
handlesToEntries(java.util.Iterator handles)
creates a collection of EntryType objects for a collection
of services represented by their handles (as String s) |
static java.util.Collection |
nodeToEntries(ServiceNode node)
creates a collection of EntryType objects for a node and
all its child nodes. |
static java.util.Collection |
servicesToEntries(java.util.Collection services)
creates a collection of EntryType objects for a collection
of services (supporting the ServiceProperties
interface) |
static boolean |
updateEntrySDE(ServiceData serviceData,
ServiceProperties properties,
boolean unbind)
Updates the Entry SDE value. |
static void |
updateServiceData(java.util.Collection services,
GridServiceBase base)
adds a collection of services ( ServiceProperties ) to the
ServiceDataSet of a Grid service after converting them
to a collection of EntryType service data |
static void |
updateServiceData(java.util.Iterator handles,
GridServiceBase base)
adds a collection of handles ( String s) to the
ServiceDataSet of a Grid service after converting them
to a collection of EntryType service data |
static void |
updateServiceDataEntries(java.util.Collection entries,
GridServiceBase base)
adds a collection of EntryType s to the
ServiceDataSet of a Grid service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceGroupEntryGenerator()
Method Detail |
public static java.util.Collection nodeToEntries(ServiceNode node)
EntryType
objects for a node and
all its child nodes.
node
- parent node containing services to be included in the
EntryType (parent will be included too) collection
EntryType
s populated with properties
of the input nodesEntryType
public static java.util.Collection servicesToEntries(java.util.Collection services)
EntryType
objects for a collection
of services (supporting the ServiceProperties
interface)
services
- collection of ServiceProperties
objects
EntryType
s populated with properties
of the input servicesEntryType
,
ServiceProperties
public static java.util.Collection handlesToEntries(java.util.Iterator handles)
EntryType
objects for a collection
of services represented by their handles (as String
s)
handles
- Iterator over a set of String
s of service
handles
EntryType
s populated with the input
handlesEntryType
public static void updateServiceData(java.util.Collection services, GridServiceBase base) throws GridServiceException
ServiceProperties
) to the
ServiceDataSet
of a Grid service after converting them
to a collection of EntryType
service data
services
- collection of ServiceProperties
base
- Grid service that is to be populated with the service data
elements containing ServiceGroup
entries
GridServiceException
- if the service data could not be addedEntryType
,
ServiceProperties
,
ServiceDataSet
public static void updateServiceData(java.util.Iterator handles, GridServiceBase base) throws GridServiceException
String
s) to the
ServiceDataSet
of a Grid service after converting them
to a collection of EntryType
service data
handles
- an iterator over handles in the form of
String
sbase
- Grid service that is to be populated with the service data
elements containing ServiceGroup
entries
GridServiceException
- if the service data could not be addedEntryType
,
ServiceDataSet
public static void updateServiceDataEntries(java.util.Collection entries, GridServiceBase base) throws GridServiceException
EntryType
s to the
ServiceDataSet
of a Grid service
entries
- a Collection
of EntryType
objectsbase
- Grid service that is to be populated with the service data
elements containing ServiceGroup
entries
GridServiceException
- if the service data could not be addedEntryType
,
ServiceDataSet
public static boolean updateEntrySDE(ServiceData serviceData, ServiceProperties properties, boolean unbind) throws GridServiceException
serviceData
- the Entry SDEproperties
- the service that was added/modified/removedunbind
- true if service was unbound, false otherwise.
GridServiceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |