public class AdminCommandContextForInstance extends Object implements AdminCommandContext
AdminCommandContext attributes are used in any phase
of command execution (supplemental commands, replication) but some
of them must be different for every instance. This wrapper provides
such staff.| Constructor and Description |
|---|
AdminCommandContextForInstance(AdminCommandContext wrapped,
ProgressStatus progressStatus) |
| 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 AdminCommandContextForInstance(AdminCommandContext wrapped, ProgressStatus progressStatus)
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 void setInboundPayload(Payload.Inbound newInboundPayload)
AdminCommandContextsetInboundPayload in interface AdminCommandContextnewInboundPayload - inbound payload to set.public Payload.Outbound getOutboundPayload()
AdminCommandContextgetOutboundPayload in interface AdminCommandContextpublic void setOutboundPayload(Payload.Outbound newOutboundPayload)
AdminCommandContextsetOutboundPayload in interface AdminCommandContextnewOutboundPayload - outbound payload to set.public 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 AdminCommandContextpublic String getJobId()
AdminCommandContextgetJobId in interface AdminCommandContextCopyright © 2017–2020 Eclipse Foundation. All rights reserved.