com.regexlab.j2e
Class ServiceStatusManager

java.lang.Object
  extended by com.regexlab.j2e.ServiceStatusManager

public class ServiceStatusManager
extends java.lang.Object

Send command to service manager


Field Summary
static boolean isRunAsService
          Whether runs as service, will be set by frame, do not modify it by yourself
static int STATUS_PAUSED
          Service status constants
static int STATUS_RUNNING
          Service status constants
 
Constructor Summary
ServiceStatusManager()
           
 
Method Summary
static void setServiceStatus(int status)
          Set service status, this will not leads to onPause/onContinue event.
static void setServiceStatusHandler(ServiceStatusHandler handler)
          Set status callback handler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_PAUSED

public static final int STATUS_PAUSED
Service status constants

See Also:
Constant Field Values

STATUS_RUNNING

public static final int STATUS_RUNNING
Service status constants

See Also:
Constant Field Values

isRunAsService

public static boolean isRunAsService
Whether runs as service, will be set by frame, do not modify it by yourself

Constructor Detail

ServiceStatusManager

public ServiceStatusManager()
Method Detail

setServiceStatus

public static void setServiceStatus(int status)
Set service status, this will not leads to onPause/onContinue event.

Parameters:
status - New status to set, use the constants before

setServiceStatusHandler

public static void setServiceStatusHandler(ServiceStatusHandler handler)
Set status callback handler

Parameters:
callback - Callback instance to do events