|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuego.papi.InstanceId
Contains information about an instance, including process Id, instance identification number and thread identification number.
| Field Summary | |
static String |
NAME_SEPARATOR
Separates parts of an instance id |
static String |
ORGANIZATION_SEPARATOR
Organization separator |
| Constructor Summary | |
InstanceId(int processIn,
int instanceIn,
int threadIn)
Creates a new InstanceId object. |
|
| Method Summary | |
static int |
compare(InstanceId a,
InstanceId b)
Compares two InstanceIds |
int |
compareTo(Object b)
Implementation of the compareTo method from the Comparable interface. |
static boolean |
equals(InstanceId a,
InstanceId b)
Returns true if the specified InstanceIds are equal. |
boolean |
equals(Object o)
Returns true if the specified Object is equal to this instanceId. |
static InstanceId |
getInstanceId(InstanceInfo instanceInfo)
Gets the InstanceId from the specified InstanceInfo. |
static String |
getInstanceId(String globalInstanceId)
Returns the InstanceId without the organization. |
int |
getInstanceIn()
Gets the instance identification number. |
static int |
getInstanceIn(String instanceId)
Returns the instance identification number. |
static String |
getOrganization(String globalInstanceId)
Gets the Organization name from the specified globalInstanceId. |
static String |
getProcessId(String instanceId)
Gets the Process Id from the specified InstanceId. |
int |
getProcessIn()
Gets the process identification number. |
int |
getThreadIn()
Gets the thread identification number. If the instance has a father, the thread in is the number of child the instance is. |
static int |
getThreadIn(String instanceId)
Gets the thread identification number. |
int |
hashCode()
Returns a hash code value for the object. |
static boolean |
isProcessId(String instanceOrProcessId)
Returns true if the specified Id is a ProcessId. |
static boolean |
isValidInstanceId(String instanceId)
Returns true if the specified InstanceId contains a process id, an instance identification number, and a thread identification number. |
static String |
makeGlobalId(String organization,
String processId,
int instanceIn)
Makes a global InstanceId using the specified organization, processId, and instance identification number. |
static String |
makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
Makes a global InstanceId using the specified organization, processId, instance identification number, and thread identification number. |
String |
makeId(String processId)
Makes a new InstanceId using the specified processId. |
static String |
makeId(String processId,
int instanceIn)
Makes a new InstanceId using the specified processId and instance identification number. |
static String |
makeId(String processId,
int instanceIn,
int threadIn)
Makes a new InstanceId using the specified processId,instance identification number, and thread identification number. |
String |
toString()
Returns a String containing the process identification number, the instance identification number, and the thread identification number. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String NAME_SEPARATOR
public static final String ORGANIZATION_SEPARATOR
| Constructor Detail |
public InstanceId(int processIn,
int instanceIn,
int threadIn)
processIn - process identification number.instanceIn - instance identification number.threadIn - thread identification number.| Method Detail |
public static InstanceId getInstanceId(InstanceInfo instanceInfo)
instanceInfo - InstanceInfo
public static int compare(InstanceId a,
InstanceId b)
a - first InstanceIdb - second InstanceId
public static boolean equals(InstanceId a,
InstanceId b)
a - first InstanceId to compare.b - second InstanceId to compare.
public static String getInstanceId(String globalInstanceId)
globalInstanceId - InstanceId containing the organization. Cannot be null.
public static int getInstanceIn(String instanceId)
instanceId - InstanceId. Cannot be null.
public static String getOrganization(String globalInstanceId)
globalInstanceId - InstanceId containing an organization name.
public static String getProcessId(String instanceId)
instanceId - InstanceId to check for processId.
public static boolean isProcessId(String instanceOrProcessId)
instanceOrProcessId - Id to check.
public static int getThreadIn(String instanceId)
instanceId - InstanceId to check. Cannot be null.
public static boolean isValidInstanceId(String instanceId)
instanceId - InstanceID to check. Cannot be null.
public static String makeGlobalId(String organization,
String processId,
int instanceIn)
organization - organization name. Cannot be null.processId - process Id. Cannot be null.instanceIn - instance identification number.
public static String makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
organization - organization name. Cannot be null.processId - process Id. Cannot be null.instanceIn - instance identification number.threadIn - thread identification number.
public static String makeId(String processId,
int instanceIn)
processId - process Id. Cannot be null.instanceIn - instance identification number.
public static String makeId(String processId,
int instanceIn,
int threadIn)
processId - process Id.instanceIn - instance identification number.threadIn - thread identification number.
public final int getInstanceIn()
public final int getProcessIn()
public final int getThreadIn()
public final boolean equals(Object o)
o - Object to compare
public final int compareTo(Object b)
compareTo in interface Comparableb - InstanceId to compare
public int hashCode()
public String makeId(String processId)
processId - process Id. Cannot be null.
public String toString()
|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||