| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.service.CallbackService
public class CallbackService
Service that generates and parses callback URLs.
| Field Summary | |
|---|---|
static String | 
CONF_BASE_URL
 | 
static String | 
CONF_PREFIX
 | 
| Fields inherited from interface org.apache.oozie.service.Service | 
|---|
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND | 
| Constructor Summary | |
|---|---|
CallbackService()
 | 
|
| Method Summary | |
|---|---|
 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.  | 
 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.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String CONF_PREFIX
public static final String CONF_BASE_URL
| Constructor Detail | 
|---|
public CallbackService()
| Method Detail | 
|---|
public void init(Services services)
init in interface Serviceservices - services instance.public void destroy()
destroy in interface Servicepublic Class<? extends Service> getInterface()
getInterface in interface ServiceCallbackService.
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).
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||