Class DetectorResponseDTO
- java.lang.Object
-
- org.opennms.netmgt.provision.detector.client.rpc.DetectorResponseDTO
-
- All Implemented Interfaces:
RpcResponse,DetectResults
public class DetectorResponseDTO extends Object implements DetectResults, RpcResponse
-
-
Constructor Summary
Constructors Constructor Description DetectorResponseDTO()DetectorResponseDTO(Throwable t)DetectorResponseDTO(DetectResults results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(String key, String value)voidaddAttributes(Map<String,String> attributes)booleanequals(Object obj)List<DetectorAttributeDTO>getAttributes()Map<String,String>getAttributesMap()StringgetErrorMessage()Returns an error message if an error occurred, ornullotherwise.Map<String,String>getServiceAttributes()inthashCode()booleanisDetected()booleanisServiceDetected()voidsetDetected(boolean detected)
-
-
-
Constructor Detail
-
DetectorResponseDTO
public DetectorResponseDTO()
-
DetectorResponseDTO
public DetectorResponseDTO(DetectResults results)
-
DetectorResponseDTO
public DetectorResponseDTO(Throwable t)
-
-
Method Detail
-
isDetected
public boolean isDetected()
-
setDetected
public void setDetected(boolean detected)
-
getAttributes
public List<DetectorAttributeDTO> getAttributes()
-
isServiceDetected
public boolean isServiceDetected()
- Specified by:
isServiceDetectedin interfaceDetectResults- Returns:
- true if the service was detected, false otherwise
-
getServiceAttributes
public Map<String,String> getServiceAttributes()
- Specified by:
getServiceAttributesin interfaceDetectResults- Returns:
- additional attributes from the detector invocation
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:RpcResponseReturns an error message if an error occurred, ornullotherwise.- Specified by:
getErrorMessagein interfaceRpcResponse- Returns:
- an error message if an error occurred, or
nullotherwise
-
-