@Service(name="attach") @PerLookup @CommandLock(value=NONE) @ManagedJob public class AttachCommand extends Object implements AdminCommand, AdminCommandEventBroker.AdminCommandListener
Modifier and Type | Field and Description |
---|---|
protected Job |
attached |
static String |
COMMAND_NAME |
protected AdminCommandEventBroker |
eventBroker |
protected String |
jobID |
protected static LocalStringManagerImpl |
strings |
Constructor and Description |
---|
AttachCommand() |
Modifier and Type | Method and Description |
---|---|
void |
attach(Job attached,
JobInfo jobInfo,
AdminCommandContext context,
String jobName) |
void |
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties
where the keys are the parameter names and the values are the parameter values
|
void |
onAdminCommandEvent(String name,
Object event) |
protected void |
purgeJob(String jobid) |
public static final String COMMAND_NAME
protected static final LocalStringManagerImpl strings
protected AdminCommandEventBroker eventBroker
protected Job attached
protected String jobID
public void execute(AdminCommandContext context)
AdminCommand
execute
in interface AdminCommand
context
- informationpublic void onAdminCommandEvent(String name, Object event)
onAdminCommandEvent
in interface AdminCommandEventBroker.AdminCommandListener
protected void purgeJob(String jobid)
public void attach(Job attached, JobInfo jobInfo, AdminCommandContext context, String jobName)
Copyright © 2020. All rights reserved.