org.opennms.netmgt.model
Class OnmsDistPoller

java.lang.Object
  extended by org.opennms.netmgt.model.OnmsDistPoller
All Implemented Interfaces:
Serializable

public class OnmsDistPoller
extends Object
implements Serializable

Represents an OpenNMS Distributed Poller

Version:
$Id: $
Author:
ranger
See Also:
Serialized Form

Constructor Summary
OnmsDistPoller()
          default constructor
OnmsDistPoller(String name, String ipAddress)
          minimal constructor
 
Method Summary
 Integer getAdminState()
          Reflects desired state for this distributed poller.
 String getComment()
          A free form text field providing a desciption of the distrubted poller
 BigDecimal getDiscoveryLimit()
          Numeric representation of percentage of interface speed available to discovery process.
 String getIpAddress()
          IP address of the distributed poller.
 Date getLastEventPull()
          Time of last pull of events from the DP
 Date getLastNodePull()
          Time of last pull of new nodes from the DP
 Date getLastPackagePush()
          Time of last push of Package (config) to the DP
 String getName()
          A human-readable name for each system.
 Integer getRunState()
          Reflects the current perceived state of the distributed poller.
 void setAdminState(Integer dpadminstate)
          setAdminState
 void setComment(String dpcomment)
          setComment
 void setDiscoveryLimit(BigDecimal dpdisclimit)
          setDiscoveryLimit
 void setIpAddress(String dpip)
          setIpAddress
 void setLastEventPull(Date dplasteventpull)
          setLastEventPull
 void setLastNodePull(Date dplastnodepull)
          setLastNodePull
 void setLastPackagePush(Date dplastpackagepush)
          setLastPackagePush
 void setName(String dpname)
          setName
 void setRunState(Integer dprunstate)
          setRunState
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnmsDistPoller

public OnmsDistPoller()
default constructor


OnmsDistPoller

public OnmsDistPoller(String name,
                      String ipAddress)
minimal constructor

Parameters:
name - a String object.
ipAddress - a String object.
Method Detail

getName

public String getName()
A human-readable name for each system. Typically, the system's hostname (not fully qualified).

Returns:
a String object.

setName

public void setName(String dpname)

setName

Parameters:
dpname - a String object.

getIpAddress

public String getIpAddress()
IP address of the distributed poller.

Returns:
a String object.

setIpAddress

public void setIpAddress(String dpip)

setIpAddress

Parameters:
dpip - a String object.

getComment

public String getComment()
A free form text field providing a desciption of the distrubted poller

Returns:
a String object.

setComment

public void setComment(String dpcomment)

setComment

Parameters:
dpcomment - a String object.

getDiscoveryLimit

public BigDecimal getDiscoveryLimit()
Numeric representation of percentage of interface speed available to discovery process. See documentation for "bandwidth troll"

Returns:
a BigDecimal object.

setDiscoveryLimit

public void setDiscoveryLimit(BigDecimal dpdisclimit)

setDiscoveryLimit

Parameters:
dpdisclimit - a BigDecimal object.

getLastNodePull

public Date getLastNodePull()
Time of last pull of new nodes from the DP

Returns:
a Date object.

setLastNodePull

public void setLastNodePull(Date dplastnodepull)

setLastNodePull

Parameters:
dplastnodepull - a Date object.

getLastEventPull

public Date getLastEventPull()
Time of last pull of events from the DP

Returns:
a Date object.

setLastEventPull

public void setLastEventPull(Date dplasteventpull)

setLastEventPull

Parameters:
dplasteventpull - a Date object.

getLastPackagePush

public Date getLastPackagePush()
Time of last push of Package (config) to the DP

Returns:
a Date object.

setLastPackagePush

public void setLastPackagePush(Date dplastpackagepush)

setLastPackagePush

Parameters:
dplastpackagepush - a Date object.

getAdminState

public Integer getAdminState()
Reflects desired state for this distributed poller. 1 = Up, 0 = Down

Returns:
a Integer object.

setAdminState

public void setAdminState(Integer dpadminstate)

setAdminState

Parameters:
dpadminstate - a Integer object.

getRunState

public Integer getRunState()
Reflects the current perceived state of the distributed poller. 1 = Up, 0 = Down

Returns:
a Integer object.

setRunState

public void setRunState(Integer dprunstate)

setRunState

Parameters:
dprunstate - a Integer object.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.


Copyright © 2011. All Rights Reserved.