com.eurotech.framework.linux.clock
Class GpsClockSyncProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
GpsClockSyncProvider
public GpsClockSyncProvider()
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.