|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuego.papi.InstanceId
Contains the declaration of an instance.
An instance is formed by: the processId, the instance in, and the thread in.
Here are available all those operations over an instance id, such as obtaining the process id, or the thread in from it.
| Field Summary | |
static String |
NAME_SEPARATOR
|
static String |
ORGANIZATION_SEPARATOR
|
| Constructor Summary | |
InstanceId(int processIn,
int instanceIn,
int threadIn)
simple constructor for using key |
|
| Method Summary | |
static int |
compare(InstanceId a,
InstanceId b)
|
int |
compareTo(Object b)
Implementation of the method inherited from the interface Comparable |
static boolean |
equals(InstanceId a,
InstanceId b)
|
boolean |
equals(Object o)
Implementation of the method inherited from the interface Comparable |
static InstanceId |
getInstanceId(InstanceInfo instanceInfo)
Generate a new InstanceId from a InstanceInfo. |
static String |
getInstanceId(String globalInstanceId)
Returns the Instance Id without the organization |
int |
getInstanceIn()
Gets the instance identification number |
static int |
getInstanceIn(String instanceId)
Returns the Instance IN from a specific Instance Id |
static String |
getOrganization(String globalInstanceId)
Returns the Organization from a specific GlobalInstanceId |
static String |
getProcessId(String instanceId)
Returns the Process Id from a specific InstanceId |
int |
getProcessIn()
Gets the process identification number where this instance has been created |
int |
getThreadIn()
Gets the instance thread identification number. |
static int |
getThreadIn(String instanceId)
Returns the Instance Thread from a specific Instance Id. |
int |
hashCode()
Gets the hashcode for this instance |
static boolean |
isProcessId(String instanceOrProcessId)
|
static boolean |
isValidInstanceId(String instanceId)
Validates the correct sintax of a specific Instance Id. |
static String |
makeGlobalId(String organization,
String processId,
int instanceIn)
Through this method a new global instance id will be created |
static String |
makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
Through this method a new global instance id will be created |
String |
makeId(String processId)
Through this method a new instance id will be retrieved for the given process id |
static String |
makeId(String processId,
int instanceIn)
Through this method a new instance id will be created |
static String |
makeId(String processId,
int instanceIn,
int threadIn)
Through this method a new instance id will be created |
String |
toString()
Gets the String representation of the instance |
| 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 - instanceIn - threadIn - | Method Detail |
public static final InstanceId getInstanceId(InstanceInfo instanceInfo)
instanceInfo -
public final int getInstanceIn()
public final int getProcessIn()
public final int getThreadIn()
If the instance has a father, the thread in is the number of child the instance is. Otherwise this number is 0.
public static final int compare(InstanceId a,
InstanceId b)
public final boolean equals(Object o)
public static final boolean equals(InstanceId a,
InstanceId b)
public final int compareTo(Object b)
compareTo in interface Comparablepublic static String getInstanceId(String globalInstanceId)
globalInstanceId - Global Instance Id. Note: this parameter must not be null
public static int getInstanceIn(String instanceId)
instanceId - Instance Id. Note: this parameter must not be null.
NullPointerException - when instanceId is null.public static String getOrganization(String globalInstanceId)
globalInstanceId - Global Instance Id (Instance Id with the Organization)
public static String getProcessId(String instanceId)
instanceId - Instance Id
public static boolean isProcessId(String instanceOrProcessId)
public static int getThreadIn(String instanceId)
instanceId - Instance Id. Note: this parameter must not be null.
NullPointerException - when instanceId is null.public static boolean isValidInstanceId(String instanceId)
instanceId - It must not be null.
NullPointerException - when instanceId is null.public int hashCode()
public static String makeGlobalId(String organization,
String processId,
int instanceIn)
organization - processId - instanceIn -
public static String makeGlobalId(String organization,
String processId,
int instanceIn,
int threadIn)
organization - processId - instanceIn - threadIn -
public String makeId(String processId)
public static String makeId(String processId,
int instanceIn)
processId - instanceIn -
public static String makeId(String processId,
int instanceIn,
int threadIn)
processId - instanceIn - threadIn -
public String toString()
|
Fuego Process API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||