All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface vnet.yawb.YAWBBackendConnection

public interface YAWBBackendConnection
A representation of a connection to a YAWB backend.

Only one DataStore should be used per connection. If another store is required, another connection should be used.


Method Index

 o cleanup()
Closes the connection and performs any required cleanup.
 o getBackendID()
Returns the identifer string of the backend that produced the connection.
 o getDataStore(String, String)
Returns a new Data Store containing the specified entry at the specified root.
 o isOpen()
Determines if the connection is still open.

Methods

 o getDataStore
 public abstract YAWBDataStore getDataStore(String root,
                                            String entry) throws YAWBException
Returns a new Data Store containing the specified entry at the specified root.

Parameters:
root - the entry's root
entry - name of the entry
Returns:
Returns the entry's DataStore
Throws: YAWBException
if a YAWB error occured
 o getBackendID
 public abstract String getBackendID()
Returns the identifer string of the backend that produced the connection.

Returns:
originating backend's ID
 o isOpen
 public abstract boolean isOpen()
Determines if the connection is still open.

Returns:
returns true if the connection i open, otherwise returns false.
 o cleanup
 public abstract void cleanup()
Closes the connection and performs any required cleanup.


All Packages  Class Hierarchy  This Package  Previous  Next  Index