public class StatusTransitService extends Object implements Service
It is to update job's status according to its child actions' status. If all child actions' pending flag equals 0 (job done), we reset the job's pending flag to 0. If all child actions are succeeded, we set the job's status to SUCCEEDED.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
StatusTransitService.StatusTransitRunnable
StateTransitRunnable is the runnable which is scheduled to run at the configured interval. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CONF_BACKWARD_SUPPORT_FOR_COORD_STATUS  | 
static String | 
CONF_BACKWARD_SUPPORT_FOR_STATES_WITHOUT_ERROR  | 
static Date | 
lastInstanceStartTime  | 
static int | 
limit  | 
static XLog | 
LOG  | 
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description | 
|---|
StatusTransitService()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
destroy()
Destroy the StateTransit Jobs Service. 
 | 
Class<? extends Service> | 
getInterface()
Return the public interface for the purge jobs service. 
 | 
void | 
init(Services services)
Initializes the  
StatusTransitService. | 
public static final String CONF_BACKWARD_SUPPORT_FOR_COORD_STATUS
public static final String CONF_BACKWARD_SUPPORT_FOR_STATES_WITHOUT_ERROR
public static int limit
public static Date lastInstanceStartTime
public StatusTransitService()
public void init(Services services)
StatusTransitService.public void destroy()
public Class<? extends Service> getInterface()
getInterface in interface ServiceStatusTransitService.Copyright © 2016 Apache Software Foundation. All rights reserved.