Class PeriodicStatusLogger
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.status.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getCycleTime()
static org.pentaho.platform.api.engine.IServerStatusProvider.ServerStatus
getServerStatus()
static String[]
getStatusMessages()
void
onStatusChange()
void
run()
static void
setCycleTime(int cycleTime)
static void
start()
static void
stop()
-
-
-
Method Detail
-
start
public static void start()
-
stop
public static void stop()
-
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 interfaceorg.pentaho.platform.api.engine.IServerStatusChangeListener
-
-