org.openmuc.mux.dataserver
Class Activator

java.lang.Object
  extended by org.openmuc.mux.dataserver.Activator
All Implemented Interfaces:
ConfigurationListener, DataManagerListener, org.osgi.framework.BundleActivator, org.osgi.service.cm.ManagedService

public class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator, org.osgi.service.cm.ManagedService, DataManagerListener, ConfigurationListener


Constructor Summary
Activator()
           
 
Method Summary
 void configurationChanged()
           
 void start(org.osgi.framework.BundleContext context)
           
 void stateChanged(ChannelIdentifier id, State newState)
          Invoked if the state of a channel has changed
 void stop(org.osgi.framework.BundleContext context)
           
 void storingDataEvent(java.lang.String label, long timestamp, double value)
          Invoked if the framework wants to store data
 void updated()
          Invoked if a configuration update occurs
 void updated(java.util.Dictionary properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

updated

public void updated(java.util.Dictionary properties)
             throws org.osgi.service.cm.ConfigurationException
Specified by:
updated in interface org.osgi.service.cm.ManagedService
Throws:
org.osgi.service.cm.ConfigurationException

updated

public void updated()
Description copied from interface: DataManagerListener
Invoked if a configuration update occurs

Specified by:
updated in interface DataManagerListener

storingDataEvent

public void storingDataEvent(java.lang.String label,
                             long timestamp,
                             double value)
Description copied from interface: DataManagerListener
Invoked if the framework wants to store data

Specified by:
storingDataEvent in interface DataManagerListener

configurationChanged

public void configurationChanged()
Specified by:
configurationChanged in interface ConfigurationListener

stateChanged

public void stateChanged(ChannelIdentifier id,
                         State newState)
Description copied from interface: DataManagerListener
Invoked if the state of a channel has changed

Specified by:
stateChanged in interface DataManagerListener
Parameters:
id - id of the channel that changed its state
newState - new state of the channel