Rio Project 4.2 API Documentation
org.rioproject.monitor
Class InstantiatorResource
java.lang.Object
org.rioproject.monitor.InstantiatorResource
public class InstantiatorResource
- extends Object
An InstantiatorResource is the object being leased and controlled by the
ServiceResource, and represents an available ServiceInstantiation
that can be used to provision a service. The InstantiatorResource
provides a concurrency lock through a boolean member variable
that indicates that the ServiceBeanInstantiator is available for the
provisioning of ServiceBean objects which have a provisioning type of
dynamic. Until this flag is set to true, the
ServiceBeanInstantiator will only be used for the provisioning of ServiceBean
objects which have a provisioning type of fixed. The
InstantiatorResource also maintains a table of ServiceElement objects and how
many of each ServiceElement has been provisioned
- Author:
- Dennis Reedy
- See Also:
ServiceBean,
ServiceBeanInstantiator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstantiatorResource
public InstantiatorResource(ServiceBeanInstantiator instantiator,
String instantiatorName,
Uuid instantiatorUuid,
MarshalledObject handback,
ResourceCapability resourceCapability,
int serviceLimit)
- Create an InstantiatorResource
- Parameters:
instantiator - A ServiceBeanInstantiatorinstantiatorName - Name for the ServiceBeanInstantiatorinstantiatorUuid - The Uuid that has been assigned to the
ServiceBeanInstantiator, may be nullhandback - The handback object the ServiceBeanInstantiator has
provided, may be nullresourceCapability - The ResourceCapability object for the
ServiceBeanInstantiatorserviceLimit - The total number of services the ServiceBeanInstantiator
will allocate
getHandback
public MarshalledObject getHandback()
- Get the handback object
- Returns:
- The handback object
Copyright © 2006-2011 Rio Project. All Rights Reserved.