public void init() throws Exception { this.partition.registerRPCHandler(this.sessionStateIdentifier, this); this.partition.subscribeToStateTransferEvents(HA_SESSION_STATE_STATE_TRANSFER, this); }
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); }