Class MSOInstanceAssassin
- java.lang.Object
-
- com.levigo.jadice.server.msoffice.MSOInstanceAssassin
-
- All Implemented Interfaces:
SelfRegistering
,org.springframework.jmx.export.naming.SelfNaming
@ManagedResource(description="Assassin for dangling Microsoft Office Instances. Use with care!") public class MSOInstanceAssassin extends Object implements SelfRegistering, org.springframework.jmx.export.naming.SelfNaming
An assassin that can force kill dangling (MS Office) processes.
-
-
Constructor Summary
Constructors Constructor Description MSOInstanceAssassin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectName
getObjectName()
Collection<String>
getObservingPIDs()
void
killObservingProcesses()
void
updateObservingProcesses()
-
-
-
Constructor Detail
-
MSOInstanceAssassin
public MSOInstanceAssassin() throws IOException
- Throws:
IOException
-
-
Method Detail
-
getObjectName
public ObjectName getObjectName()
- Specified by:
getObjectName
in interfaceorg.springframework.jmx.export.naming.SelfNaming
-
updateObservingProcesses
@ManagedOperation(description="Take a snapshot of running MS Office process IDs that have been created after this assassin was instantiated") public void updateObservingProcesses() throws IOException
- Throws:
IOException
-
getObservingPIDs
@ManagedAttribute(description="Get all observing MS Office process IDs") public Collection<String> getObservingPIDs()
-
killObservingProcesses
@ManagedOperation(description="Kill all observing MS Office processes") public void killObservingProcesses() throws IOException
- Throws:
IOException
-
-