Tabnine Logo
ClusterControllerInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
ClusterControllerInfo
in
org.apache.hyracks.api.client.impl

Best Java code snippets using org.apache.hyracks.api.client.impl.ClusterControllerInfo (Showing top 7 results out of 315)

origin: apache/asterixdb

public static Scheduler initializeHDFSScheduler(ICCServiceContext serviceCtx) throws HyracksDataException {
  ICCContext ccContext = serviceCtx.getCCContext();
  Scheduler scheduler = null;
  try {
    scheduler = new Scheduler(ccContext.getClusterControllerInfo().getClientNetAddress(),
        ccContext.getClusterControllerInfo().getClientNetPort());
  } catch (HyracksException e) {
    throw new RuntimeDataException(ErrorCode.UTIL_HDFS_UTILS_CANNOT_OBTAIN_HDFS_SCHEDULER);
  }
  return scheduler;
}
origin: apache/asterixdb

private CcConnection getPendingNodeRegistration(NodeParameters nodeParameters) {
  CcConnection ccConnection = pendingRegistrations.remove(nodeParameters.getRegistrationId());
  if (ccConnection == null) {
    throw new IllegalStateException("Unknown pending node registration " + nodeParameters.getRegistrationId()
        + " for " + nodeParameters.getClusterControllerInfo().getCcId());
  }
  return ccConnection;
}
origin: apache/asterixdb

int slashIndex = jar.lastIndexOf('/');
String fileName = jar.substring(slashIndex + 1);
String url = "http://" + ccHost + ":" + ccInfo.getWebPort() + "/applications/"
    + deploymentId.toString() + "&" + fileName;
HttpPut put = new HttpPut(url);
origin: apache/asterixdb

@Override
public void start() throws Exception {
  LOGGER.log(Level.INFO, "Starting ClusterControllerService: " + this);
  serverCtx = new ServerContext(ServerContext.ServerType.CLUSTER_CONTROLLER, new File(ccConfig.getRootDir()));
  IIPCI ccIPCI = new ClusterControllerIPCI(this);
  clusterIPC = new IPCSystem(new InetSocketAddress(ccConfig.getClusterListenPort()),
      networkSecurityManager.getSocketChannelFactory(), ccIPCI, new CCNCFunctions.SerializerDeserializer());
  IIPCI ciIPCI = new ClientInterfaceIPCI(this, jobIdFactory);
  clientIPC =
      new IPCSystem(new InetSocketAddress(ccConfig.getClientListenAddress(), ccConfig.getClientListenPort()),
          networkSecurityManager.getSocketChannelFactory(), ciIPCI,
          new JavaSerializationBasedPayloadSerializerDeserializer());
  webServer = new WebServer(this, ccConfig.getConsoleListenPort());
  clusterIPC.start();
  clientIPC.start();
  webServer.start();
  info = new ClusterControllerInfo(ccId, ccConfig.getClientPublicAddress(), ccConfig.getClientPublicPort(),
      ccConfig.getConsolePublicPort());
  timer.schedule(sweeper, 0, ccConfig.getDeadNodeSweepThreshold());
  jobLog.open();
  startApplication();
  resultDirectoryService.init(executor);
  workQueue.start();
  connectNCs();
  LOGGER.log(Level.INFO, "Started ClusterControllerService");
  notifyApplication();
}
origin: apache/asterixdb

@Override
public IHyracksClientConnection getHcc() throws HyracksDataException {
  if (hcc == null || !hcc.isConnected()) {
    synchronized (this) {
      if (hcc == null || !hcc.isConnected()) {
        try {
          NodeControllerService ncSrv = (NodeControllerService) ncServiceContext.getControllerService();
          // TODO(mblow): multicc
          CcId primaryCcId = ncSrv.getPrimaryCcId();
          ClusterControllerInfo ccInfo = ncSrv.getNodeParameters(primaryCcId).getClusterControllerInfo();
          hcc = new HyracksConnection(ccInfo.getClientNetAddress(), ccInfo.getClientNetPort(),
              ncSrv.getNetworkSecurityManager().getSocketChannelFactory());
        } catch (Exception e) {
          throw HyracksDataException.create(e);
        }
      }
    }
  }
  return hcc;
}
origin: apache/asterixdb

public CcId getCcId() {
  return getNodeParameters().getClusterControllerInfo().getCcId();
}
origin: apache/asterixdb

String strIP = ccServiceCtx.getCCContext().getClusterControllerInfo().getClientNetAddress();
int port = ccServiceCtx.getCCContext().getClusterControllerInfo().getClientNetPort();
hcc = new HyracksConnection(strIP, port,
    ccServiceCtx.getControllerService().getNetworkSecurityManager().getSocketChannelFactory());
org.apache.hyracks.api.client.implClusterControllerInfo

Most used methods

  • getClientNetAddress
  • getClientNetPort
  • <init>
  • getCcId
  • getWebPort

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now