org.objectweb.carol.cmi

Class ClusterRegistryImpl

Implemented Interfaces:
ClusterRegistryInternal, Remote

public final class ClusterRegistryImpl
extends java.lang.Object
implements ClusterRegistryInternal

Field Summary

static String
REG_PREFIX

Fields inherited from interface org.objectweb.carol.cmi.ClusterRegistryInternal

CLUSTERED, NOT_CLUSTERED

Method Summary

void
bindCluster(String n, byte[] obj)
void
bindSingle(String n, Remote obj)
String[]
list()
Object
lookup(String n)
static void
main(args[] )
void
rebindCluster(String n, byte[] obj)
void
rebindSingle(String n, Remote obj)
static ClusterRegistryKiller
start(int port)
void
test()
void
unbind(String n)

Field Details

REG_PREFIX

public static final String REG_PREFIX

Method Details

bindCluster

public void bindCluster(String n,
                        byte[] obj)
            throws AlreadyBoundException,
                   RemoteException
Specified by:
bindCluster in interface ClusterRegistryInternal


bindSingle

public void bindSingle(String n,
                       Remote obj)
            throws AlreadyBoundException,
                   RemoteException
Specified by:
bindSingle in interface ClusterRegistryInternal


list

public String[] list()
            throws RemoteException
Specified by:
list in interface ClusterRegistryInternal


lookup

public Object lookup(String n)
            throws NotBoundException,
                   RemoteException
Specified by:
lookup in interface ClusterRegistryInternal


main

public static void main(args[] )
            throws Exception


rebindCluster

public void rebindCluster(String n,
                          byte[] obj)
            throws RemoteException
Specified by:
rebindCluster in interface ClusterRegistryInternal


rebindSingle

public void rebindSingle(String n,
                         Remote obj)
            throws RemoteException
Specified by:
rebindSingle in interface ClusterRegistryInternal


start

public static ClusterRegistryKiller start(int port)
            throws RemoteException


test

public void test()
            throws RemoteException
Specified by:
test in interface ClusterRegistryInternal


unbind

public void unbind(String n)
            throws NotBoundException,
                   RemoteException
Specified by:
unbind in interface ClusterRegistryInternal