Class PeriodicStatusLogger

  • All Implemented Interfaces:
    Runnable, org.pentaho.platform.api.engine.IServerStatusChangeListener

    public class PeriodicStatusLogger
    extends Object
    implements Runnable, org.pentaho.platform.api.engine.IServerStatusChangeListener
    Author:
    tkafalas The purpose of this class is to provide a thread that will log a message periodically to the console. The message can be changed at any time and, in that case, the next periodic iteration will show the new message.
    • Method Detail

      • start

        public static void start()
      • stop

        public static void stop()
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • getStatusMessages

        public static String[] getStatusMessages()
      • getServerStatus

        public static org.pentaho.platform.api.engine.IServerStatusProvider.ServerStatus getServerStatus()
      • setCycleTime

        public static void setCycleTime​(int cycleTime)
      • getCycleTime

        public static int getCycleTime()
      • onStatusChange

        public void onStatusChange()
        Specified by:
        onStatusChange in interface org.pentaho.platform.api.engine.IServerStatusChangeListener