public class GenericServiceDetectorFactory<T extends ServiceDetector> extends Object implements ServiceDetectorFactory<T>
Constructor and Description |
---|
GenericServiceDetectorFactory(Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
void |
afterDetect(DetectRequest request,
DetectResults results,
Integer nodeId) |
DetectRequest |
buildRequest(String location,
InetAddress address,
Integer port,
Map<String,String> attributes)
Builds the request that will be used to invoke the detector.
|
T |
createDetector()
Instantiates a new detector.
|
Class<T> |
getDetectorClass()
Used by the detector registry to track and index the detector types.
|
public T createDetector()
ServiceDetectorFactory
createDetector
in interface ServiceDetectorFactory<T extends ServiceDetector>
public Class<T> getDetectorClass()
ServiceDetectorFactory
getDetectorClass
in interface ServiceDetectorFactory<T extends ServiceDetector>
public DetectRequest buildRequest(String location, InetAddress address, Integer port, Map<String,String> attributes)
ServiceDetectorFactory
buildRequest
in interface ServiceDetectorFactory<T extends ServiceDetector>
location
- name of the location in which the detector will be invokedaddress
- address of the agent against which the detector will be invokedport
- port of the agent against which the detector will be invokedDetectRequest
public void afterDetect(DetectRequest request, DetectResults results, Integer nodeId)
afterDetect
in interface ServiceDetectorFactory<T extends ServiceDetector>
Copyright © 2017. All rights reserved.