@Path(value="/agent")
public interface IAgent
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAliveAgents() |
AgentOptions |
heartBeat(String template,
String host) |
boolean |
isServerAlive() |
PackageStateChanges |
notifyPackageState(String template,
String host,
PackageState rpmState) |
ServiceStatesChanges |
notifyServiceState(String template,
String host,
ServiceStates serviceState) |
@GET @Path(value="/") @Produces(value="application/json;charset=UTF-8") Set<String> getAliveAgents()
@PUT
@Path(value="/{template}/{host}/package")
@Consumes(value="application/json;charset=UTF-8")
@Produces(value="application/json;charset=UTF-8")
PackageStateChanges notifyPackageState(@PathParam(value="template")
String template,
@PathParam(value="host")
String host,
PackageState rpmState)
template - the template namehost - the host namerpmState - the rpm state@PUT
@Path(value="/{template}/{host}/service")
@Consumes(value="application/json;charset=UTF-8")
@Produces(value="application/json;charset=UTF-8")
ServiceStatesChanges notifyServiceState(@PathParam(value="template")
String template,
@PathParam(value="host")
String host,
ServiceStates serviceState)
template - the template namehost - the host nameserviceState - the service state@GET
@Path(value="/{template}/{host}/heartbeat")
@Produces(value="application/json;charset=UTF-8")
AgentOptions heartBeat(@PathParam(value="template")
String template,
@PathParam(value="host")
String host)
template - the template namehost - the host name@GET @Path(value="/ping") @Produces(value="application/json;charset=UTF-8") boolean isServerAlive()
Copyright © 2014-2016 Cinovo AG. All Rights Reserved.