org.jini.rio.monitor
Class InstantiatorResource

java.lang.Object
  extended by 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

Constructor Summary
InstantiatorResource(ServiceBeanInstantiator instantiator, String instantiatorName, Uuid instantiatorUuid, MarshalledObject handback, ResourceCapability resourceCapability, int serviceLimit)
          Create an InstantiatorResource
 
Method Summary
 MarshalledObject getHandback()
          Get the handback object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstantiatorResource

public InstantiatorResource(ServiceBeanInstantiator instantiator,
                            String instantiatorName,
                            Uuid instantiatorUuid,
                            MarshalledObject handback,
                            ResourceCapability resourceCapability,
                            int serviceLimit)
Create an InstantiatorResource

Parameters:
instantiator - A ServiceBeanInstantiator
instantiatorName - Name for the ServiceBeanInstantiator
instantiatorUuid - The Uuid that has been assigned to the ServiceBeanInstantiator, may be null
handback - The handback object the ServiceBeanInstantiator has provided, may be null
resourceCapability - The ResourceCapability object for the ServiceBeanInstantiator
serviceLimit - The total number of services the ServiceBeanInstantiator will allocate
Method Detail

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.