Package org.opennms.web.rest.v1
Class OnmsMonitoredServiceResource
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.OnmsMonitoredServiceResource
-
@Component("onmsMonitoredServiceResource") @Transactional public class OnmsMonitoredServiceResource extends OnmsRestService
OnmsMonitoredServiceResource class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- ranger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.web.rest.v1.OnmsRestService
OnmsRestService.ComparisonOperation
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description OnmsMonitoredServiceResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
addService(javax.ws.rs.core.UriInfo uriInfo, String nodeCriteria, String ipAddress, OnmsMonitoredService service)
addServicejavax.ws.rs.core.Response
deleteService(String nodeCriteria, String ipAddress, String serviceName)
deleteServiceOnmsMonitoredService
getService(String nodeCriteria, String ipAddress, String service)
getServiceOnmsMonitoredServiceList
getServices(String nodeCriteria, String ipAddress)
getServicesjavax.ws.rs.core.Response
updateService(String nodeCriteria, String ipAddress, String serviceName, MultivaluedMapImpl params)
updateService-
Methods inherited from class org.opennms.web.rest.v1.OnmsRestService
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getServices
public OnmsMonitoredServiceList getServices(String nodeCriteria, String ipAddress)
getServices
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.- Returns:
- a
OnmsMonitoredServiceList
object.
-
getService
public OnmsMonitoredService getService(String nodeCriteria, String ipAddress, String service)
getService
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.service
- aString
object.- Returns:
- a
OnmsMonitoredService
object.
-
addService
public javax.ws.rs.core.Response addService(@Context javax.ws.rs.core.UriInfo uriInfo, String nodeCriteria, String ipAddress, OnmsMonitoredService service)
addService
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.service
- aOnmsMonitoredService
object.- Returns:
- a
Response
object.
-
updateService
public javax.ws.rs.core.Response updateService(String nodeCriteria, String ipAddress, String serviceName, MultivaluedMapImpl params)
updateService
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.serviceName
- aString
object.params
- aMultivaluedMapImpl
object.- Returns:
- a
Response
object.
-
-