AgentConfigManager.AgentState
public interface AgentState
AgentState
interface provides information about the state of a SNMP agent.
States are represented by integer values. This allows implementing classes to extend
states supported by an agent.Modifier and Type | Field | Description |
---|---|---|
static int |
STATE_CONFIGURED |
|
static int |
STATE_CREATED |
|
static int |
STATE_INITIALIZED |
|
static int |
STATE_RESTORED |
|
static int |
STATE_RUNNING |
|
static int |
STATE_SAVED |
|
static int |
STATE_SHUTDOWN |
|
static int |
STATE_SUSPENDED |
Modifier and Type | Method | Description |
---|---|---|
void |
addError(org.snmp4j.agent.AgentConfigManager.ErrorDescriptor error) |
Add an error description to the internal error list.
|
void |
advanceState(int newState) |
Advance the state to the given state.
|
java.util.List<org.snmp4j.agent.AgentConfigManager.ErrorDescriptor> |
getErrors() |
Get the error descriptors associated with this agent state.
|
int |
getState() |
Gets the current state of the agent.
|
void |
setState(int newState) |
Sets the new state independent from the current state.
|
static final int STATE_CREATED
static final int STATE_INITIALIZED
static final int STATE_CONFIGURED
static final int STATE_RESTORED
static final int STATE_SUSPENDED
static final int STATE_RUNNING
static final int STATE_SAVED
static final int STATE_SHUTDOWN
int getState()
STATE_CREATED
.void setState(int newState)
newState
- the new state.void advanceState(int newState)
newState
- the new minimum state.void addError(org.snmp4j.agent.AgentConfigManager.ErrorDescriptor error)
error
- an ErrorDescriptor instance to add.java.util.List<org.snmp4j.agent.AgentConfigManager.ErrorDescriptor> getErrors()
Copyright © 2018 SNMP4J.org. All rights reserved.