public class CallbackService extends java.lang.Object implements Service
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONF_BASE_URL |
static java.lang.String |
CONF_EARLY_REQUEUE_MAX_RETRIES |
static java.lang.String |
CONF_PREFIX |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
CallbackService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createCallBackUrl(java.lang.String actionId,
java.lang.String externalStatusVar)
Create a callback URL.
|
void |
destroy()
Destroy the service.
|
java.lang.String |
getActionId(java.lang.String callback)
Return the action ID from a callback URL.
|
int |
getEarlyRequeueMaxRetries() |
java.lang.String |
getExternalStatus(java.lang.String callback)
Return the action external status from a callback URL.
|
java.lang.Class<? extends Service> |
getInterface()
Return the public interface of the Dag engine service.
|
void |
init(Services services)
Initialize the service.
|
boolean |
isValid(java.lang.String callback)
Return if a callback URL is valid or not.
|
public static final java.lang.String CONF_PREFIX
public static final java.lang.String CONF_BASE_URL
public static final java.lang.String CONF_EARLY_REQUEUE_MAX_RETRIES
public CallbackService()
public java.lang.Class<? extends Service> getInterface()
getInterface in interface ServiceCallbackService.public java.lang.String createCallBackUrl(java.lang.String actionId, java.lang.String externalStatusVar)
actionId - action ID for the callback URL.externalStatusVar - variable for the caller to inject the external status.public boolean isValid(java.lang.String callback)
callback - callback URL (it can be just the callback portion of it).true if the callback URL is valid, false if it is not.public java.lang.String getActionId(java.lang.String callback)
callback - callback URL (it can be just the callback portion of it).public java.lang.String getExternalStatus(java.lang.String callback)
callback - callback URL (it can be just the callback portion of it).public int getEarlyRequeueMaxRetries()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.