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

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

Best Java code snippets using org.apache.hyracks.api.client.impl.ClusterControllerInfo.getClientNetPort (Showing top 3 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

@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

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

Popular methods of ClusterControllerInfo

  • getClientNetAddress
  • <init>
  • getCcId
  • getWebPort

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • String (java.lang)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top 12 Jupyter Notebook extensions
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