public class HeartBeat extends Object implements LicenseService.LicenseChangeHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
HeartBeat.HeartBeatJob
The scheduler job responsible for triggering a heartbeat on a regular basis.
|
| Constructor and Description |
|---|
HeartBeat(org.springframework.context.ApplicationContext context)
Initialises the heart beat service.
|
HeartBeat(org.springframework.context.ApplicationContext context,
Boolean testMode)
Initialises the heart beat service, potentially in test mode.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collectAndSendData()
Delegates data collection and sending to HBDataCollectorService.
|
boolean |
isEnabled() |
void |
onLicenseChange(LicenseDescriptor licenseDescriptor)
Listens for license changes.
|
void |
onLicenseFail()
License load failure resets the heartbeat back to the default state
|
public HeartBeat(org.springframework.context.ApplicationContext context)
context - the contextpublic HeartBeat(org.springframework.context.ApplicationContext context,
Boolean testMode)
public boolean isEnabled()
public void collectAndSendData()
public void onLicenseChange(LicenseDescriptor licenseDescriptor)
onLicenseChange in interface LicenseService.LicenseChangeHandlerlicenseDescriptor - the new license (never null)public void onLicenseFail()
onLicenseFail in interface LicenseService.LicenseChangeHandlerCopyright © 2005–2017 Alfresco Software. All rights reserved.