public class ProcessState extends Object implements Serializable, Comparable
ProcessState
class is a typed enumeration for the status
of a channel's processing operation in the Adapter Monitoring API. Its static
members can be used to express a certain process state. Available states are:
The states have a precedence in the above shown order.
To set a process state, use the MonitoringManager
interface.Modifier and Type | Field and Description |
---|---|
static ProcessState |
ERROR
Indicates that an error has occurred during the adapter's message
processing.
|
static ProcessState |
FATAL
Indicates that a fatal (i.e.
|
static ProcessState |
OK
Indicates that a processing step during an adapter's message processing
completed successfully.
|
protected String |
text |
Modifier | Constructor and Description |
---|---|
protected |
ProcessState(String text,
int value)
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Compare two
ProcessState instances. |
int |
compareTo(ProcessState s)
Compare two
ProcessState instances. |
protected Object |
readResolve()
This is called after the deserialization of an instance of this class has
taken place.
|
String |
toString()
Converts this object into a string representation.
|
static ProcessState |
valueOf(String statusString)
Get one of the static class members from their depending String as returned from
toString . |
public static final ProcessState FATAL
public static final ProcessState ERROR
public static final ProcessState OK
protected String text
protected ProcessState(String text, int value)
text
- the state textvalue
- the state value (for comparison purposes)public String toString()
public static ProcessState valueOf(String statusString)
toString
.statusString
- a String as returned by the toString
methodNullPointerException
- if the argument is nullIllegalArgumentException
- if the argument is a unknown status Stringprotected Object readResolve() throws ObjectStreamException
ObjectStreamException
- In case there's an error in the deserializationpublic int compareTo(Object o)
ProcessState
instances.compareTo
in interface Comparable
o
- Another ProcessState
instance0
if the argument is the same ProcessState
as this ProcessState
;
a value less than 0
if the argument is a ProcessState
with a higher precedence than this ProcessState
;
and a value greater than 0
if the argument is a ProcessState
with a lower precedence less than this ProcessState
.ClassCastException
- if the argument is not of type ProcessState
NullPointerException
- if the argument is nullpublic int compareTo(ProcessState s)
ProcessState
instances.s
- Another ProcessState
instance0
if the argument is the same ProcessState
as this ProcessState
;
a value less than 0
if the argument is a ProcessState
with a higher precedence than this ProcessState
;
and a value greater than 0
if the argument is a ProcessState
with a lower precedence less than this ProcessState
.NullPointerException
- if the argumant is nullAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.svc.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice