Rio Project 4.2 API Documentation



org.rioproject.cybernode
Class PersistentServiceStatementManager

java.lang.Object
  extended by org.rioproject.cybernode.PersistentServiceStatementManager
All Implemented Interfaces:
ServiceStatementManager

public class PersistentServiceStatementManager
extends Object
implements ServiceStatementManager

The PersistentServiceStatementManager provides an implementation of the ServiceStatementManager, reading and writing ServiceStatement instances to the file system

Author:
Dennis Reedy

Constructor Summary
PersistentServiceStatementManager(Configuration config)
          Create a PersistentServiceStatementManager
 
Method Summary
 ServiceStatement[] get()
          Get an array of ServiceStatement objects
 ServiceStatement get(ServiceElement sElem)
          Get a ServiceStatement for a particular ServiceElement
 void record(ServiceStatement statement)
          Record a ServiceStatement
 void terminate()
          Terminate and clean up any resouces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentServiceStatementManager

public PersistentServiceStatementManager(Configuration config)
Create a PersistentServiceStatementManager

Parameters:
config - The configuration to use
Method Detail

terminate

public void terminate()
Description copied from interface: ServiceStatementManager
Terminate and clean up any resouces

Specified by:
terminate in interface ServiceStatementManager
See Also:
ServiceStatementManager.terminate()

get

public ServiceStatement[] get()
Description copied from interface: ServiceStatementManager
Get an array of ServiceStatement objects

Specified by:
get in interface ServiceStatementManager
Returns:
An array of ServiceStatement objects. The array will be empty if no records have been found
See Also:
ServiceStatementManager.get()

get

public ServiceStatement get(ServiceElement sElem)
Description copied from interface: ServiceStatementManager
Get a ServiceStatement for a particular ServiceElement

Specified by:
get in interface ServiceStatementManager
Parameters:
sElem - The ServiceElement
Returns:
A ServiceStatement object. If no ServiceStatement is found for the ServiceElement a null is returned
See Also:
ServiceStatementManager.get()

record

public void record(ServiceStatement statement)
Description copied from interface: ServiceStatementManager
Record a ServiceStatement

Specified by:
record in interface ServiceStatementManager
Parameters:
statement - The ServiceStatement to write
See Also:
ServiceStatementManager.record(org.rioproject.core.provision.ServiceStatement)

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.