Class AttachCommand
- java.lang.Object
-
- com.sun.enterprise.v3.admin.commands.AttachCommand
-
- All Implemented Interfaces:
AdminCommand,AdminCommandEventBroker.AdminCommandListener
@Service(name="attach") @PerLookup @CommandLock(NONE) @ManagedJob public class AttachCommand extends Object implements AdminCommand, AdminCommandEventBroker.AdminCommandListener
Gets CommandInstance from registry based on given id and forwards all events.- Author:
- Martin Mares, Bhakti Mehta
-
-
Field Summary
Fields Modifier and Type Field Description protected Jobattachedstatic StringCOMMAND_NAMEprotected AdminCommandEventBrokereventBrokerprotected StringjobIDprotected static LocalStringManagerImplstrings
-
Constructor Summary
Constructors Constructor Description AttachCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattach(Job attached, JobInfo jobInfo, AdminCommandContext context, String jobName)voidexecute(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 valuesvoidonAdminCommandEvent(String name, Object event)protected voidpurgeJob(String jobid)
-
-
-
Field Detail
-
COMMAND_NAME
public static final String COMMAND_NAME
- See Also:
- Constant Field Values
-
strings
protected static final LocalStringManagerImpl strings
-
eventBroker
protected AdminCommandEventBroker eventBroker
-
attached
protected Job attached
-
jobID
protected String jobID
-
-
Method Detail
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommandExecutes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Specified by:
executein interfaceAdminCommand- Parameters:
context- information
-
onAdminCommandEvent
public void onAdminCommandEvent(String name, Object event)
- Specified by:
onAdminCommandEventin interfaceAdminCommandEventBroker.AdminCommandListener
-
purgeJob
protected void purgeJob(String jobid)
-
attach
public void attach(Job attached, JobInfo jobInfo, AdminCommandContext context, String jobName)
-
-