1 19 package org.objectweb.carol.cmi; 20 21 import java.rmi.NoSuchObjectException ; 22 23 import org.objectweb.carol.util.configuration.TraceCarol; 24 25 29 public final class ClusterRegistryKiller { 30 33 private ClusterRegistryImpl impl; 34 35 38 private int port; 39 40 44 ClusterRegistryKiller( 45 ClusterRegistryImpl impl, 46 int port) { 47 this.impl = impl; 48 this.port = port; 49 } 50 51 55 public synchronized void stop() throws NoSuchObjectException { 56 if (TraceCarol.isDebugCmiRegistry()) { 57 TraceCarol.debugCmiRegistry("killer is stopping registry on port " + port); 58 } 59 LowerOrb.unexportObject(impl); 60 impl = null; 61 } 62 } 63 | Popular Tags |