org.objectweb.perseus.concurrency.distributed.globallock.lib
Class BasicGlobalLockManager
java.lang.Object
org.objectweb.perseus.concurrency.distributed.globallock.lib.BasicGlobalLockManager
- All Implemented Interfaces:
- GlobalLockManager
- public class BasicGlobalLockManager
- extends java.lang.Object
- implements GlobalLockManager
Copyright (C) 2003-2004
- France Telecom R&D
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Release: 1.0
Authors: olivier.lobry@francetelecom.com
Date: 2 juin 2004
Time: 17:56:43
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVICE_MGR_BINDING
public static final java.lang.String SERVICE_MGR_BINDING
- See Also:
- Constant Field Values
COORD_FACTORY_BINDING
public static final java.lang.String COORD_FACTORY_BINDING
- See Also:
- Constant Field Values
drsm
protected DistResServiceManager drsm
drcf
protected DistResCoordinatorFactory drcf
state
protected java.lang.String state
drus
protected DistResUserService drus
globalLocks
protected java.util.Map globalLocks
nodeId
protected java.io.Serializable nodeId
BasicGlobalLockManager
public BasicGlobalLockManager()
listFc
public java.lang.String[] listFc()
lookupFc
public java.lang.Object lookupFc(java.lang.String s)
throws NoSuchInterfaceException
- Throws:
NoSuchInterfaceException
bindFc
public void bindFc(java.lang.String s,
java.lang.Object o)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
- Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
unbindFc
public void unbindFc(java.lang.String s)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
- Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
getFcState
public java.lang.String getFcState()
startFc
public void startFc()
throws IllegalLifeCycleException
- Throws:
IllegalLifeCycleException
stopFc
public void stopFc()
throws IllegalLifeCycleException
- Throws:
IllegalLifeCycleException
getGlobalLock
public GlobalLock getGlobalLock(java.io.Serializable oid,
boolean create)
throws GlobalLockException
- Specified by:
getGlobalLock
in interface GlobalLockManager
- Throws:
GlobalLockException
createLock
protected GlobalLock createLock(java.io.Serializable oid)
joinUsers
protected void joinUsers(java.io.Serializable oid)
throws GlobalLockException
- Throws:
GlobalLockException
getNodeId
public java.lang.Object getNodeId()
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.