com.evolveum.midpoint.task.api
Enum TaskExclusivityStatus

java.lang.Object
  extended by java.lang.Enum<TaskExclusivityStatus>
      extended by com.evolveum.midpoint.task.api.TaskExclusivityStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TaskExclusivityStatus>

public enum TaskExclusivityStatus
extends java.lang.Enum<TaskExclusivityStatus>

Exclusivity status tells about task "locking" to a particular node.

Author:
Radovan Semancik

Enum Constant Summary
CLAIMED
          The tasks is being held by one of the IDM nodes.
RELEASED
          The task is free for all nodes to participate.
 
Method Summary
static TaskExclusivityStatus fromTaskType(TaskExclusivityStatusType exclusivityStatus)
           
 TaskExclusivityStatusType toTaskType()
           
static TaskExclusivityStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TaskExclusivityStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLAIMED

public static final TaskExclusivityStatus CLAIMED
The tasks is being held by one of the IDM nodes. The node is either executing the task or making some kind of "exclusive" operation on the task. Only one node may "claim" a task. Claimed tasks has an allocated *thread* that is used for task execution.


RELEASED

public static final TaskExclusivityStatus RELEASED
The task is free for all nodes to participate. Any node may try to "claim" the task to execute it or make another step in the task lifecycle. Released task is not being executed by an IDM node and therefore does not have an allocated thread.

Method Detail

values

public static TaskExclusivityStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TaskExclusivityStatus c : TaskExclusivityStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TaskExclusivityStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromTaskType

public static TaskExclusivityStatus fromTaskType(TaskExclusivityStatusType exclusivityStatus)

toTaskType

public TaskExclusivityStatusType toTaskType()


Copyright © 2012 evolveum. All Rights Reserved.