public class AdminCommandContextImpl extends Object implements AdminCommandContext
| Constructor and Description |
|---|
AdminCommandContextImpl(Logger logger,
ActionReport report) |
AdminCommandContextImpl(Logger logger,
ActionReport report,
Payload.Inbound inboundPayload,
Payload.Outbound outboundPayload,
AdminCommandEventBroker eventBroker) |
| Modifier and Type | Method and Description |
|---|---|
ActionReport |
getActionReport()
Returns the Reporter for this action
|
AdminCommandEventBroker |
getEventBroker()
Simple event broker for inter command communication mostly
from server to client.
|
Payload.Inbound |
getInboundPayload()
Returns the inbound payload, from the admin client, that accompanied
the command request.
|
Logger |
getLogger()
Returns the Logger
|
Payload.Outbound |
getOutboundPayload()
Returns a reference to the outbound payload so a command implementation
can populate the payload for return to the admin client.
|
ProgressStatus |
getProgressStatus()
ProgressStatus can be used to inform about step by step progress
of the command.
|
Subject |
getSubject()
Returns the Subject associated with this command context.
|
void |
setActionReport(ActionReport newReport)
Change the Reporter for this action
|
void |
setSubject(Subject subject)
Sets the Subject to be associated with this command context.
|
public AdminCommandContextImpl(Logger logger, ActionReport report)
public AdminCommandContextImpl(Logger logger, ActionReport report, Payload.Inbound inboundPayload, Payload.Outbound outboundPayload, AdminCommandEventBroker eventBroker)
public ActionReport getActionReport()
AdminCommandContextgetActionReport in interface AdminCommandContextpublic void setActionReport(ActionReport newReport)
AdminCommandContextsetActionReport in interface AdminCommandContextnewReport - The ActionReport to set.public Logger getLogger()
AdminCommandContextgetLogger in interface AdminCommandContextgetLogger in interface ExecutionContextpublic Payload.Inbound getInboundPayload()
AdminCommandContextgetInboundPayload in interface AdminCommandContextpublic Payload.Outbound getOutboundPayload()
AdminCommandContextgetOutboundPayload in interface AdminCommandContextpublic Subject getSubject()
AdminCommandContextgetSubject in interface AdminCommandContextpublic void setSubject(Subject subject)
AdminCommandContextsetSubject in interface AdminCommandContextpublic ProgressStatus getProgressStatus()
AdminCommandContext@Progress annotation is on the command
implementation.getProgressStatus in interface AdminCommandContextpublic AdminCommandEventBroker getEventBroker()
AdminCommandContextgetEventBroker in interface AdminCommandContextCopyright © 2013. All Rights Reserved.