Class PingOperation
- java.lang.Object
-
- org.opennms.features.topology.api.AbstractOperation
-
- org.opennms.features.topology.netutils.internal.operations.PingOperation
-
- All Implemented Interfaces:
Operation
public class PingOperation extends AbstractOperation
-
-
Field Summary
-
Fields inherited from interface org.opennms.features.topology.api.Operation
OPERATION_CONTEXT_LOCATION, OPERATION_LABEL, OPERATION_MENU_LOCATION
-
-
Constructor Summary
Constructors Constructor Description PingOperation(LocationAwarePingClient pingClient, MonitoringLocationDao monitoringLocationDao, NodeDao nodeDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
display(java.util.List<VertexRef> targets, OperationContext operationContext)
boolean
enabled(java.util.List<VertexRef> targets, OperationContext operationContext)
void
execute(java.util.List<VertexRef> targets, OperationContext operationContext)
java.lang.String
getId()
-
Methods inherited from class org.opennms.features.topology.api.AbstractOperation
getFullUrl, getIpAddrValue, getLabelValue, getNodeIdValue, getVertexItem
-
-
-
-
Constructor Detail
-
PingOperation
public PingOperation(LocationAwarePingClient pingClient, MonitoringLocationDao monitoringLocationDao, NodeDao nodeDao)
-
-
Method Detail
-
execute
public void execute(java.util.List<VertexRef> targets, OperationContext operationContext)
-
enabled
public boolean enabled(java.util.List<VertexRef> targets, OperationContext operationContext)
- Specified by:
enabled
in interfaceOperation
- Overrides:
enabled
in classAbstractOperation
-
display
public boolean display(java.util.List<VertexRef> targets, OperationContext operationContext)
- Specified by:
display
in interfaceOperation
- Overrides:
display
in classAbstractOperation
-
getId
public java.lang.String getId()
- Specified by:
getId
in interfaceOperation
- Overrides:
getId
in classAbstractOperation
-
-