Rio Project 4.2 API Documentation



org.rioproject.cybernode
Class TransientServiceStatementManager

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

public class TransientServiceStatementManager
extends Object
implements ServiceStatementManager

The TransientServiceStatementManager provides an implementation of the ServiceStatementManager, setting and accessing ServiceStatement instances in a List

Author:
Dennis Reedy

Constructor Summary
TransientServiceStatementManager(Configuration config)
          Create a TransientServiceStatementManager
 
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

TransientServiceStatementManager

public TransientServiceStatementManager(Configuration config)
Create a TransientServiceStatementManager

Parameters:
config - The Configuration
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.