psdi.server

Class MaximoThread

  • java.lang.Object
    • java.lang.Thread
      • psdi.server.MaximoThread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor and Description
      MaximoThread(java.lang.String name)
      All MAXIMO threads must have a name so that we can easily identify the threads in the thread dumps.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isMarkedForShutDown()
      Returns whether this thread is marked for shutdown or not.
      void markShutdown()
      This method is called when MAXIMO application is undeployed or stopped from the application server.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MaximoThread

        public MaximoThread(java.lang.String name)
        All MAXIMO threads must have a name so that we can easily identify the threads in the thread dumps.
        Parameters:
        name - a name used for identifying the thread.
    • Method Detail

      • markShutdown

        public void markShutdown()
        This method is called when MAXIMO application is undeployed or stopped from the application server. Sets the shutdown flag to true, indicating that this thread is marked for shutdown and the thread code should check for the flag to determine how to stop its processing.
      • isMarkedForShutDown

        public boolean isMarkedForShutDown()
        Returns whether this thread is marked for shutdown or not. Thread code should check for the flag to determine how to stop its processing.
        Returns:
        true, if this thread is marked for shutdown, otherwise false.