Package com.alibaba.wasp.master

Examples of com.alibaba.wasp.master.MasterProtocol


          throw new MasterNotRunningException(msg);
        }

        InetSocketAddress isa = new InetSocketAddress(sn.getHostname(),
            sn.getPort());
        MasterProtocol tryMaster = (MasterProtocol) WaspRPC.getProxy(
            masterProtocolState.protocolClass, masterProtocolState.version,
            isa, this.conf, this.rpcTimeout);

        if (tryMaster.isMasterRunning(null,
            RequestConverter.buildIsMasterRunningRequest())
            .getIsMasterRunning()) {
          return tryMaster;
        } else {
          WaspRPC.stopProxy(tryMaster);
View Full Code Here


      // The lock must be at the beginning to prevent multiple master creation
      // (and leaks) in a multithread context
      synchronized (this.masterAndZKLock) {
        Exception exceptionCaught = null;
        MasterProtocol master = null;
        int tries = 0;
        while (!this.closed && master == null) {
          tries++;
          try {
            master = createMasterInterface(masterProtocolState);
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.master.MasterProtocol

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.