Package oracle.as.scheduler
Class IncompatibleEntity
java.lang.Object
oracle.as.scheduler.IncompatibleEntity
- All Implemented Interfaces:
Serializable
Encapsulates information for an Incompatibility entity.
An entity can be marked as self-incompatible. A self-incompatible entity means that jobs for the definition associated with the entity are not compatible and should not be run concurrently. If the entity is for a domain incompatibility the jobs will not run concurrently if they have the same value for the property specified for the entity.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIncompatibleEntity(IncompatibleEntity incompEntity) Creates a copy of the specified Incompatibilty entity.IncompatibleEntity(MetadataObjectId entity, boolean selfIncompatible) Creates a new incompatibility entity.IncompatibleEntity(MetadataObjectId entity, String property, boolean selfIncompatible) Creates a new incompatibility entity. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the object is equal to this Incompatibility entity.Gets the unique metadata identifier for theJobDefinitionorJobSetfor this incompatible entity.Gets the property name associated with this incompatible entity.booleanIndicates if this incompatibility entity is self-incompatible.voidsetProperty(String property) Sets the property name associated with this Incompatibility entity.voidsetSelfIncompatible(boolean selfIncompatible) Sets the self-incompatible flag for this Incompatibility entity.
-
Constructor Details
-
IncompatibleEntity
Creates a new incompatibility entity.- Parameters:
entity- the unique identifier of theJobDefinitionorJobSetdefinition.selfIncompatible-trueif this entity is self-incompatible, orfalseotherwise.
-
IncompatibleEntity
Creates a new incompatibility entity.- Parameters:
entity- the unique identifier of theJobDefinitionorJobSetdefinition.property- the property associated with the incompatibility entity. A property is not used for a global Incompatibility.selfIncompatible-trueif this entity is self-incompatible, orfalseotherwise.
-
IncompatibleEntity
Creates a copy of the specified Incompatibilty entity.- Parameters:
incompEntity- the object being copied. Cannot be null.
-
-
Method Details
-
getEntity
Gets the unique metadata identifier for theJobDefinitionorJobSetfor this incompatible entity.- Returns:
- the metadata object identifier
-
isSelfIncompatible
public boolean isSelfIncompatible()Indicates if this incompatibility entity is self-incompatible.- Returns:
trueif this entity is self-incompatible, orfalseotherwise.
-
setSelfIncompatible
public void setSelfIncompatible(boolean selfIncompatible) Sets the self-incompatible flag for this Incompatibility entity.- Parameters:
selfIncompatible-trueif this entity is self-incompatible, orfalseotherwise.
-
getProperty
Gets the property name associated with this incompatible entity. A property is not used for global Incompatibility.- Returns:
- the property name, or
nullif none.
-
setProperty
Sets the property name associated with this Incompatibility entity. A property is not used for a global Incompatibility.- Parameters:
property- the incompatibility property. This can be null.
-
equals
Checks if the object is equal to this Incompatibility entity.Equal means that
objthe same enitity identifer, property name, and self-incompatibility value.
-