public class ChannelState extends Object implements Serializable, Comparable
ChannelState
class is a typed enumeration for the status
of a channel in the Adapter Monitoring API. Its static members can be used to
express a certain channel state. Available states are:
The states have a precedence in the above shown order.Modifier and Type | Field and Description |
---|---|
static ChannelState |
ERROR
Indicates that the channel is either configured incorrectly or has
encountered another error that prevents it from processing messages.
|
static ChannelState |
INACTIVE
Indicates that an adapter channel is inactive.
|
static ChannelState |
OK
Indicates that the channel is configured correctly and ready to process
messages.
|
protected String |
text |
Modifier | Constructor and Description |
---|---|
protected |
ChannelState(String text,
int value)
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ChannelState s)
Compare two
ChannelState instances. |
int |
compareTo(Object o)
Compare two
ChannelState instances. |
protected Object |
readResolve() |
String |
toString()
Converts this object into a string representation.
|
static ChannelState |
valueOf(String statusString)
Get one of the static class members from their depending String as returned from
toString . |
public static final ChannelState ERROR
public static final ChannelState INACTIVE
public static final ChannelState OK
protected String text
protected ChannelState(String text, int value)
text
- the state textvalue
- the state value (for comparison purposes)public String toString()
public static ChannelState 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
public int compareTo(Object o)
ChannelState
instances.compareTo
in interface Comparable
o
- Another ChannelState
instance0
if the argument is the same ChannelState
as this ChannelState
;
a value less than 0
if the argument is a ChannelState
with a higher precedence than this ChannelState
;
and a value greater than 0
if the argument is a ChannelState
with a lower precedence less than this ChannelState
.ClassCastException
- if the argument is not of type ChannelState
NullPointerException
- if the argument is nullpublic int compareTo(ChannelState s)
ChannelState
instances.s
- Another ChannelState
instance0
if the argument is the same ChannelState
as this ChannelState
;
a value less than 0
if the argument is a ChannelState
with a higher precedence than this ChannelState
;
and a value greater than 0
if the argument is a ChannelState
with a lower precedence less than this ChannelState
.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