public class RmiSharedLockImpl extends UnicastRemoteObject implements RmiSharedLock
Requires a thread name to distinguish a non-hydra thread from a hydra thread with the same logical VM id, in case the enumerative JDK 1.5 thread ids and the logical hydra thread ids overlap (which is highly likely).
ref| Constructor and Description |
|---|
RmiSharedLockImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
bind(String name,
RmiSharedLock value) |
RmiSharedCondition |
getCondition(String name)
Implements
RmiSharedLock.getCondition(String). |
void |
lock(String name,
int vmid,
long tid)
Implements
RmiSharedLock.lock(String,int,long). |
protected static RmiSharedLock |
lookup(String name) |
void |
unlock(String name,
int vmid,
long tid)
Implements
RmiSharedLock.unlock(String,int,long). |
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic RmiSharedLockImpl()
throws RemoteException
RemoteExceptionprotected static void bind(String name, RmiSharedLock value)
protected static RmiSharedLock lookup(String name) throws RemoteException
RemoteExceptionpublic void lock(String name, int vmid, long tid) throws RemoteException
RmiSharedLock.lock(String,int,long).lock in interface RmiSharedLockRemoteExceptionpublic void unlock(String name, int vmid, long tid) throws RemoteException
RmiSharedLock.unlock(String,int,long).unlock in interface RmiSharedLockRemoteExceptionpublic RmiSharedCondition getCondition(String name) throws RemoteException
RmiSharedLock.getCondition(String).getCondition in interface RmiSharedLockRemoteExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.