public class AdminCommandContextImpl extends Object implements AdminCommandContext, Serializable
Constructor and Description |
---|
AdminCommandContextImpl(Logger logger,
ActionReport report) |
AdminCommandContextImpl(Logger logger,
ActionReport report,
Payload.Inbound inboundPayload,
Payload.Outbound outboundPayload,
AdminCommandEventBroker eventBroker,
String jobId) |
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.
|
public AdminCommandContextImpl(Logger logger, ActionReport report)
public AdminCommandContextImpl(Logger logger, ActionReport report, Payload.Inbound inboundPayload, Payload.Outbound outboundPayload, AdminCommandEventBroker eventBroker, String jobId)
public ActionReport getActionReport()
AdminCommandContext
getActionReport
in interface AdminCommandContext
public void setActionReport(ActionReport newReport)
AdminCommandContext
setActionReport
in interface AdminCommandContext
newReport
- The ActionReport to set.public Logger getLogger()
AdminCommandContext
getLogger
in interface AdminCommandContext
getLogger
in interface ExecutionContext
public Payload.Inbound getInboundPayload()
AdminCommandContext
getInboundPayload
in interface AdminCommandContext
public void setInboundPayload(Payload.Inbound newInboundPayload)
AdminCommandContext
setInboundPayload
in interface AdminCommandContext
newInboundPayload
- inbound payload to set.public Payload.Outbound getOutboundPayload()
AdminCommandContext
getOutboundPayload
in interface AdminCommandContext
public void setOutboundPayload(Payload.Outbound newOutboundPayload)
AdminCommandContext
setOutboundPayload
in interface AdminCommandContext
newOutboundPayload
- outbound payload to set.public Subject getSubject()
AdminCommandContext
getSubject
in interface AdminCommandContext
public void setSubject(Subject subject)
AdminCommandContext
setSubject
in interface AdminCommandContext
public ProgressStatus getProgressStatus()
AdminCommandContext
@Progress
annotation is on the command
implementation.getProgressStatus
in interface AdminCommandContext
public AdminCommandEventBroker getEventBroker()
AdminCommandContext
getEventBroker
in interface AdminCommandContext
public String getJobId()
AdminCommandContext
getJobId
in interface AdminCommandContext
Copyright © 2021. All rights reserved.