public class IncompatibleEntity extends Object implements Serializable
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.
Incompatibility,
Serialized Form| Constructor and Description |
|---|
IncompatibleEntity(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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks if the object is equal to this Incompatibility entity.
|
MetadataObjectId |
getEntity()
Gets the unique metadata identifier for the
JobDefinition or
JobSet for this incompatible entity. |
String |
getProperty()
Gets the property name associated with this incompatible entity.
|
boolean |
isSelfIncompatible()
Indicates if this incompatibility entity is self-incompatible.
|
void |
setProperty(String property)
Sets the property name associated with this Incompatibility entity.
|
void |
setSelfIncompatible(boolean selfIncompatible)
Sets the self-incompatible flag for this Incompatibility entity.
|
public IncompatibleEntity(MetadataObjectId entity, boolean selfIncompatible)
entity - the unique identifier of the JobDefinition
or JobSet definition.selfIncompatible - true if this entity is
self-incompatible, or false otherwise.public IncompatibleEntity(MetadataObjectId entity, String property, boolean selfIncompatible)
entity - the unique identifier of the JobDefinition
or JobSet definition.property - the property associated with the incompatibility
entity. A property is not used for a global Incompatibility.selfIncompatible - true if this entity is
self-incompatible, or false otherwise.public IncompatibleEntity(IncompatibleEntity incompEntity)
incompEntity - the object being copied. Cannot be null.public MetadataObjectId getEntity()
JobDefinition or
JobSet for this incompatible entity.public boolean isSelfIncompatible()
true if this entity is self-incompatible,
or false otherwise.public void setSelfIncompatible(boolean selfIncompatible)
selfIncompatible - true if this entity is
self-incompatible, or false otherwise.public String getProperty()
null if none.public void setProperty(String property)
property - the incompatibility property. This can be null.public boolean equals(Object obj)
Equal means that obj the same enitity identifer,
property name, and self-incompatibility value.