public void create() throws Exception { partition.registerRPCHandler(domainName, this); }
/** * Register itself as RPC-Handler to the HA-Partition * and add the farm deployment directory to the scanner */ protected void startService() throws Exception { if (mPartition == null) { throw new IllegalStateException(HAPartition.class.getSimpleName() + " is null; must inject a " + HAPartition.class.getSimpleName()); } mPartition.registerRPCHandler(SERVICE_NAME, this); log.debug("registered RPCHandler"); }
public void init() throws Exception { this.partition.registerRPCHandler(this.sessionStateIdentifier, this); this.partition.subscribeToStateTransferEvents(HA_SESSION_STATE_STATE_TRANSFER, this); }
public void init() { log.debug("HAJNDI registering RPC Handler with HAPartition"); this.partition.registerRPCHandler("HAJNDI", this.rpcHandler); this.distributedTreeManager.init(); }
public void createService() throws Exception { if (this.partition == null) { throw new IllegalStateException("HAPartition property must be set before creating DistributedReplicantManager service"); } this.log.debug("registerRPCHandler"); this.partition.registerRPCHandler(SERVICE_NAME, this); this.log.debug("subscribeToStateTransferEvents"); this.partition.subscribeToStateTransferEvents(SERVICE_NAME, this); this.log.debug("registerMembershipListener"); this.partition.registerMembershipListener(this); }
protected void registerRPCHandler() { String key = this.getHAServiceKey(); if (this.isRegisterThreadContextClassLoader()) { this.partition.registerRPCHandler(key, this.getRpcHandler(), Thread.currentThread().getContextClassLoader()); } else { this.partition.registerRPCHandler(key, this.getRpcHandler()); } }
public void create() throws Exception { this.partition = findHAPartitionWithName(partitionName); //REVISIT: doesn't really buy us anything until JGroups synchronizes // initial state correctly //partition.subscribeToStateTransferEvents(cacheName, this); //REVISIT AGAIN: Actually I talked to Bela about this. I can change the //Clustering framework to do state transfer correctly partition.registerRPCHandler(cacheName, this); synchManager = new DistributedSynchronizationManager(cacheName, null, partition); versionManager = new DistributedVersionManager(lockTimeout, synchManager); synchManager.versionManager = versionManager; synchManager.create(); }
@Override public void startService() throws Exception { if (this.partition == null) throw new IllegalStateException("HAPartition property must be set before starting InvalidationBridge service"); this.RPC_HANDLER_NAME = "DCacheBridge-" + this.bridgeName; DistributedReplicantManager drm = this.partition.getDistributedReplicantManager(); DistributedState ds = this.partition.getDistributedStateService(); drm.add(this.RPC_HANDLER_NAME, ""); drm.registerListener(this.RPC_HANDLER_NAME, this); ds.registerDSListenerEx(this.RPC_HANDLER_NAME, this); this.partition.registerRPCHandler(this.RPC_HANDLER_NAME, this); // we now publish the list of caches we have access to if (this.invalMgr == null) { throw new IllegalStateException("Failed to find an InvalidationManagerMBean, ensure one is injected"); } this.publishLocalInvalidationGroups(); this.updatedBridgedInvalidationGroupsInfo(); this.invalidationSubscription = this.invalMgr.registerBridgeListener(this); }
this.partition.registerRPCHandler(getServiceHAName(), rpcTarget);
/** * Bring the service into active operation. * * @throws Exception */ public void start() throws Exception { partition.registerRPCHandler(getServiceHAName(), rpcTarget); DistributedReplicantManager drm = partition.getDistributedReplicantManager(); drm.add(getServiceHAName(), partition.getClusterNode()); coordinator = drm.isMasterReplica(getServiceHAName()); drm.registerListener(getServiceHAName(), drmListener); statusCheck(); }