@PathPrefix(value="/backend/workQueue") public final class RestMasterWebService extends Object implements io.vertigo.vega.webservice.WebServices
| Constructor and Description |
|---|
RestMasterWebService(MasterPlugin masterPlugin)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getApiVersion() |
void |
onFailure(String uuid,
String base64Result)
Node marks work as failur.
|
void |
onStart(String uuid)
Node marks work as started.
|
void |
onSuccess(String uuid,
String base64Result)
Node marks work as success.
|
String[] |
pollWork(String workType,
String nodeUID) |
@Inject public RestMasterWebService(MasterPlugin masterPlugin)
masterPlugin - RestMasterPlugin@SessionLess
@AnonymousAccessAllowed
@GET(value="/pollWork/{workType}")
public String[] pollWork(@PathParam(value="workType")
String workType,
@QueryParam(value="nodeUID")
String nodeUID)
workType - Work type namenodeUID - node uid@SessionLess
@AnonymousAccessAllowed
@POST(value="/event/start/{uuid}")
public void onStart(@PathParam(value="uuid")
String uuid)
uuid - work uuid@SessionLess
@AnonymousAccessAllowed
@POST(value="/event/success/{uuid}")
public void onSuccess(@PathParam(value="uuid")
String uuid,
String base64Result)
uuid - work uuidbase64Result - result serialized/compressed in base64@SessionLess
@AnonymousAccessAllowed
@POST(value="/event/failure/{uuid}")
public void onFailure(@PathParam(value="uuid")
String uuid,
String base64Result)
uuid - work uuidbase64Result - exception serialized/compressed in base64@SessionLess @AnonymousAccessAllowed @GET(value="/version") public String getApiVersion()
Copyright © 2019. All Rights Reserved.