|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.protection.pub.pro.lserver.BasicLicensingServiceProvider.LicensingServiceProxy
protected class BasicLicensingServiceProvider.LicensingServiceProxy
Field Summary | |
---|---|
protected java.util.Map |
fConfirmLicenseLockTimeMap
|
protected java.util.Map |
fErrorMessageMap
|
protected LicensingService |
fLicensingService
|
protected java.util.Set |
fNeedNotifySet
|
protected long |
fTimeout
|
Fields inherited from interface com.jp.protection.pub.pro.lserver.LicensingService |
---|
ATTR_AVAILABLE_PROCESSORS, ATTR_CURRENT_LICENSE_DIGEST, ATTR_GLOBAL_IP_ADDRESS, ATTR_HOST_NAME, ATTR_INSTALL_ID, ATTR_IP_ADDRESS, ATTR_JAVA_VERSION, ATTR_LOGIN, ATTR_MAC_ADDRESS, ATTR_MAC_ADDRESSES, ATTR_PASSWORD, ATTR_TOTAL_MEMORY, ATTR_URL, ATTR_USER_NAME, ATTR_VENDOR_ID |
Constructor Summary | |
---|---|
BasicLicensingServiceProvider.LicensingServiceProxy(LicensingService aLicensingService)
|
Method Summary | |
---|---|
LicensingServiceResult |
canLockLicense(LicenseData.Request aRequest,
java.util.Map anAttributes)
Query the Licensing Server to check whether the license lock can be acquired |
LicensingServiceResult.CheckoutResult |
checkoutLicense(java.lang.String aTicket,
java.util.Map anAttributes)
Check outs the license to allow offline use |
LicensingServiceResult |
confirmLicenseLock(java.lang.String aTicket,
java.util.Map anAttributes)
Notifies the Licensing Server that the license lock is still in use |
java.lang.String |
getErrorMessage(java.lang.String aTicket)
|
LicensingServiceResult.LicenseResult |
getLicense(LicenseData.Request aRequest,
java.util.Map anAttributes)
Obtains a license from the Licensing Server |
LicensingService |
getLicensingService()
|
long |
getTimeout()
Returns license session timeout value |
boolean |
isExpired(java.lang.String aTicket)
|
boolean |
isNeedNotify(java.lang.String aTicket)
|
protected void |
licenseLockConfirmed(java.lang.String aTicket)
|
LicensingServiceResult |
lockLicense(LicenseData.Request aRequest,
java.util.Map anAttributes)
Acquires license lock using the Licensing Server |
void |
setErrorMessage(java.lang.String aTicket,
java.lang.String aMessage)
|
void |
setNeedNotify(java.lang.String aTicket,
boolean aNeedNotify)
|
LicensingServiceResult |
unlockLicense(java.lang.String aTicket,
java.util.Map anAttributes)
Releases the license lock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LicensingService fLicensingService
protected long fTimeout
protected java.util.Map fConfirmLicenseLockTimeMap
protected java.util.Map fErrorMessageMap
protected java.util.Set fNeedNotifySet
Constructor Detail |
---|
public BasicLicensingServiceProvider.LicensingServiceProxy(LicensingService aLicensingService)
Method Detail |
---|
public LicensingService getLicensingService()
public LicensingServiceResult.LicenseResult getLicense(LicenseData.Request aRequest, java.util.Map anAttributes)
LicensingService
getLicense
in interface LicensingService
aRequest
- request which identifies license to getanAttributes
- attributes (identified by ATTR_
keys) which describe client environment.
public LicensingServiceResult lockLicense(LicenseData.Request aRequest, java.util.Map anAttributes)
LicensingService
lockLicense
in interface LicensingService
aRequest
- request which identifies license to acquire lock foranAttributes
- attributes (identified by ATTR_
keys) which describe client environment.
public LicensingServiceResult canLockLicense(LicenseData.Request aRequest, java.util.Map anAttributes)
LicensingService
canLockLicense
in interface LicensingService
aRequest
- request which identifies license to acquire lock foranAttributes
- attributes (identified by ATTR_
keys) which describe client environment.
public boolean isExpired(java.lang.String aTicket)
protected void licenseLockConfirmed(java.lang.String aTicket)
public LicensingServiceResult confirmLicenseLock(java.lang.String aTicket, java.util.Map anAttributes)
LicensingService
confirmLicenseLock
in interface LicensingService
aTicket
- ticket unique identifies the license session for the lockanAttributes
- attributes (identified by ATTR_
keys) which describe client environment.
public LicensingServiceResult unlockLicense(java.lang.String aTicket, java.util.Map anAttributes)
LicensingService
unlockLicense
in interface LicensingService
aTicket
- ticket unique identifies the license session for the lockanAttributes
- attributes (identified by ATTR_
keys) which describe client environment.
public long getTimeout()
TimeoutHolder
getTimeout
in interface TimeoutHolder
public java.lang.String getErrorMessage(java.lang.String aTicket)
public void setErrorMessage(java.lang.String aTicket, java.lang.String aMessage)
public void setNeedNotify(java.lang.String aTicket, boolean aNeedNotify)
public boolean isNeedNotify(java.lang.String aTicket)
public LicensingServiceResult.CheckoutResult checkoutLicense(java.lang.String aTicket, java.util.Map anAttributes)
LicensingService
checkoutLicense
in interface LicensingService
aTicket
- ticket unique identifies the license session to checkoutanAttributes
- attributes (identified by ATTR_
keys) which describe client environment.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |