org.opennms.netmgt.poller.remote
Class DemoPollerConfiguration

java.lang.Object
  extended by org.opennms.netmgt.poller.remote.DemoPollerConfiguration
All Implemented Interfaces:
PollerConfiguration

public class DemoPollerConfiguration
extends Object
implements PollerConfiguration

DemoPollerConfiguration class.

Version:
$Id: $
Author:
Mathew Brozowski

Method Summary
 Date getConfigurationTimestamp()
          getConfigurationTimestamp
 int getFirstId()
          getFirstId
 PolledService getFirstService()
          getFirstService
 PolledService[] getPolledServices()
          getPolledServices
 long getServerTime()
          This is the time on the server just before it is sent to the configuration to the client in millis since the epoch UTC.
 void setServerTime(long serverTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConfigurationTimestamp

public Date getConfigurationTimestamp()

getConfigurationTimestamp

Specified by:
getConfigurationTimestamp in interface PollerConfiguration
Returns:
a Date object.

getPolledServices

public PolledService[] getPolledServices()

getPolledServices

Specified by:
getPolledServices in interface PollerConfiguration
Returns:
an array of PolledService objects.

getFirstId

public int getFirstId()

getFirstId

Returns:
a int.

getFirstService

public PolledService getFirstService()

getFirstService

Returns:
a PolledService object.

setServerTime

public void setServerTime(long serverTime)
Parameters:
serverTime - the serverTime to set

getServerTime

public long getServerTime()
Description copied from interface: PollerConfiguration
This is the time on the server just before it is sent to the configuration to the client in millis since the epoch UTC. (Same as returned by System.currentTimeMillis())

Specified by:
getServerTime in interface PollerConfiguration
Returns:
the serverTime


Copyright © 2011. All Rights Reserved.