public interface AdminCommandContext extends ExecutionContext, Serializable
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.
|
String |
getJobId()
Id of current job.
|
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 |
setInboundPayload(Payload.Inbound newInboundPayload)
Changes the inbound payload for this action.
|
void |
setOutboundPayload(Payload.Outbound newOutboundPayload)
Changes the outbound payload for this action.
|
void |
setSubject(Subject subject)
Sets the Subject to be associated with this command context.
|
ActionReport getActionReport()
void setActionReport(ActionReport newReport)
newReport
- The ActionReport to set.Logger getLogger()
getLogger
in interface ExecutionContext
Payload.Inbound getInboundPayload()
void setInboundPayload(Payload.Inbound newInboundPayload)
newInboundPayload
- inbound payload to set.Payload.Outbound getOutboundPayload()
void setOutboundPayload(Payload.Outbound newOutboundPayload)
newOutboundPayload
- outbound payload to set.Subject getSubject()
void setSubject(Subject subject)
subject
- ProgressStatus getProgressStatus()
@Progress
annotation is on the command
implementation.AdminCommandEventBroker getEventBroker()
String getJobId()
Copyright © 2019. All rights reserved.