public class TaskService
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_ONMASTERCANCEL
Service method name for CANCEL's caused by exceptions during MASTER storage processing
|
static java.lang.String |
SERVICE_PERSISTENCEERROR
Service method name for indicating serious persistence errors during final processing
(potentially database corrupted or disk full)
|
static java.lang.String |
SERVICE_PROCESS
Service method name for PROCESS
|
static java.lang.String |
SERVICE_SLAVETIMEOUT
Service invoked in case of a SLAVE request timeout
Nodes register a Cancel within execution engine to avoid a delayed commit.
|
Constructor and Description |
---|
TaskService() |
Modifier and Type | Method and Description |
---|---|
void |
onMasterCancel(Task task,
org.resoa.node.ResoaResponse response,
org.resoa.node.ResoaGateway resoaGW)
TASK CANCEL by MASTER in case of any exception
|
void |
onSlaveTimeout(Task task,
org.resoa.node.ResoaResponse response,
org.resoa.node.ResoaGateway resoaGW)
EXECUTED by domain nodes.
|
void |
persistenceError(Task task,
org.resoa.node.ResoaResponse response,
org.resoa.node.ResoaGateway resoaGW)
TASK PERSISTENCE ERROR
invoked if an exception happened during storage/database transactions.
|
void |
process(Task task,
org.resoa.node.ResoaResponse response,
org.resoa.node.ResoaGateway resoaGW)
TASK PROCESS - invoked within Resoa NODE persistence communication
|
public static java.lang.String SERVICE_PROCESS
public static java.lang.String SERVICE_ONMASTERCANCEL
public static java.lang.String SERVICE_SLAVETIMEOUT
public static java.lang.String SERVICE_PERSISTENCEERROR
public void process(Task task, org.resoa.node.ResoaResponse response, org.resoa.node.ResoaGateway resoaGW)
task
- the taskresponse
- the responseresoaGW
- the ResoaGatewaypublic void onMasterCancel(Task task, org.resoa.node.ResoaResponse response, org.resoa.node.ResoaGateway resoaGW)
task
- the taskresponse
- the responseresoaGW
- the ResoaGatewaypublic void onSlaveTimeout(Task task, org.resoa.node.ResoaResponse response, org.resoa.node.ResoaGateway resoaGW)
task
- the taskresponse
- the responseresoaGW
- the ResoaGatewaypublic void persistenceError(Task task, org.resoa.node.ResoaResponse response, org.resoa.node.ResoaGateway resoaGW)
task
- the taskresponse
- the responseresoaGW
- the ResoaGatewayCopyright © 2005-2014 The Resoa Project, resoa.org.