org.globus.ogsa.impl.base.servicegroup.service
Class ServiceGroupPersistenceDelegate

java.lang.Object
  extended byorg.globus.ogsa.impl.base.servicegroup.service.ServiceGroupPersistenceDelegate

public class ServiceGroupPersistenceDelegate
extends java.lang.Object

Implements persiatence for ServiceGroup services


Constructor Summary
ServiceGroupPersistenceDelegate(GridServiceBase serviceBase)
          The constructor of the class.
 
Method Summary
 _addResponse add(LocatorType serviceGroupEntryLocator, LocatorType memberServiceLocator, ExtensibilityType content, TerminationTimeType terminationTimeType)
          Adds an entry to this service group.
 boolean cleanupServiceGroupEntryService(java.lang.String serviceHandle)
          Removes the serviceGroup Entry service for a given handle.
 boolean cleanupServiceGroupRegistrationService()
          Removes the serviceGroup Registration service.
 HandleType[] getAllServiceGroupEntryLocators()
          Retrieves all service group entries from the collection.
 org.w3c.dom.Document getServiceGroupEntryContentData(java.lang.String serviceGroupEntryHandle)
          Retrieves the content Document for a given service group entry.
 EntryType[] getServiceGroupEntryData(java.lang.String serviceGroupHandle)
          Retrieves the list of serviceGroup entries for a given service group.
 HandleType[] getServiceGroupEntryLocators(HandleType[] memberServiceHandles)
          Retrieves the corresponding service group entries from the collection.
 org.w3c.dom.Element getServiceGroupEntryMemberServiceLocatorData(java.lang.String serviceGroupEntryHandle)
          Retrieves the MemberServiceHandle service data for a given service group entry.
 void initialize()
          Initializes the persistance Handler.
 boolean remove(HandleType[] memberServiceHandles)
          Removes a list of service group entries.
 boolean removeServiceGroupEntry(HandleType serviceGroupEntryHandle)
          Removes the service group entries from the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceGroupPersistenceDelegate

public ServiceGroupPersistenceDelegate(GridServiceBase serviceBase)
                                throws java.lang.Exception
The constructor of the class.

Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Initializes the persistance Handler.

Throws:
java.lang.Exception - -

add

public _addResponse add(LocatorType serviceGroupEntryLocator,
                        LocatorType memberServiceLocator,
                        ExtensibilityType content,
                        TerminationTimeType terminationTimeType)
                 throws AddRefusedFaultType
Adds an entry to this service group.

Parameters:
serviceGroupEntryLocator - - The Service Group Entry LocatorType
memberServiceLocator - - LocatorType - The member service LocatorType
content - - The Member Content ExtensibilityType
terminationTimeType - - Termination Time of the entry
Returns:
true on success
Throws:
AddRefusedFaultType - if the entry could not be persisted

remove

public boolean remove(HandleType[] memberServiceHandles)
               throws RemoveFailedFaultType,
                      MatchFailedFaultType
Removes a list of service group entries.

Parameters:
memberServiceHandles - - The List of member service Handles
Returns:
true on success
Throws:
RemoveFailedFaultType
MatchFailedFaultType

removeServiceGroupEntry

public boolean removeServiceGroupEntry(HandleType serviceGroupEntryHandle)
                                throws RemoveFailedFaultType
Removes the service group entries from the collection.

Parameters:
serviceGroupEntryHandle - - service group entry Handle for removal
Returns:
true on success
Throws:
RemoveFailedFaultType

getServiceGroupEntryLocators

public HandleType[] getServiceGroupEntryLocators(HandleType[] memberServiceHandles)
                                          throws java.lang.Exception
Retrieves the corresponding service group entries from the collection.

Parameters:
memberServiceHandles - - Array of member service Handles for removal
Returns:
list of HandleType corresponding to member services
Throws:
java.lang.Exception

getAllServiceGroupEntryLocators

public HandleType[] getAllServiceGroupEntryLocators()
                                             throws java.lang.Exception
Retrieves all service group entries from the collection.

Returns:
list of HandleType corresponding to service group entry locators
Throws:
java.lang.Exception

getServiceGroupEntryMemberServiceLocatorData

public org.w3c.dom.Element getServiceGroupEntryMemberServiceLocatorData(java.lang.String serviceGroupEntryHandle)
                                                                 throws java.lang.Exception
Retrieves the MemberServiceHandle service data for a given service group entry.

Parameters:
serviceGroupEntryHandle - - The Service Group Entry Handle
Returns:
the member service handle
Throws:
java.lang.Exception

getServiceGroupEntryContentData

public org.w3c.dom.Document getServiceGroupEntryContentData(java.lang.String serviceGroupEntryHandle)
                                                     throws java.lang.Exception
Retrieves the content Document for a given service group entry.

Parameters:
serviceGroupEntryHandle - - The Service Group Entry Handle
Returns:
Document - content service data represented as a Document.
Throws:
Excpetion
java.lang.Exception

getServiceGroupEntryData

public EntryType[] getServiceGroupEntryData(java.lang.String serviceGroupHandle)
                                     throws java.lang.Exception
Retrieves the list of serviceGroup entries for a given service group.

Parameters:
serviceGroupHandle - - The Service Group Handle
Returns:
serviceGroupHandle - Array of service group entries
Throws:
java.lang.Exception

cleanupServiceGroupEntryService

public boolean cleanupServiceGroupEntryService(java.lang.String serviceHandle)
                                        throws java.lang.Exception
Removes the serviceGroup Entry service for a given handle.

Parameters:
serviceHandle - - The Service Group Entry Service Handle
Returns:
true on success
Throws:
java.lang.Exception - -

cleanupServiceGroupRegistrationService

public boolean cleanupServiceGroupRegistrationService()
                                               throws java.lang.Exception
Removes the serviceGroup Registration service.

Returns:
true on success
Throws:
java.lang.Exception