org.globus.ogsa.impl.base.db.xindice
Class XindiceServiceDataSet

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

public class XindiceServiceDataSet
extends ServiceDataSetImpl
implements ServiceDataSet

This class implements a persistent ServiceDataSet using Apache Xindice as the storage engine


Field Summary
 boolean checkpointOnNotify
           
 
Constructor Summary
XindiceServiceDataSet(java.lang.String dbURI, java.lang.String collectionName)
           
 
Method Summary
 void add(ServiceData serviceData)
          Adds a service data element to the set and makes it available to queries and subscriptions
 void add(ServiceData serviceData, boolean destructiveAdd)
           
 void commit()
           
 void delete(QName name)
           
 void destroy()
           
 ServiceData get(QName name)
           
 boolean isLazyCommit()
           
 void notifyListeners(ServiceData serviceData)
          This method is called by service data elements on their parent set when they change.
 ServiceData remove(QName name)
           
 void setLazyCommit(boolean enabled)
           
 
Methods inherited from class org.globus.ogsa.impl.core.service.ServiceDataSetImpl
checkMatching, create, delete, evaluate, get, getNames, getNotifiableNames, iterator, notifyListenersWithAck, registerListener, remove, removeListener, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.ogsa.ServiceDataSet
checkMatching, create, delete, evaluate, get, getNames, getNotifiableNames, iterator, notifyListenersWithAck, registerListener, remove, removeListener, size
 

Field Detail

checkpointOnNotify

public boolean checkpointOnNotify
Constructor Detail

XindiceServiceDataSet

public XindiceServiceDataSet(java.lang.String dbURI,
                             java.lang.String collectionName)
                      throws java.lang.Exception
Method Detail

isLazyCommit

public boolean isLazyCommit()

setLazyCommit

public void setLazyCommit(boolean enabled)

commit

public void commit()
            throws java.lang.Exception
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Throws:
java.lang.Exception

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
Overrides:
notifyListeners in class ServiceDataSetImpl

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
Overrides:
add in class ServiceDataSetImpl
Throws:
GridServiceException

add

public void add(ServiceData serviceData,
                boolean destructiveAdd)
         throws GridServiceException
Throws:
GridServiceException

get

public ServiceData get(QName name)
                throws GridServiceException
Overrides:
get in class ServiceDataSetImpl
Throws:
GridServiceException

delete

public void delete(QName name)
            throws GridServiceException
Overrides:
delete in class ServiceDataSetImpl
Throws:
GridServiceException

remove

public ServiceData remove(QName name)
                   throws GridServiceException
Overrides:
remove in class ServiceDataSetImpl
Throws:
GridServiceException