|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wli.management.runtime.ProcessInstanceQuery
public class ProcessInstanceQuery
Represents a query to obtain information about process instances.
ProcessRuntimeMBean
,
Serialized FormConstructor Summary | |
---|---|
ProcessInstanceQuery()
Constructor for creating an empty query. |
|
ProcessInstanceQuery(String instanceId)
Constructor for querying a single process instance |
|
ProcessInstanceQuery(String serviceURI,
ProcessStatus status)
Convenience constructor for querying instances of the given service that are in the given state. |
|
ProcessInstanceQuery(String serviceURI,
ProcessStatus[] status,
long startTimeMin,
long startTimeMax,
long statusChangeTimeMin,
long statusChangeTimeMax,
long elapsedMin,
long elapsedMax,
String label,
boolean aboveSLA,
boolean aboveSLAWarning,
int count)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
getCount()
|
long |
getElapsedMax()
|
long |
getElapsedMin()
|
String |
getInstanceId()
Returns the instance (conversation) id component of the query. |
String |
getLabel()
|
String |
getServiceURI()
Returns the serviceURI to filter on. |
long |
getStartTimeMax()
|
long |
getStartTimeMin()
|
ProcessStatus[] |
getStatus()
Returns the array ProcessStatus object to filter on. |
long |
getStatusChangeTimeMax()
|
long |
getStatusChangeTimeMin()
|
int |
hashCode()
|
boolean |
isAboveSLA()
|
boolean |
isAboveSLAWarning()
|
boolean |
isSingleInstanceQuery()
Returns true if the query filters only on the instance (coversation) id. |
void |
setAboveSLA(boolean aboveSLA)
Allows filtering instances based on their SLA status. |
void |
setAboveSLAWarning(boolean aboveSLAWarning)
Allows filtering instances based on their SLA Warning Threshold status. |
void |
setCount(int count)
Sets the maximum number of results to return. |
void |
setElapsedMax(long elapsedMax)
Sets the maximum elapsed time for the instances that are returned. |
void |
setElapsedMin(long elapsedMin)
Sets the minimum elapsed time for the instances that are returned. |
void |
setInstanceId(String instanceId)
Sets the instance (conversation) id component of the query. |
void |
setLabel(String label)
Adds a predicate to the query so that only instances whose process label containing this value are returned. |
void |
setServiceURI(String serviceURI)
Sets the serviceURI predicate so that only instances of a particular process are returned. |
void |
setStartTimeMax(long startTimeMax)
Adds a predicate to the query so that only instances that started before the given time are returned. |
void |
setStartTimeMin(long startTimeMin)
Adds a predicate to the query so that only instances that started after the given time are returned. |
void |
setStatus(ProcessStatus status)
Convenience method for query instances that are in the given state. |
void |
setStatus(ProcessStatus[] status)
Sets the process status predicate so that only instances that are in one of the states are returned. |
void |
setStatusChangeTimeMax(long statusChangeTimeMax)
Adds a predicate to the query so that only instances that has aborted, completed, or terminated before the given time are returned. |
void |
setStatusChangeTimeMin(long statusChangeTimeMin)
Adds a predicate to the query so that only instances that has aborted, completed, or terminated after the given time are returned. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProcessInstanceQuery()
public ProcessInstanceQuery(String instanceId)
instanceId
- the id of the process instance to be queriedpublic ProcessInstanceQuery(String serviceURI, ProcessStatus[] status, long startTimeMin, long startTimeMax, long statusChangeTimeMin, long statusChangeTimeMax, long elapsedMin, long elapsedMax, String label, boolean aboveSLA, boolean aboveSLAWarning, int count)
serviceURI
- service URI of the process type. A null value indicates all process types be considered.status
- return instances that are in one of the given states. A null value or an array of length 0
indicates all states.startTimeMin
- return only instances that have started after this time. Use 0 if this is not applicablestartTimeMax
- return only instances that have started before this time. Use Long.MAX_VALUE
if this is not applicablestatusChangeTimeMin
- return only instances whose status has changed after this time.
Use 0 if this is not applicable. This parameter can be used in conjunction with
the status
parameter, to obtain instances that have been completed, aborted,
terminated, or frozen after a particular time.statusChangeTimeMax
- return only instances whose status has changed before this time.
Use Long.MAX_VALUE
if this is not applicable. This parameter can be used
in conjunction with the status
parameter, to obtain instances that have been completed,
aborted, terminated or frozen before a particular time.elapsedMin
- return only instances that have executed for more than this amount.
Use 0 if this is not applicable. The elapsed time also includes the time
an instance spent waiting for a message, or while being blocked.elapsedMax
- return only instances that have executed for less than this amount.
Use Long.MAX_VALUE
if this is not applicableaboveSLA
- a true value indicates that only instances that have exceeded their
SLAs should be included in the result. A true value will cause to exclude all
instances of process types that do not have a SLA value defined.aboveSLAWarning
- a true value indicates that instances that have exceeded their
SLA Warning thresholds. This parameter can be used in conjunction with exceedSLA
parameter to obtain instances that exceeded their SLAs, instances that exceeded either their SLAs
or SLA Warning thresholds, or instances that exceeded their SLAWarning level but not their SLA.label
- return only instances whose process label includes the this string. Use null value if this is not applicablecount
- the maximum result cardinalitypublic ProcessInstanceQuery(String serviceURI, ProcessStatus status)
serviceURI
- service URI of the process type. A null value indicates all process types be considered.status
- return instances that are in one of the given states. A null value or an array of length 0
indicates all states.Method Detail |
---|
public boolean isSingleInstanceQuery()
public String getInstanceId()
public void setInstanceId(String instanceId)
public String getServiceURI()
public void setServiceURI(String serviceURI)
public ProcessStatus[] getStatus()
public void setStatus(ProcessStatus[] status)
public void setStatus(ProcessStatus status)
status
- public long getStartTimeMin()
public void setStartTimeMin(long startTimeMin)
0
startTimeMin
- time in millisecondspublic long getStartTimeMax()
public void setStartTimeMax(long startTimeMax)
Long.MAX_VALUE
effectively disabled this predicate. The default value for this component is
Long.MAX_VALUE
startTimeMax
- time in millisecondspublic long getStatusChangeTimeMin()
public void setStatusChangeTimeMin(long statusChangeTimeMin)
0
statusChangeTimeMin
- time in millisecondspublic long getStatusChangeTimeMax()
public void setStatusChangeTimeMax(long statusChangeTimeMax)
Long.MAX_VALUE
effectively disables this predicate.
The default value for this component is Long.MAX_VALUE
statusChangeTimeMax
- public long getElapsedMin()
public void setElapsedMin(long elapsedMin)
0
elapsedMin
- minimum elapsed time in millisecondspublic long getElapsedMax()
public void setElapsedMax(long elapsedMax)
Long.MAX_VALUE
elapsedMax
- maximum elapsed time in millisecondspublic String getLabel()
public void setLabel(String label)
label
- public boolean isAboveSLA()
public void setAboveSLA(boolean aboveSLA)
false
.
This method can be used in conjunction with the setAboveSLAWarning(boolean)
to return:
aboveSLA
- public boolean isAboveSLAWarning()
public void setAboveSLAWarning(boolean aboveSLAWarning)
false
.
This method can be used in conjunction with the setAboveSLA(boolean)
to return:
public int getCount()
public void setCount(int count)
count
- public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |