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