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, java.lang.String nodeCriteria, java.lang.String ipAddress, OnmsMonitoredService service)
addServicejavax.ws.rs.core.Response
deleteService(java.lang.String nodeCriteria, java.lang.String ipAddress, java.lang.String serviceName)
deleteServiceOnmsMonitoredService
getService(java.lang.String nodeCriteria, java.lang.String ipAddress, java.lang.String service)
getServiceOnmsMonitoredServiceList
getServices(java.lang.String nodeCriteria, java.lang.String ipAddress)
getServicesjavax.ws.rs.core.Response
updateService(java.lang.String nodeCriteria, java.lang.String ipAddress, java.lang.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(java.lang.String nodeCriteria, java.lang.String ipAddress)
getServices
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.- Returns:
- a
OnmsMonitoredServiceList
object.
-
getService
public OnmsMonitoredService getService(java.lang.String nodeCriteria, java.lang.String ipAddress, java.lang.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, java.lang.String nodeCriteria, java.lang.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(java.lang.String nodeCriteria, java.lang.String ipAddress, java.lang.String serviceName, MultivaluedMapImpl params)
updateService
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.serviceName
- aString
object.params
- aMultivaluedMapImpl
object.- Returns:
- a
Response
object.
-
deleteService
public javax.ws.rs.core.Response deleteService(java.lang.String nodeCriteria, java.lang.String ipAddress, java.lang.String serviceName)
deleteService
- Parameters:
nodeCriteria
- aString
object.ipAddress
- aString
object.serviceName
- aString
object.- Returns:
- a
Response
object.
-
-