|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.lock.server.LockServer
public class LockServer
Server for locking. It waits for LockRequest and processes them in a new thread. The new thread sends back a LockResponse. It uses UDP.
| Field Summary | |
|---|---|
static java.util.HashMap<java.lang.String,java.lang.Long> |
constMap
Map of location -> longest constancy expiration time. |
protected static long |
idCounter
counter for ids for locks and reservations |
static java.util.HashMap<java.lang.String,LockServerThread.LockServerRecord> |
lockMap
Map of location -> lock record. |
protected static java.lang.String |
lockServerConfigFilename
|
| Constructor Summary | |
|---|---|
LockServer()
Constructor with no arguments creates a server on default port. |
|
LockServer(int port)
Constructor with port argument creates a server on specified port |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.HashMap<java.lang.String,LockServerThread.LockServerRecord> lockMap
public static final java.util.HashMap<java.lang.String,java.lang.Long> constMap
protected static long idCounter
protected static java.lang.String lockServerConfigFilename
| Constructor Detail |
|---|
public LockServer()
throws java.lang.Exception
java.lang.Exception
public LockServer(int port)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||