@Path(value="/soa/discovery") public class DiscoveryResource extends Object
| Constructor and Description |
|---|
DiscoveryResource(SoaFeatures features) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
ableDefaultGroup(String serviceName,
boolean enable) |
javax.ws.rs.core.Response |
ableGroup(String serviceName,
String groupName,
boolean enable) |
javax.ws.rs.core.Response |
ableGroups(String serviceName,
List<DeploymentGroupSetting> groups) |
javax.ws.rs.core.Response |
getDeploymentGroups(String serviceName) |
Collection<DiscoveryInstance> |
getInstances(String serviceName) |
List<String> |
getServiceNames() |
javax.ws.rs.core.Response |
setForce(String serviceName,
String instanceId,
ForcedState forcedState) |
@Inject public DiscoveryResource(SoaFeatures features)
@GET
@Path(value="deploymentGroups/{serviceName}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getDeploymentGroups(@PathParam(value="serviceName")
String serviceName)
@PUT
@Path(value="deploymentGroup/{serviceName}")
@Consumes(value="application/json")
public javax.ws.rs.core.Response ableDefaultGroup(@PathParam(value="serviceName")
String serviceName,
boolean enable)
@PUT
@Path(value="deploymentGroup/{serviceName}/{name}")
@Consumes(value="application/json")
public javax.ws.rs.core.Response ableGroup(@PathParam(value="serviceName")
String serviceName,
@PathParam(value="name")
String groupName,
boolean enable)
@POST
@Path(value="deploymentGroup/{serviceName}")
@Consumes(value="application/json")
public javax.ws.rs.core.Response ableGroups(@PathParam(value="serviceName")
String serviceName,
List<DeploymentGroupSetting> groups)
@GET @Path(value="services") @Produces(value="application/json") public List<String> getServiceNames()
@GET
@Produces(value="application/json")
@Path(value="all/{name}")
public Collection<DiscoveryInstance> getInstances(@PathParam(value="name")
String serviceName)
@PUT
@Path(value="force/{name}/{id}")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response setForce(@PathParam(value="name")
String serviceName,
@PathParam(value="id")
String instanceId,
ForcedState forcedState)
Copyright © 2014–2016 Soabase. All rights reserved.