Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


oracle.as.scheduler.management
Class AsyncThrottle

java.lang.Object
  extended by oracle.as.scheduler.management.AsyncThrottle

All Implemented Interfaces:
java.io.Serializable

public class AsyncThrottle
extends java.lang.Object
implements java.io.Serializable
See Also:
Serialized Form

Field Summary
protected  int m_asyncJavaAlloc
           
protected  int m_asyncJavaLimit
           
protected  int m_plsqlAlloc
           
protected  int m_plsqlLimit
           
static int NO_LIMIT
           
static int UNSPECIFIED
           

 

Constructor Summary
protected AsyncThrottle(MetadataObjectId workshiftId)
          Deprecated. 
  AsyncThrottle(MetadataObjectId workshiftId, int plsqlLimit, int asyncJavaLimit)
          Deprecated. 
protected AsyncThrottle(MetadataObjectId workshiftId, int plsqlLimit, int asyncJavaLimit, int plsqlAlloc, int asyncJavaAlloc)
          Deprecated. 
protected AsyncThrottle(MetadataObjectId workAssignmentId, MetadataObjectId workshiftId)
          NOTE !!!!!! This constructor is for internal ESS use only.
  AsyncThrottle(MetadataObjectId workAssignmentId, MetadataObjectId workshiftId, int plsqlLimit, int asyncJavaLimit)
          Creates an async throttle object, which defines limits on the number of asynchronous jobs that can be running concurrently for a particular (WorkAssignment, Workshift).
protected AsyncThrottle(MetadataObjectId workAssignmentId, MetadataObjectId workshiftId, int plsqlLimit, int asyncJavaLimit, int plsqlAlloc, int asyncJavaAlloc)
          NOTE !!!!!! This constructor is for internal ESS use only.

 

Method Summary
static AsyncThrottle from(javax.management.openmbean.CompositeData cd)
          Create an instance of the model specific class out of an associated CompositeData instance
 int getAsyncJavaAlloc()
          Returns current number of running AsyncJava jobs for the (WorkAssignment, Workshift).
 int getAsyncJavaLimit()
          Returns max number of asyncJava jobs that can be running concurrently for the (WorkAssignment, Workshift).
 int getPlsqlAlloc()
          Returns current number of running PL/SQL jobs for the (WorkAssignment, Workshift).
 int getPlsqlLimit()
          Returns max number of PL/SQL jobs that can be running concurrently for the (WorkAssignment, Workshift).
 MetadataObjectId getWorkAssignmentId()
          Returns the metadata id for the work assignment.
 MetadataObjectId getWorkshiftId()
          Returns the metadata id for the workshift.
 boolean isAsyncJavaThrottled()
          Determines if async java jobs are being throttled.
 boolean isPlsqlThrottled()
          Determines if pl/sql jobs are being throttled.
 void setAsyncJavaLimit(int asyncJavaLimit)
          Sets the max number of asyncJava jobs that can be running concurrently for the (WorkAssignment, Workshift).
 void setPlsqlLimit(int plsqlLimit)
          Sets the max number of PL/SQL jobs that can be running concurrently for the (WorkAssignment, Workshift).
 javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
          Convert an instance of this model specific type to a CompositeData.
static javax.management.openmbean.CompositeType toCompositeType()
          Returns the CompositeType that describes this model specific class
 java.lang.String toDebugString()
           
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

NO_LIMIT

public static final int NO_LIMIT
See Also:
Constant Field Values

UNSPECIFIED

public static final int UNSPECIFIED
See Also:
Constant Field Values

m_plsqlLimit

protected int m_plsqlLimit

m_asyncJavaLimit

protected int m_asyncJavaLimit

m_plsqlAlloc

protected int m_plsqlAlloc

m_asyncJavaAlloc

protected int m_asyncJavaAlloc

Constructor Detail

AsyncThrottle

@Deprecated
public AsyncThrottle(MetadataObjectId workshiftId,
                                int plsqlLimit,
                                int asyncJavaLimit)
Deprecated. 
Creates an async throttle object, which defines limits on the number of asynchronous jobs that can be running concurrently in a particular Workshift. The limits apply to any WorkAssignment that uses the Workshift.
Parameters:
workshiftId - workshift to throttle
plsqlLimit - max PL/SQL jobs running
asyncJavaLimit - max asyncJava jobs running

AsyncThrottle

public AsyncThrottle(MetadataObjectId workAssignmentId,
                     MetadataObjectId workshiftId,
                     int plsqlLimit,
                     int asyncJavaLimit)
Creates an async throttle object, which defines limits on the number of asynchronous jobs that can be running concurrently for a particular (WorkAssignment, Workshift).
Parameters:
workAssignmentId - work assignment to throttle
workshiftId - workshift to throttle
plsqlLimit - max PL/SQL jobs running
asyncJavaLimit - max asyncJava jobs running

AsyncThrottle

@Deprecated
protected AsyncThrottle(MetadataObjectId workshiftId)
Deprecated. 
NOTE !!!!!! This constructor is for internal ESS use only. Creates an async throttle object with no limits.
Parameters:
workshiftId - workshift to throttle

AsyncThrottle

protected AsyncThrottle(MetadataObjectId workAssignmentId,
                        MetadataObjectId workshiftId)
NOTE !!!!!! This constructor is for internal ESS use only. Creates an async throttle object with no limits.
Parameters:
workAssignmentId - work assignment to throttle
workshiftId - workshift to throttle

AsyncThrottle

@Deprecated
protected AsyncThrottle(MetadataObjectId workshiftId,
                                   int plsqlLimit,
                                   int asyncJavaLimit,
                                   int plsqlAlloc,
                                   int asyncJavaAlloc)
Deprecated. 
NOTE !!!!!! This constructor is for internal ESS use only. Creates an async throttle object, which defines limits on the number of asynchronous jobs that can be running concurrently in a particular (IsolationGroup, Workshift) and also provides the current allocations.
Parameters:
workshiftId - workshift to throttle
plsqlLimit - max PL/SQL jobs running
asyncJavaLimit - max asyncJava jobs running

AsyncThrottle

protected AsyncThrottle(MetadataObjectId workAssignmentId,
                        MetadataObjectId workshiftId,
                        int plsqlLimit,
                        int asyncJavaLimit,
                        int plsqlAlloc,
                        int asyncJavaAlloc)
NOTE !!!!!! This constructor is for internal ESS use only. Creates an async throttle object, which defines limits on the number of asynchronous jobs that can be running concurrently in a particular (WorkAssignment, Workshift) in the isolation group and also provides the current allocations.
Parameters:
workAssignmentId - work assignment to throttle
workshiftId - workshift to throttle
plsqlLimit - max PL/SQL jobs running
asyncJavaLimit - max asyncJava jobs running

Method Detail

getWorkAssignmentId

public MetadataObjectId getWorkAssignmentId()
Returns the metadata id for the work assignment.
Returns:
work assignment metadata object id

getWorkshiftId

public MetadataObjectId getWorkshiftId()
Returns the metadata id for the workshift.
Returns:
workshift metadata object id

getPlsqlLimit

public int getPlsqlLimit()
Returns max number of PL/SQL jobs that can be running concurrently for the (WorkAssignment, Workshift).
Returns:
PL/SQL job limit

setPlsqlLimit

public void setPlsqlLimit(int plsqlLimit)
Sets the max number of PL/SQL jobs that can be running concurrently for the (WorkAssignment, Workshift).
Parameters:
plsqlLimit - PL/SQL job limit

getAsyncJavaLimit

public int getAsyncJavaLimit()
Returns max number of asyncJava jobs that can be running concurrently for the (WorkAssignment, Workshift).
Returns:
asyncJava job limit

setAsyncJavaLimit

public void setAsyncJavaLimit(int asyncJavaLimit)
Sets the max number of asyncJava jobs that can be running concurrently for the (WorkAssignment, Workshift).
Parameters:
asyncJavaLimit - asyncJava job limit

getPlsqlAlloc

public int getPlsqlAlloc()
Returns current number of running PL/SQL jobs for the (WorkAssignment, Workshift).
Returns:
PL/SQL current allocation

getAsyncJavaAlloc

public int getAsyncJavaAlloc()
Returns current number of running AsyncJava jobs for the (WorkAssignment, Workshift).
Returns:
asyncJava current allocation

isPlsqlThrottled

public boolean isPlsqlThrottled()
Determines if pl/sql jobs are being throttled.
Returns:
true if both limit and allocation are set and valid, and the allocation is equal to the limit; false if both limit and allocation are set and valid, and the allocation is less than the limit ORx either limit or allocation is not set or valid.

isAsyncJavaThrottled

public boolean isAsyncJavaThrottled()
Determines if async java jobs are being throttled.
Returns:
true if both limit and allocation are set and valid, and the allocation is equal to the limit; false if both limit and allocation are set and valid, and the allocation is less than the limit OR either limit or allocation is not set or valid.

toCompositeType

public static javax.management.openmbean.CompositeType toCompositeType()
Returns the CompositeType that describes this model specific class

toCompositeData

public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
Convert an instance of this model specific type to a CompositeData. This ensure that clients that do not have access to the model specific class can still use the MBean. The MXBean framework can perform this conversion automatically. However MXBeans are part of JDK 6.0 and AS11g is required to support JDK 5.0
Parameters:
ct - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.

from

public static AsyncThrottle from(javax.management.openmbean.CompositeData cd)
                          throws java.lang.IllegalArgumentException
Create an instance of the model specific class out of an associated CompositeData instance
Throws:
java.lang.IllegalArgumentException

toDebugString

public java.lang.String toDebugString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.