org.objectweb.perseus.concurrency.distributed.globallock.lib

Class BasicGlobalLockManager

Implemented Interfaces:
BindingController, GlobalLockManager, LifeCycleController

public class BasicGlobalLockManager
extends java.lang.Object
implements GlobalLockManager, BindingController, LifeCycleController

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

Field Summary

static String
COORD_FACTORY_BINDING
static String
SERVICE_MGR_BINDING
protected DistResCoordinatorFactory
drcf
protected DistResServiceManager
drsm
protected DistResUserService
drus
protected Map
globalLocks
protected Serializable
nodeId
protected String
state

Constructor Summary

BasicGlobalLockManager()

Method Summary

void
bindFc(String s, Object o)
protected GlobalLock
createLock(Serializable oid)
String
getFcState()
GlobalLock
getGlobalLock(Serializable oid, boolean create)
Object
getNodeId()
protected void
joinUsers(Serializable oid)
String[]
listFc()
Object
lookupFc(String s)
void
startFc()
void
stopFc()
void
unbindFc(String s)

Field Details

COORD_FACTORY_BINDING

public static final String COORD_FACTORY_BINDING


SERVICE_MGR_BINDING

public static final String SERVICE_MGR_BINDING


drcf

protected DistResCoordinatorFactory drcf


drsm

protected DistResServiceManager drsm


drus

protected DistResUserService drus


globalLocks

protected Map globalLocks


nodeId

protected Serializable nodeId


state

protected String state

Constructor Details

BasicGlobalLockManager

public BasicGlobalLockManager()

Method Details

bindFc

public void bindFc(String s,
                   Object o)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException


createLock

protected GlobalLock createLock(Serializable oid)


getFcState

public String getFcState()


getGlobalLock

public GlobalLock getGlobalLock(Serializable oid,
                                boolean create)
            throws GlobalLockException
Specified by:
getGlobalLock in interface GlobalLockManager


getNodeId

public Object getNodeId()


joinUsers

protected void joinUsers(Serializable oid)
            throws GlobalLockException


listFc

public String[] listFc()


lookupFc

public Object lookupFc(String s)
            throws NoSuchInterfaceException


startFc

public void startFc()
            throws IllegalLifeCycleException


stopFc

public void stopFc()
            throws IllegalLifeCycleException


unbindFc

public void unbindFc(String s)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.