@Path(value="/v1") public class ResourceDags<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceDags.DagInfo |
| Constructor and Description |
|---|
ResourceDags() |
| Modifier and Type | Method and Description |
|---|---|
List<ResourceDags.DagInfo> |
getAllDagInfos(String username) |
Dag |
getDAG(String dagkey) |
org.glassfish.jersey.server.mvc.Viewable |
getDAGasHTML(String dagkey,
javax.servlet.http.HttpServletRequest request) |
Dag.Node |
getDAGNode(String dagkey,
String nodeName) |
List<Dag.Node> |
getDAGNodes(String dagkey) |
Dag.Node.State |
getDAGNodeState(String dagkey,
String nodeName) |
List<String> |
getTopological(String dagkey) |
List<String> |
getTopologicartifacts(String dagkey) |
List<ResourceDags.DagInfo> |
getUserDagInfos(javax.servlet.http.HttpServletRequest request) |
List<ResourceDags.DagInfo> |
getUserDAGs(javax.servlet.http.HttpServletRequest request) |
org.glassfish.jersey.server.mvc.Viewable |
pickDate(javax.servlet.http.HttpServletRequest request) |
String |
ping() |
javax.ws.rs.core.Response |
reload() |
javax.ws.rs.core.Response |
sendBusEvent(String entity,
String dagkey,
String nodeName,
BusEvent.Type eventType,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
setDAGNodeState(String dagkey,
String nodeName,
Dag.Node.State state) |
javax.ws.rs.core.Response |
subscribe(String dagkey,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
unsubscribe(String dagkey,
javax.servlet.http.HttpServletRequest request) |
org.glassfish.jersey.server.mvc.Viewable |
viewDags(javax.servlet.http.HttpServletRequest request) |
public ResourceDags()
throws IOException
IOException@GET @Path(value="") @Produces(value="text/plain") public String ping()
@POST @Path(value="/reload") @Produces(value="application/json") public javax.ws.rs.core.Response reload()
@GET
@Path(value="/pick-dag")
@Produces(value="text/html")
public org.glassfish.jersey.server.mvc.Viewable pickDate(@Context
javax.servlet.http.HttpServletRequest request)
throws Exception
Exception@GET @Path(value="/dags") @Produces(value="application/json") public List<ResourceDags.DagInfo> getUserDagInfos(@Context javax.servlet.http.HttpServletRequest request)
@GET
@Path(value="/dags/users/{user : .+}")
@Produces(value="application/json")
public List<ResourceDags.DagInfo> getAllDagInfos(@PathParam(value="user")
String username)
@GET
@Path(value="/dags")
@Produces(value="text/html")
public org.glassfish.jersey.server.mvc.Viewable viewDags(@Context
javax.servlet.http.HttpServletRequest request)
throws IOException
IOException@GET
@Path(value="/dags/{dag : .+}")
@Produces(value="application/json")
public Dag getDAG(@PathParam(value="dag")
String dagkey)
throws Exception
Exception@GET
@Path(value="/dags/{dag : .+}")
@Produces(value="text/html")
public org.glassfish.jersey.server.mvc.Viewable getDAGasHTML(@PathParam(value="dag")
String dagkey,
@Context
javax.servlet.http.HttpServletRequest request)
throws Exception
Exception@GET
@Path(value="/dags/{dag : .+}/topological")
@Produces(value="application/json")
public List<String> getTopological(@PathParam(value="dag")
String dagkey)
throws Exception
Exception@GET
@Path(value="/dags/{dag : .+}/topologicartifacts")
@Produces(value="application/json")
public List<String> getTopologicartifacts(@PathParam(value="dag")
String dagkey)
throws Exception
Exception@GET
@Path(value="/dags/{dag : .+}/nodes")
@Produces(value="application/json")
public List<Dag.Node> getDAGNodes(@PathParam(value="dag")
String dagkey)
throws Exception
Exception@GET
@Path(value="/dags/{dag : .+}/nodes/{nodename : .+}")
@Produces(value="application/json")
public Dag.Node getDAGNode(@PathParam(value="dag")
String dagkey,
@PathParam(value="nodename")
String nodeName)
throws Exception
Exception@GET
@Path(value="/dags/{dag : .+}/nodes/{nodename : .+}/state")
@Produces(value="application/json")
public Dag.Node.State getDAGNodeState(@PathParam(value="dag")
String dagkey,
@PathParam(value="nodename")
String nodeName)
throws Exception
Exception@POST
@Path(value="/dags/{dag : .+}/nodes/{nodename : .+}/state/{state : .+}")
@Produces(value="application/json")
public javax.ws.rs.core.Response setDAGNodeState(@PathParam(value="dag")
String dagkey,
@PathParam(value="nodename")
String nodeName,
@PathParam(value="state")
Dag.Node.State state)
throws Exception
Exception@PATCH @Path(value="/dags/{dag : .+}/nodes/{nodename : .+}/event/{event : .+}") @Consumes(value="text/plain") @Produces(value="application/json") public javax.ws.rs.core.Response sendBusEvent(String entity, @PathParam(value="dag") String dagkey, @PathParam(value="nodename") String nodeName, @PathParam(value="event") BusEvent.Type eventType, @Context javax.servlet.http.HttpServletRequest request) throws Exception
Exception@GET @Path(value="/dags/subscription") @Produces(value="application/json") public List<ResourceDags.DagInfo> getUserDAGs(@Context javax.servlet.http.HttpServletRequest request) throws Exception
Exception@POST
@Path(value="/dags/subscription/{dag : .+}")
public javax.ws.rs.core.Response subscribe(@PathParam(value="dag")
String dagkey,
@Context
javax.servlet.http.HttpServletRequest request)
throws IOException
IOException@DELETE
@Path(value="/dags/subscription/{dag : .+}")
public javax.ws.rs.core.Response unsubscribe(@PathParam(value="dag")
String dagkey,
@Context
javax.servlet.http.HttpServletRequest request)
throws IOException
IOExceptionCopyright © 2015 aequologica. All rights reserved.