|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrunx.license.LicenseService
The JRun 4.0 License Manager Service. The license manager acts as a proxy to the actual license implementation, depending upon the type of license (JRun 4.0, 3.0, 2.3)
| Fields inherited from interface jrunx.license.LicenseServiceMBean |
RESTRICTED_CONCURRENCY, UNLIMITED_CONCURRENCY, UNLIMITED_EXPIRATION |
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Constructor Summary | |
LicenseService()
|
|
| Method Summary | |
java.lang.String |
getEdition()
Returns the human readable description of the product edition |
int |
getEvalDays()
Gets the number of days of the evaluation period, or 0 if this is not an evaluation license |
long |
getEvalDaysLeft()
Gets the number of days left in the evaluation period |
java.util.Date |
getExpirationDate()
Gets the date when this key will expire, or UNLIMITED_EXPIRATION if the key does not expire. |
java.lang.String |
getLastWarningMessage()
Gets the last warning message generated. |
long |
getLicenseEvaluation()
Gets the license evaluation code for the server |
java.lang.String |
getLicenseKey()
Gets the curent license key |
java.lang.String |
getLicenseType()
Gets the license type description |
int |
getMajorVersion()
Returns the major version number of JRun, such as 4 |
int |
getMaxConcurrency()
Returns the maximum number of concurrent connections allowed for the current license key. |
java.lang.String |
getPreviousLicenseKey()
Gets the old JRun 3.1 license key for the server |
void |
init()
|
boolean |
isEJBEnabled()
Determines if the license supports EJB deployment |
boolean |
isExpired()
Determines whether the current license has expired |
boolean |
isPurchased()
Determines whether the current license is a purchased version |
boolean |
isSingleIP()
Determines if the license only supports access from a single IP |
boolean |
isUpgrade()
Determines whether the current license is an upgrade from a previous product |
boolean |
isValid()
Determines if the current license key is valid (internal checksums, etc). |
void |
preDeregister()
|
void |
setLicenseEvaluation(long evalCode)
Sets the license evaluation code for the server |
void |
setLicenseKey(java.lang.String key)
Sets the current license key for the server |
void |
setPreviousLicenseKey(java.lang.String key)
Sets the old JRun 3.1 license key for the server |
void |
updateLicenseFile()
Updates the license file with the license information stored in the service |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
destroy, getStatus, start, stop, updateStatus |
| Constructor Detail |
public LicenseService()
| Method Detail |
public java.lang.String getLicenseKey()
LicenseServiceMBeangetLicenseKey in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic void setLicenseKey(java.lang.String key)
LicenseServiceMBeansetLicenseKey in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeankey - The license keypublic long getLicenseEvaluation()
LicenseServiceMBeangetLicenseEvaluation in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic void setLicenseEvaluation(long evalCode)
LicenseServiceMBeansetLicenseEvaluation in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanevalCode - The evaluation codepublic java.lang.String getPreviousLicenseKey()
LicenseServiceMBeangetPreviousLicenseKey in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic void setPreviousLicenseKey(java.lang.String key)
LicenseServiceMBeansetPreviousLicenseKey in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeankey - The license key
public void updateLicenseFile()
throws java.lang.Exception
LicenseServiceMBeanupdateLicenseFile in interface LicenseServiceMBean
public void init()
throws java.lang.Exception
init in interface Servicepublic int getMaxConcurrency()
LicenseServiceMBeangetMaxConcurrency in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic boolean isEJBEnabled()
LicenseServiceMBeanisEJBEnabled in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic boolean isSingleIP()
LicenseServiceMBeanisSingleIP in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic boolean isValid()
LicenseServiceMBeanisValid in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic int getMajorVersion()
LicenseServiceMBeangetMajorVersion in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic java.util.Date getExpirationDate()
LicenseServiceMBeangetExpirationDate in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic int getEvalDays()
LicenseServiceMBeangetEvalDays in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic long getEvalDaysLeft()
LicenseServiceMBeangetEvalDaysLeft in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic boolean isExpired()
LicenseServiceMBeanisExpired in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic boolean isPurchased()
LicenseServiceMBeanisPurchased in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic java.lang.String getEdition()
LicenseServiceMBeangetEdition in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic boolean isUpgrade()
LicenseServiceMBeanisUpgrade in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic java.lang.String getLicenseType()
LicenseServiceMBeangetLicenseType in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBeanpublic java.lang.String getLastWarningMessage()
LicenseServiceMBeangetLastWarningMessage in interface LicenseServiceMBeanjrunx.license.LicenseServiceMBean
public void preDeregister()
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||