FileDocCategorySizeDatePackage
RequestPartitioningPolicy.javaAPI DocJava SE 5 API1678Fri Aug 26 14:54:36 BST 2005com.sun.corba.se.spi.extension

RequestPartitioningPolicy

public class RequestPartitioningPolicy extends org.omg.CORBA.LocalObject implements org.omg.CORBA.Policy
Policy used to support the request partitioning feature and to specify the partition to use.

Fields Summary
private static com.sun.corba.se.impl.logging.ORBUtilSystemException
wrapper
public static final int
DEFAULT_VALUE
private final int
value
Constructors Summary
public RequestPartitioningPolicy(int value)


         
    
	if (value < ORBConstants.REQUEST_PARTITIONING_MIN_THREAD_POOL_ID ||
	    value > ORBConstants.REQUEST_PARTITIONING_MAX_THREAD_POOL_ID) {
	    throw wrapper.invalidRequestPartitioningPolicyValue(
		  new Integer(value),
	          new Integer(
		      ORBConstants.REQUEST_PARTITIONING_MIN_THREAD_POOL_ID),
	          new Integer(
		      ORBConstants.REQUEST_PARTITIONING_MAX_THREAD_POOL_ID));
	}
	this.value = value;
    
Methods Summary
public org.omg.CORBA.Policycopy()

	return this;
    
public voiddestroy()

	// NO-OP
    
public intgetValue()

	return value;
    
public intpolicy_type()

	return ORBConstants.REQUEST_PARTITIONING_POLICY;
    
public java.lang.StringtoString()

	return "RequestPartitioningPolicy[" + value + "]" ;