com.eurotech.framework.emulator.clock
Class ClockServiceImpl
java.lang.Object
com.eurotech.framework.emulator.clock.ClockServiceImpl
- All Implemented Interfaces:
- ClockService, ConfigurableComponent
public class ClockServiceImpl
- extends Object
- implements ConfigurableComponent, ClockService
Method Summary |
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
Date |
getLastSync()
Returns a Date denoting when the clock was synchronized last. |
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)
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
Copyright © 2013. All Rights Reserved.