Package org.opennms.netmgt.discovery
Class DiscoveryJob
- java.lang.Object
-
- org.opennms.netmgt.discovery.DiscoveryJob
-
public class DiscoveryJob extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DiscoveryJob(java.util.List<IPPollRange> ranges, java.lang.String foreignSource, java.lang.String location, double packetsPerSecond, DiscoveryConfiguration config)
Construct aDiscoveryJob
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
java.lang.Iterable<IPPollAddress>
getAddresses()
DiscoveryConfiguration
getConfig()
java.lang.String
getForeignSource()
java.lang.String
getLocation()
double
getPacketsPerSecond()
java.util.List<IPPollRange>
getRanges()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DiscoveryJob
public DiscoveryJob(java.util.List<IPPollRange> ranges, java.lang.String foreignSource, java.lang.String location, double packetsPerSecond, DiscoveryConfiguration config)
Construct aDiscoveryJob
. All ranges must have the same foreignSource and location for the message to be routed correctly.- Parameters:
ranges
-foreignSource
-location
-packetsPerSecond
-config
-
-
-
Method Detail
-
getRanges
public java.util.List<IPPollRange> getRanges()
-
getAddresses
public java.lang.Iterable<IPPollAddress> getAddresses()
-
getForeignSource
public java.lang.String getForeignSource()
-
getLocation
public java.lang.String getLocation()
-
getPacketsPerSecond
public double getPacketsPerSecond()
-
getConfig
public DiscoveryConfiguration getConfig()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-