Class 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.
    • Method Detail

      • getObjectName

        public ObjectName getObjectName()
        Specified by:
        getObjectName in interface org.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