com.eurotech.framework.linux.clock
Class ClockServiceImpl
java.lang.Object
com.eurotech.framework.linux.clock.ClockServiceImpl
- All Implemented Interfaces:
- ClockService, ConfigurableComponent, ClockSyncListener
public class ClockServiceImpl
- extends Object
- implements ConfigurableComponent, ClockService, ClockSyncListener
Method Summary |
protected void |
activate(org.osgi.service.component.ComponentContext componentContext,
Map<String,Object> properties)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
Date |
getLastSync()
Returns a Date denoting when the clock was synchronized last. |
void |
onClockUpdate(long offset)
Called by the current ClockSyncProvider after each Clock synchronization |
void |
setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
updated(Map<String,Object> properties)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClockServiceImpl
public ClockServiceImpl()
setEventAdmin
public void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
unsetEventAdmin
public void unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
activate
protected void activate(org.osgi.service.component.ComponentContext componentContext,
Map<String,Object> properties)
deactivate
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
updated
public void updated(Map<String,Object> properties)
getLastSync
public Date getLastSync()
throws EsfException
- Description copied from interface:
ClockService
- Returns a Date denoting when the clock was synchronized last. If the clock has
not yet synchronized since ESF started, null is returned.
- Specified by:
getLastSync
in interface ClockService
- Returns:
- Date that the clock was last synchronized, null if not synchronized yet.
- Throws:
EsfException
onClockUpdate
public void onClockUpdate(long offset)
- Called by the current ClockSyncProvider after each Clock synchronization
- Specified by:
onClockUpdate
in interface ClockSyncListener
Copyright © 2013. All Rights Reserved.