Class StandaloneServerSessionCleanupJob

  • All Implemented Interfaces:
    Comparable, org.eclipse.core.runtime.IAdaptable

    public class StandaloneServerSessionCleanupJob
    extends org.eclipse.core.runtime.jobs.Job
    Cleans specified debug session from stanalone server.

    Uses ibcmd session administration mode to forecefully terminate the session of the local standalone server that is supposed to be among the processes registered with launch of the provided debug target,

    If alive standalone server process could not be found then nothing is done. If cleaning with ibcmd fails then error message will be added to the journal but no error dialog will be displayed to the user. The reason is that this cleanup job is not the main function and is not directly invoked by the user. Instead, this is just the assistance to cleanup *possibly* stuck session.

    • Field Summary

      • Fields inherited from class org.eclipse.core.runtime.jobs.Job

        ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
      • Fields inherited from class org.eclipse.core.internal.jobs.InternalJob

        manager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.eclipse.core.runtime.IStatus run​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      • Methods inherited from class org.eclipse.core.runtime.jobs.Job

        addJobChangeListener, belongsTo, cancel, canceling, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
      • Methods inherited from class org.eclipse.core.internal.jobs.InternalJob

        compareTo
      • Methods inherited from class org.eclipse.core.runtime.PlatformObject

        getAdapter
    • Constructor Detail

      • StandaloneServerSessionCleanupJob

        public StandaloneServerSessionCleanupJob​(IDebugSession session,
                                                 Path serverLocation)
        Creates new instance.
        Parameters:
        session - Debug session that is to be cleaned from standalone server.
    • Method Detail

      • run

        protected org.eclipse.core.runtime.IStatus run​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        run in class org.eclipse.core.runtime.jobs.Job