public class KillVMAction extends Object implements VMContextAction
VMContextAction
entry point to provide a kill switch
for the currently selected Virtual Machine.Constructor and Description |
---|
KillVMAction(AgentInfoDAO agentDao,
VmInfoDAO vmDao,
RequestQueue queue,
RequestResponseListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
execute(VmRef reference)
Invoked when the user selects this
VMContextAction . |
String |
getDescription()
A user-visible description for
VMContextAction . |
Filter<VmRef> |
getFilter()
The
Filter returned by this method is used to select what VMs
this VMContextAction is applicable to. |
String |
getName()
A user-visible name for this
VMContextAction . |
public KillVMAction(AgentInfoDAO agentDao, VmInfoDAO vmDao, RequestQueue queue, RequestResponseListener listener)
public String getName()
VMContextAction
VMContextAction
. Should be
localized.getName
in interface ContextAction
getName
in interface VMContextAction
public String getDescription()
VMContextAction
VMContextAction
. Should be
localized.getDescription
in interface ContextAction
getDescription
in interface VMContextAction
public void execute(VmRef reference)
VMContextAction
VMContextAction
.execute
in interface VMContextAction
reference
- specifies the vm that this VMContextAction
was
invoked on.public Filter<VmRef> getFilter()
VMContextAction
Filter
returned by this method is used to select what VMs
this VMContextAction
is applicable to.getFilter
in interface VMContextAction
Copyright © 2014. All rights reserved.