|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.bbdsoft.LicenseEnforcer.UDPLicenseSentry
Implementation of BBDLicenseHandler interface based on UDP protocol.
Using UDP broadcast it checks if there are more instances of user applications with the same license hash running on LAN. Then it signals user application (using BBDLicenseHandler interface) if there is no more license for it to run.
BBDLicenseHandler| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
UDPLicenseSentry()
|
|
| Method Summary | |
protected void |
createSocket()
|
void |
run()
|
protected boolean |
sendLicense()
|
void |
setLicenseHandler(BBDLicenseHandler inLicenseHandler)
Registers BBDLicenseHandler. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, yield, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UDPLicenseSentry()
| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void setLicenseHandler(BBDLicenseHandler inLicenseHandler)
setLicenseHandler in interface BBDLicenseSentryBBDLicenseHandlerprotected void createSocket()
protected boolean sendLicense()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||