public class InstanceState extends Object implements Serializable
Constructor and Description |
---|
InstanceState() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getCode()
The low byte represents the state.
|
String |
getName()
The current state of the instance.
|
int |
hashCode() |
void |
setCode(Integer code)
The low byte represents the state.
|
void |
setName(String name)
The current state of the instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
public void setCode(Integer code)
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
0
: pending
16
: running
32
: shutting-down
48
: terminated
64
: stopping
80
: stopped
code
- The low byte represents the state. The high byte is an opaque internal value and should be ignored.
0
: pending
16
: running
32
: shutting-down
48
: terminated
64
: stopping
80
: stopped
public Integer getCode()
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
0
: pending
16
: running
32
: shutting-down
48
: terminated
64
: stopping
80
: stopped
The low byte represents the state. The high byte is an opaque internal value and should be ignored.
0
: pending
16
: running
32
: shutting-down
48
: terminated
64
: stopping
80
: stopped
public void setName(String name)
The current state of the instance.
name
- The current state of the instance.public String getName()
The current state of the instance.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2010–2020. All rights reserved.