Class DetectorResponseDTO
- java.lang.Object
-
- org.opennms.netmgt.provision.detector.client.rpc.DetectorResponseDTO
-
- All Implemented Interfaces:
RpcResponse
,DetectResults
public class DetectorResponseDTO extends java.lang.Object implements DetectResults, RpcResponse
-
-
Constructor Summary
Constructors Constructor Description DetectorResponseDTO()
DetectorResponseDTO(java.lang.Throwable t)
DetectorResponseDTO(DetectResults results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(java.lang.String key, java.lang.String value)
void
addAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
boolean
equals(java.lang.Object obj)
java.util.List<DetectorAttributeDTO>
getAttributes()
java.util.Map<java.lang.String,java.lang.String>
getAttributesMap()
java.lang.String
getErrorMessage()
Returns an error message if an error occurred, ornull
otherwise.java.util.Map<java.lang.String,java.lang.String>
getServiceAttributes()
int
hashCode()
boolean
isDetected()
boolean
isServiceDetected()
void
setDetected(boolean detected)
-
-
-
Constructor Detail
-
DetectorResponseDTO
public DetectorResponseDTO()
-
DetectorResponseDTO
public DetectorResponseDTO(DetectResults results)
-
DetectorResponseDTO
public DetectorResponseDTO(java.lang.Throwable t)
-
-
Method Detail
-
isDetected
public boolean isDetected()
-
setDetected
public void setDetected(boolean detected)
-
getAttributes
public java.util.List<DetectorAttributeDTO> getAttributes()
-
addAttribute
public void addAttribute(java.lang.String key, java.lang.String value)
-
addAttributes
public void addAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
-
getAttributesMap
public java.util.Map<java.lang.String,java.lang.String> getAttributesMap()
-
isServiceDetected
public boolean isServiceDetected()
- Specified by:
isServiceDetected
in interfaceDetectResults
- Returns:
- true if the service was detected, false otherwise
-
getServiceAttributes
public java.util.Map<java.lang.String,java.lang.String> getServiceAttributes()
- Specified by:
getServiceAttributes
in interfaceDetectResults
- Returns:
- additional attributes from the detector invocation
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getErrorMessage
public java.lang.String getErrorMessage()
Description copied from interface:RpcResponse
Returns an error message if an error occurred, ornull
otherwise.- Specified by:
getErrorMessage
in interfaceRpcResponse
- Returns:
- an error message if an error occurred, or
null
otherwise
-
-