public interface LicenceManager extends ADEPT2Service
The licence information is retrieved from an external source when starting this licence manager.
| Modifier and Type | Field and Description |
|---|---|
static long |
DAY
The amount of milliseconds for one day.
|
static java.util.Locale |
DEF_LOCALE
The default locale used for all licensing issues.
|
static long |
HOUR
The amount of milliseconds for one hour.
|
static long |
MAXIMUM_TIMESHIFT_ALLOWED
The amount of time the system clock may be adjusted backwards without being
logged as violation.
|
static long |
MINUTE
The amount of milliseconds for one minute.
|
static long |
SECOND
The amount of milliseconds for one second.
|
static int |
TRANSACTION_TRACKING_DAYS
The amount of days transactions are tracked.
|
static java.util.TimeZone |
UTC_TZ
The UTC-time zone used for all licensing issues.
|
static java.lang.String |
VIOLATION_KNOWN_USER_LIMIT_END
The event indicating that the violation of the known user limit has been
ended (or has not started yet).
|
static java.lang.String |
VIOLATION_KNOWN_USER_LIMIT_START
The event indicating that the violation of the known user limit has been
started.
|
static java.lang.String |
VIOLATION_TIME_INCONSISTENCY
The event indicating that a time inconsistency has occurred.
|
static java.lang.String |
VIOLATION_TRANSACTION_LIMIT
The event indicating that the transaction limit has been violated.
|
static java.lang.String |
VIOLATION_USING_USER_LIMIT_END
The event indicating that the violation of the using user limit has been
ended.
|
static java.lang.String |
VIOLATION_USING_USER_LIMIT_START
The event indicating that the violation of the using user limit has been
started.
|
| Modifier and Type | Method and Description |
|---|---|
LicenceInformation |
getLicenceInformation(SessionToken session)
Gets the licence information that applies to the server and all of its
services as well as the clients.
|
long |
getUTCMidnight(long now)
Gets the time (in milliseconds) of midnight UTC of the day specified by the
designated time (in milliseconds).
|
boolean |
logViolation(SessionToken session,
java.lang.String violationType,
long violationValue)
Logs violations of the designated type with the designated value, for
instance the number of users concurrently logged on.
|
void |
setViolationShutdown(SessionToken session,
ADEPT2Service shutdownService)
Sets the designated service to be the one to be shut down in case of severe
licence violations.
|
getLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, startstatic final long SECOND
static final long MINUTE
static final long HOUR
static final long DAY
static final int TRANSACTION_TRACKING_DAYS
static final long MAXIMUM_TIMESHIFT_ALLOWED
static final java.util.TimeZone UTC_TZ
static final java.util.Locale DEF_LOCALE
static final java.lang.String VIOLATION_KNOWN_USER_LIMIT_START
static final java.lang.String VIOLATION_KNOWN_USER_LIMIT_END
static final java.lang.String VIOLATION_USING_USER_LIMIT_START
static final java.lang.String VIOLATION_USING_USER_LIMIT_END
static final java.lang.String VIOLATION_TRANSACTION_LIMIT
static final java.lang.String VIOLATION_TIME_INCONSISTENCY
LicenceInformation getLicenceInformation(SessionToken session)
session - The session which is used to check for access rights on this
method.boolean logViolation(SessionToken session, java.lang.String violationType, long violationValue)
session - The session which is used to check for access rights on this
method and to retrieve the logging component.violationType - The type of the violation to be logged.violationValue - A value for the designated violation type for
instance the number users concurrently logged on.long getUTCMidnight(long now)
now - The time in milliseconds of which to retrieve the corresponding
previous midnight time UTC.void setViolationShutdown(SessionToken session, ADEPT2Service shutdownService)
session - The session which is used to check for access rights on this
method and to retrieve the setting component.shutdownService - The service to be shut down as soon as this licence
manager detects a severe licence violation.