public class AdminCommandStateImpl extends Object implements AdminCommandState, Serializable
AdminCommandState.State
Modifier and Type | Field and Description |
---|---|
protected ActionReport |
actionReport |
protected String |
id |
protected AdminCommandState.State |
state |
EVENT_STATE_CHANGED
Constructor and Description |
---|
AdminCommandStateImpl(AdminCommandState.State state,
ActionReport actionReport,
boolean payloadIsEmpty,
String id) |
AdminCommandStateImpl(String id) |
Modifier and Type | Method and Description |
---|---|
void |
complete(ActionReport actionReport)
Completes whole progress and records result
|
ActionReport |
getActionReport() |
String |
getId() |
AdminCommandState.State |
getState() |
boolean |
isOutboundPayloadEmpty()
Are there data in outbound payload or not.
|
protected void |
setState(AdminCommandState.State state) |
protected AdminCommandState.State state
protected ActionReport actionReport
protected String id
public AdminCommandStateImpl(AdminCommandState.State state, ActionReport actionReport, boolean payloadIsEmpty, String id)
public AdminCommandStateImpl(String id)
public AdminCommandState.State getState()
getState
in interface AdminCommandState
public void complete(ActionReport actionReport)
AdminCommandState
complete
in interface AdminCommandState
actionReport
- result messagepublic ActionReport getActionReport()
getActionReport
in interface AdminCommandState
public boolean isOutboundPayloadEmpty()
AdminCommandState
isOutboundPayloadEmpty
in interface AdminCommandState
public String getId()
getId
in interface AdminCommandState
protected void setState(AdminCommandState.State state)
Copyright © 2018. All rights reserved.