Class PollerRequestBuilderImpl
- java.lang.Object
-
- org.opennms.netmgt.poller.client.rpc.PollerRequestBuilderImpl
-
- All Implemented Interfaces:
PollerRequestBuilder
public class PollerRequestBuilderImpl extends Object implements PollerRequestBuilder
-
-
Constructor Summary
Constructors Constructor Description PollerRequestBuilderImpl(LocationAwarePollerClientImpl client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<PollerResponse>
execute()
Map<String,Object>
getInterpolatedAttributes()
PollerRequestBuilder
withAdaptor(ServiceMonitorAdaptor adaptor)
PollerRequestBuilder
withAttribute(String key, Object value)
PollerRequestBuilder
withAttributes(Map<String,Object> attributes)
PollerRequestBuilder
withMonitor(ServiceMonitor serviceMonitor)
PollerRequestBuilder
withMonitorClassName(String className)
PollerRequestBuilder
withPatternVariables(Map<String,String> patternVariables)
PollerRequestBuilder
withService(MonitoredService service)
PollerRequestBuilder
withSystemId(String systemId)
PollerRequestBuilder
withTimeToLive(Long ttlInMs)
-
-
-
Constructor Detail
-
PollerRequestBuilderImpl
public PollerRequestBuilderImpl(LocationAwarePollerClientImpl client)
-
-
Method Detail
-
withService
public PollerRequestBuilder withService(MonitoredService service)
- Specified by:
withService
in interfacePollerRequestBuilder
-
withSystemId
public PollerRequestBuilder withSystemId(String systemId)
- Specified by:
withSystemId
in interfacePollerRequestBuilder
-
withMonitor
public PollerRequestBuilder withMonitor(ServiceMonitor serviceMonitor)
- Specified by:
withMonitor
in interfacePollerRequestBuilder
-
withMonitorClassName
public PollerRequestBuilder withMonitorClassName(String className)
- Specified by:
withMonitorClassName
in interfacePollerRequestBuilder
-
withTimeToLive
public PollerRequestBuilder withTimeToLive(Long ttlInMs)
- Specified by:
withTimeToLive
in interfacePollerRequestBuilder
-
withAttribute
public PollerRequestBuilder withAttribute(String key, Object value)
- Specified by:
withAttribute
in interfacePollerRequestBuilder
-
withAttributes
public PollerRequestBuilder withAttributes(Map<String,Object> attributes)
- Specified by:
withAttributes
in interfacePollerRequestBuilder
-
withAdaptor
public PollerRequestBuilder withAdaptor(ServiceMonitorAdaptor adaptor)
- Specified by:
withAdaptor
in interfacePollerRequestBuilder
-
withPatternVariables
public PollerRequestBuilder withPatternVariables(Map<String,String> patternVariables)
- Specified by:
withPatternVariables
in interfacePollerRequestBuilder
-
getInterpolatedAttributes
public Map<String,Object> getInterpolatedAttributes()
- Specified by:
getInterpolatedAttributes
in interfacePollerRequestBuilder
-
execute
public CompletableFuture<PollerResponse> execute()
- Specified by:
execute
in interfacePollerRequestBuilder
-
-