Skip navigation links

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


oracle.as.scheduler.management
Class Binding

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

All Implemented Interfaces:
java.io.Serializable

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

Nested Class Summary
static class Binding.BindingScope
          Scope of the binding.

 

Constructor Summary
Binding(MetadataObjectId waMid, boolean isExclusive)
          Creates a binding without any container information.
Binding(MetadataObjectId waMid, boolean isExclusive, Binding.BindingScope bindingScope)
          Creates a binding without any container information.
Binding(java.lang.String processGroup, java.lang.String serverName, MetadataObjectId waMid, boolean isExclusive)
          Creates a binding.
Binding(java.lang.String processGroup, java.lang.String serverName, MetadataObjectId waMid, boolean isExclusive, Binding.BindingScope bindingScope)
          Creates a binding.

 

Method Summary
 boolean equals(java.lang.Object o)
          Determines if the Binding objects are equal.
static Binding from(javax.management.openmbean.CompositeData cd)
          Create an instance of the model specific class out of an associated CompositeData instance
 Binding.BindingScope getBindingScope()
          Returns whether this work assignment binding is global.
 java.lang.String getProcessGroup()
          Returns the process group for this binding.
 java.lang.String getServerName()
          Returns the server name for this binding.
 MetadataObjectId getWorkAssignment()
          Returns the metadata id for the work assignment in this binding.
 MetadataObjectId getWorkAssignmentId()
          Returns the metadata id for the work assignment in this binding.
 int hashCode()
           
 boolean isExclusive()
          Returns whether this work assignment binding is exclusive.
 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 toDiagnosticString()
          Creates a String representation of this object to aid diagnosis.
 java.lang.String toString()
           

 

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

 

Constructor Detail

Binding

public Binding(MetadataObjectId waMid,
               boolean isExclusive)
Creates a binding without any container information. This constructor is used by EM, and it is the responsibility of ESS to supply the correct process group and server name.
Parameters:
waMid - metadata id of the work assignment being bound
isExclusive - true if the work assignment is bound in exclusive mode, meaning that the jobs specialized to this work assignment will not be run on any other processor in the process group. One work assignment can be bound in exclusive mode multiple times, and that set of processors will run the jobs specialized to the exclusive work assignment.

Binding

public Binding(MetadataObjectId waMid,
               boolean isExclusive,
               Binding.BindingScope bindingScope)
Creates a binding without any container information. This constructor is used by EM, and it is the responsibility of ESS to supply the correct process group and server name.
Parameters:
waMid - metadata id of the work assignment being bound
isExclusive - true if the work assignment is bound in exclusive mode, meaning that the jobs specialized to this work assignment will not be run on any other processor in the process group. One work assignment can be bound in exclusive mode multiple times, and that set of processors will run the jobs specialized to the exclusive work assignment.
bindingScope - scope of the binding.

Binding

public Binding(java.lang.String processGroup,
               java.lang.String serverName,
               MetadataObjectId waMid,
               boolean isExclusive)
Creates a binding.
Parameters:
processGroup - process group for server
serverName - server for this binding
isExclusive - true if the work assignment is bound in exclusive mode, meaning that the jobs specialized to this work assignment will not be run on any other processor in the process group. One work assignment can be bound in exclusive mode multiple times, and that set of processors will run the jobs specialized to the exclusive work assignment.
waMid - metadata id of the work assignment being bound

Binding

public Binding(java.lang.String processGroup,
               java.lang.String serverName,
               MetadataObjectId waMid,
               boolean isExclusive,
               Binding.BindingScope bindingScope)
Creates a binding.
Parameters:
processGroup - process group for server
serverName - server for this binding
isExclusive - true if the work assignment is bound in exclusive mode, meaning that the jobs specialized to this work assignment will not be run on any other processor in the process group. One work assignment can be bound in exclusive mode multiple times, and that set of processors will run the jobs specialized to the exclusive work assignment.
waMid - metadata id of the work assignment being bound
bindingScope - scope of the binding.

Method Detail

getServerName

public java.lang.String getServerName()
Returns the server name for this binding.
Returns:
server name

getProcessGroup

public java.lang.String getProcessGroup()
Returns the process group for this binding.
Returns:
process group

getWorkAssignment

public MetadataObjectId getWorkAssignment()
Returns the metadata id for the work assignment in this binding.
Returns:
work assignment metadata object id

getWorkAssignmentId

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

isExclusive

public boolean isExclusive()
Returns whether this work assignment binding is exclusive.
Returns:
true if binding is exclusive; false if not exclusive

getBindingScope

public Binding.BindingScope getBindingScope()
Returns whether this work assignment binding is global.
Returns:
true if binding is global; false if not global

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 Binding 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

equals

public boolean equals(java.lang.Object o)
Determines if the Binding objects are equal. Equality considers group, work assignment, and exclusive. It does not consider workshift overrides. Should it?
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toDiagnosticString

public java.lang.String toDiagnosticString()
Creates a String representation of this object to aid diagnosis. This is used in ESS DFW diagnostic dumps.

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.