org.jini.rio.monitor
Class InstantiatorResource
java.lang.Object
org.jini.rio.monitor.InstantiatorResource
public class InstantiatorResource
- extends Object
An InstantiatorResource is the object being leased and controlled by the
ServiceResource and represents an available ServiceInstantiation resource
which may be used to provision a ServiceBean. The InstantiatorResource
provides a concurrency lock through a boolean
member variable
which 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
- 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 (c) 2005 Sun Microsystems, Inc.
Copyright (c) 2006 GigaSpaces Technologies, Inc.
All Rights Reserved.