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 AdminCommandStatepublic void complete(ActionReport actionReport)
AdminCommandStatecomplete in interface AdminCommandStateactionReport - result messagepublic ActionReport getActionReport()
getActionReport in interface AdminCommandStatepublic boolean isOutboundPayloadEmpty()
AdminCommandStateisOutboundPayloadEmpty in interface AdminCommandStatepublic String getId()
getId in interface AdminCommandStateprotected void setState(AdminCommandState.State state)
Copyright © 2017. All rights reserved.