org.objectweb.carol.jndi.registry

Class ManageableRegistry

Implemented Interfaces:
Registry

public class ManageableRegistry
extends java.lang.Object
implements Registry

Author:
riviereg Manageable Registry for Carol

Field Summary

static String
REGISTRY_MANAGER_NAME
static ObjID
id
static ManageableRegistry
manageableRegistry
static RegistryFireWall
readFirewall
Properties
regProps
Hashtable
remoteObjectTable
static boolean
verbose
static RegistryFireWall
writeFirewall

Constructor Summary

ManageableRegistry(int port)
ManageableRegistry(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)

Method Summary

void
addReadAllowAddress(InetAddress i)
remove a read forbiden adress
void
addReadForbidenAddress(InetAddress i)
add a read forbiden address
void
addWriteAllowAddress(InetAddress i)
remove a write forbiden adress
void
addWriteForbidenAddress(InetAddress i)
add a write forbiden address
void
allowReadAll()
Allow everybody read
void
allowWriteAll()
Allow everybody write
void
bind(String name, Remote obj)
static void
checkReadAccess(String name)
static void
checkWriteAccess()
static Registry
createManagableRegistry(int port)
void
forbidReadAll()
Forbid everybody read
void
forbidWriteAll()
Forbid everybody write
protected static String
getClientHost()
Method that should have come from sun.rmi.registry.RegistryImpl
static ObjID
getID()
boolean
isReadAllow(InetAddress i)
Tets if a InetAdress is allow to read
boolean
isReadAllowAll()
is read allow for all
boolean
isWriteAllow(InetAddress i)
Tets if a InetAdress is allow for writting
boolean
isWriteAllowAll()
is allow for all writer
String[]
list()
InetAddress[]
listReadAllowedAddress()
list read Allowed Adress
InetAddress[]
listReadForbidenAddress()
list read forbiden adress
InetAddress[]
listWriteAllowedAddress()
list write Allowed Adress
InetAddress[]
listWriteForbidenAddress()
list write forbiden adress
Remote
lookup(String name)
static void
main(args[] )
void
purge()
void
rebind(String name, Remote obj)
void
setVerbose(boolean v)
Set verbose
void
unbind(String name)

Field Details

REGISTRY_MANAGER_NAME

public static String REGISTRY_MANAGER_NAME


id

public static ObjID id


manageableRegistry

public static ManageableRegistry manageableRegistry


readFirewall

public static RegistryFireWall readFirewall


regProps

public Properties regProps


remoteObjectTable

public Hashtable remoteObjectTable


verbose

public static boolean verbose


writeFirewall

public static RegistryFireWall writeFirewall

Constructor Details

ManageableRegistry

public ManageableRegistry(int port)
            throws RemoteException


ManageableRegistry

public ManageableRegistry(int port,
                          RMIClientSocketFactory csf,
                          RMIServerSocketFactory ssf)
            throws RemoteException

Method Details

addReadAllowAddress

public void addReadAllowAddress(InetAddress i)
remove a read forbiden adress

Parameters:
i -


addReadForbidenAddress

public void addReadForbidenAddress(InetAddress i)
add a read forbiden address

Parameters:
i -


addWriteAllowAddress

public void addWriteAllowAddress(InetAddress i)
remove a write forbiden adress

Parameters:
i -


addWriteForbidenAddress

public void addWriteForbidenAddress(InetAddress i)
add a write forbiden address

Parameters:
i -


allowReadAll

public void allowReadAll()
Allow everybody read


allowWriteAll

public void allowWriteAll()
Allow everybody write


bind

public void bind(String name,
                 Remote obj)
            throws RemoteException,
                   AlreadyBoundException,
                   AccessException


checkReadAccess

public static void checkReadAccess(String name)
            throws AccessException


checkWriteAccess

public static void checkWriteAccess()
            throws AccessException


createManagableRegistry

public static Registry createManagableRegistry(int port)
            throws RemoteException


forbidReadAll

public void forbidReadAll()
Forbid everybody read


forbidWriteAll

public void forbidWriteAll()
Forbid everybody write


getClientHost

protected static String getClientHost()
            throws ServerNotActiveException
Method that should have come from sun.rmi.registry.RegistryImpl


getID

public static ObjID getID()


isReadAllow

public boolean isReadAllow(InetAddress i)
Tets if a InetAdress is allow to read

Parameters:
i -

Returns:


isReadAllowAll

public boolean isReadAllowAll()
is read allow for all

Returns:


isWriteAllow

public boolean isWriteAllow(InetAddress i)
Tets if a InetAdress is allow for writting

Parameters:
i -

Returns:


isWriteAllowAll

public boolean isWriteAllowAll()
is allow for all writer

Returns:


list

public String[] list()
            throws RemoteException


listReadAllowedAddress

public InetAddress[] listReadAllowedAddress()
list read Allowed Adress

Returns:


listReadForbidenAddress

public InetAddress[] listReadForbidenAddress()
list read forbiden adress

Returns:


listWriteAllowedAddress

public InetAddress[] listWriteAllowedAddress()
list write Allowed Adress

Returns:


listWriteForbidenAddress

public InetAddress[] listWriteForbidenAddress()
list write forbiden adress

Returns:


lookup

public Remote lookup(String name)
            throws RemoteException,
                   NotBoundException


main

public static void main(args[] )


purge

public void purge()


rebind

public void rebind(String name,
                   Remote obj)
            throws RemoteException,
                   AccessException


setVerbose

public void setVerbose(boolean v)
Set verbose


unbind

public void unbind(String name)
            throws RemoteException,
                   NotBoundException,
                   AccessException