|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.horde.license.LicenseMonitorServiceImpl
public class LicenseMonitorServiceImpl
The purpose of this service is to monitor the License File in OnDemand to watch for changes.
Constructor Summary | |
---|---|
LicenseMonitorServiceImpl()
|
Method Summary | |
---|---|
void |
forceNotification()
Force all the listeners to be notified of the last license change event. |
com.google.common.base.Optional<LicenseChangedEvent> |
getLastChangedEvent()
Gets the last license changed event that was sent. |
void |
registerListener(LicenseChangeListener licenseChangeListener)
Add a listener to be notified of changes to the license. |
void |
setListeners(List<LicenseChangeListener> listeners)
|
void |
startMonitoring()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LicenseMonitorServiceImpl()
Method Detail |
---|
public void startMonitoring()
public void setListeners(List<LicenseChangeListener> listeners)
public com.google.common.base.Optional<LicenseChangedEvent> getLastChangedEvent()
LicenseMonitorService
getLastChangedEvent
in interface LicenseMonitorService
public void registerListener(LicenseChangeListener licenseChangeListener)
LicenseMonitorService
LicenseChangedEvent
. Your listener
should be able to handle that correctly.
registerListener
in interface LicenseMonitorService
licenseChangeListener
- An implementation of the listener interface. It will be called upon license change though there may be a delay.public void forceNotification()
LicenseMonitorService
forceNotification
in interface LicenseMonitorService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |