org.globus.ogsa.impl.base.servicegroup.persistence
Interface ServiceGroupPersistenceHandler

All Known Implementing Classes:
ServiceGroupXindiceHandler

public interface ServiceGroupPersistenceHandler

This interface defines the APIs to interact with a persistance handler Implementation.


Method Summary
 boolean add(LocatorType serviceGroupEntryLocator, LocatorType memberServiceLocator, ExtensibilityType content, TerminationTimeType terminationTimeType)
          Adds a service group entry.
 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 serviceGroup Entry service data for a given handle.
 EntryType[] getServiceGroupEntryData(java.lang.String serviceGroupHandle)
          Retrieves the serviceGroup Entry service data for a given handle.
 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.
 void initialize()
          The initialize method.
 boolean remove(HandleType[] memberServiceHandles)
          Removes sevice group entries from the persistence container for the corresponding service group entries
 boolean removeServiceGroupEntry(HandleType serviceGroupEntryHandle)
          Removes the service group entries from the collection.
 

Method Detail

initialize

public void initialize()
                throws java.lang.Exception
The initialize method. This method initializes the persistance Handler.

Throws:
java.lang.Exception

add

public boolean add(LocatorType serviceGroupEntryLocator,
                   LocatorType memberServiceLocator,
                   ExtensibilityType content,
                   TerminationTimeType terminationTimeType)
            throws AddRefusedFaultType
Adds a service group entry.

Parameters:
serviceGroupEntryLocator - - The Service Group Entry Locator
memberServiceLocator - - The member service Locator
content - - The Member Content
terminationTimeType - - Termination Time
Returns:
boolean
Throws:
AddRefusedFaultType

remove

public boolean remove(HandleType[] memberServiceHandles)
               throws RemoveFailedFaultType,
                      MatchFailedFaultType
Removes sevice group entries from the persistence container for the corresponding 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 service group entry handles
Throws:
java.lang.Exception

getAllServiceGroupEntryLocators

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

Returns:
list of service group entries
Throws:
java.lang.Exception

getServiceGroupEntryMemberServiceLocatorData

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

Parameters:
serviceGroupEntryHandle - - The Service Group Entry Handle
Returns:
service group entry locator represented as an Element
Throws:
java.lang.Exception

getServiceGroupEntryContentData

public org.w3c.dom.Document getServiceGroupEntryContentData(java.lang.String serviceGroupEntryHandle)
                                                     throws java.lang.Exception
Retrieves the serviceGroup Entry service data for a given handle.

Parameters:
serviceGroupEntryHandle - - The Service Group Handle
Returns:
service group entry content Document
Throws:
java.lang.Exception

getServiceGroupEntryData

public EntryType[] getServiceGroupEntryData(java.lang.String serviceGroupHandle)
                                     throws java.lang.Exception
Retrieves the serviceGroup Entry service data for a given handle.

Parameters:
serviceGroupHandle - - The Service Group Handle
Returns:
service group Entry service data
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 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