com.eurotech.framework.linux.clock
Class GpsClockSyncProvider

java.lang.Object
  extended by com.eurotech.framework.linux.clock.GpsClockSyncProvider
All Implemented Interfaces:
ClockSyncProvider, org.osgi.service.event.EventHandler

public class GpsClockSyncProvider
extends Object
implements ClockSyncProvider, org.osgi.service.event.EventHandler


Field Summary
protected  Date m_lastSync
           
protected  ClockSyncListener m_listener
           
protected  Map<String,Object> m_properties
           
protected  int m_refreshInterval
           
protected  ScheduledThreadPoolExecutor m_scheduler
           
protected  boolean m_waitForLocked
           
 
Constructor Summary
GpsClockSyncProvider()
           
 
Method Summary
 Date getLastSync()
           
 void handleEvent(org.osgi.service.event.Event event)
           
 void init(Map<String,Object> properties, ClockSyncListener listener)
           
 void start()
           
 void stop()
           
protected  void synchClock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_properties

protected Map<String,Object> m_properties

m_listener

protected ClockSyncListener m_listener

m_refreshInterval

protected int m_refreshInterval

m_lastSync

protected Date m_lastSync

m_waitForLocked

protected boolean m_waitForLocked

m_scheduler

protected ScheduledThreadPoolExecutor m_scheduler
Constructor Detail

GpsClockSyncProvider

public GpsClockSyncProvider()
Method Detail

handleEvent

public void handleEvent(org.osgi.service.event.Event event)
Specified by:
handleEvent in interface org.osgi.service.event.EventHandler

init

public void init(Map<String,Object> properties,
                 ClockSyncListener listener)
          throws EsfException
Specified by:
init in interface ClockSyncProvider
Throws:
EsfException

start

public void start()
           throws EsfException
Specified by:
start in interface ClockSyncProvider
Throws:
EsfException

stop

public void stop()
          throws EsfException
Specified by:
stop in interface ClockSyncProvider
Throws:
EsfException

getLastSync

public Date getLastSync()
Specified by:
getLastSync in interface ClockSyncProvider

synchClock

protected void synchClock()
                   throws EsfException
Throws:
EsfException


Copyright © 2013. All Rights Reserved.