Class PollerResponseDTO
- java.lang.Object
-
- org.opennms.netmgt.poller.client.rpc.PollerResponseDTO
-
- All Implemented Interfaces:
RpcResponse
,PollerResponse
public class PollerResponseDTO extends Object implements RpcResponse, PollerResponse
-
-
Constructor Summary
Constructors Constructor Description PollerResponseDTO()
PollerResponseDTO(Throwable ex)
PollerResponseDTO(PollStatus pollStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getErrorMessage()
Returns an error message if an error occurred, ornull
otherwise.PollStatus
getPollStatus()
int
hashCode()
void
setPollStatus(PollStatus pollStatus)
-
-
-
Constructor Detail
-
PollerResponseDTO
public PollerResponseDTO()
-
PollerResponseDTO
public PollerResponseDTO(Throwable ex)
-
PollerResponseDTO
public PollerResponseDTO(PollStatus pollStatus)
-
-
Method Detail
-
getPollStatus
public PollStatus getPollStatus()
- Specified by:
getPollStatus
in interfacePollerResponse
-
setPollStatus
public void setPollStatus(PollStatus pollStatus)
-
getErrorMessage
public 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
-
-