public void shutdown() { log.debug("HAJNDI unregistering RPCHandler with HAPartition"); this.partition.unregisterRPCHandler("HAJNDI", this.rpcHandler); this.distributedTreeManager.shutdown(); }
public void destroy() throws Exception { // Remove ref to ourself from HAPartition this.partition.unregisterRPCHandler(this.sessionStateIdentifier, this); this.partition.unsubscribeFromStateTransferEvents(HA_SESSION_STATE_STATE_TRANSFER, this); }
protected void unregisterRPCHandler() { this.partition.unregisterRPCHandler(this.getHAServiceKey(), this.getRpcHandler()); }
public void destroyService() throws Exception { // we cleanly shutdown. This should be optimized. for (String key: this.localReplicants.keySet()) { this.removeLocal(key); // channel is disconnected, so don't try to notify cluster } if (this.partition != null) { this.partition.unregisterRPCHandler(SERVICE_NAME, this); this.partition.unsubscribeFromStateTransferEvents(SERVICE_NAME, this); this.partition.unregisterMembershipListener(this); } }
/** * Remove the service from active operation. * * @throws Exception */ public void stop() throws Exception { DistributedReplicantManager drm = partition.getDistributedReplicantManager(); drm.unregisterListener(getServiceHAName(), drmListener); drm.remove(getServiceHAName()); coordinator = false; partition.unregisterRPCHandler(getServiceHAName(), rpcTarget); synchronized (liveServers) { liveServers.clear(); } synchronized (unresolvedRemoteDependencies) { unresolvedRemoteDependencies.clear(); } }
@Override public void stopService() { DistributedReplicantManager drm = this.partition.getDistributedReplicantManager(); DistributedState ds = this.partition.getDistributedStateService(); try { this.partition.unregisterRPCHandler(this.RPC_HANDLER_NAME, this); ds.unregisterDSListenerEx(this.RPC_HANDLER_NAME, this); drm.unregisterListener(this.RPC_HANDLER_NAME, this); drm.remove(this.RPC_HANDLER_NAME); this.invalidationSubscription.unregister(); ds.remove(this.RPC_HANDLER_NAME, this.partition.getNodeName(), true); // this.invalMgr = null; // partition = null; this.invalidationSubscription = null; this.RPC_HANDLER_NAME = null; this.localGroups = null; this.bridgedGroups = new Vector<String>(); } catch (Exception e) { this.log.info("Problem while shuting down invalidation cache bridge", e); } }
public void shutdown() throws Exception { DistributedReplicantManager drm = this.partition.getDistributedReplicantManager(); drm.unregisterListener(getServiceHAName(), drmListener); drm.remove(getServiceHAName()); this.partition.unregisterRPCHandler(getServiceHAName(), rpcTarget); this.lockSupport.stop(); this.contentManager = null; this.initialized = false; }