obixserver.module
Class PushSimulatorModule

java.lang.Object
  extended by obixserver.module.AbstractBaseModule
      extended by obixserver.module.PushSimulatorModule
All Implemented Interfaces:
Service, Module

public class PushSimulatorModule
extends AbstractBaseModule

Sample module that simulates dynamic data items in the push model. It contains a thread which simulates changes which are the pushed to object broker. One signal is a ramp signal increasing lineary from 0 to 60 during one minute, then reset to 0. The 2nd signal is a sine wave with the period of 60s, produced from the first signal. A feed is created that allows feed subscription by the client.


Field Summary
private  long bootTime
           
private static Logger logger
           
private  boolean stopped
           
private  long updateInterval
          Interval at which to perform updates of simulated changing values.
 
Fields inherited from class obixserver.module.AbstractBaseModule
properties
 
Constructor Summary
PushSimulatorModule()
           
 
Method Summary
 void start()
          Starts the service.
 void stop()
          Stops the service.
 
Methods inherited from class obixserver.module.AbstractBaseModule
getBase, getBaseObj, getObjBroker, getObjResource, getProperty, init, loadObjFromResource, setBase, setBaseObj, setObjBroker, setObjResource, setProperty, term
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logger logger

bootTime

private long bootTime

stopped

private boolean stopped

updateInterval

private long updateInterval
Interval at which to perform updates of simulated changing values.

Constructor Detail

PushSimulatorModule

public PushSimulatorModule()
Method Detail

start

public void start()
Description copied from interface: Service
Starts the service.


stop

public void stop()
Description copied from interface: Service
Stops the service.



Copyright © 2006-2008 Peter Michalek All Rights Reserved.