Tabnine Logo
FabricService.getAddress
Code IndexAdd Tabnine to your IDE (free)

How to use
getAddress
method
in
com.dremio.services.fabric.api.FabricService

Best Java code snippets using com.dremio.services.fabric.api.FabricService.getAddress (Showing top 3 results out of 315)

origin: dremio/dremio-oss

final String rpcBindAddress = (rpcBindAddressOpt.trim().isEmpty()) ? fabric.getAddress() : rpcBindAddressOpt;
origin: dremio/dremio-oss

@Test
public void firstDisconnectRecovery() throws Exception {
 CountDownLatch closeLatch = new CountDownLatch(1);
 FabricRunnerFactory factory = getFabric().registerProtocol(new Protocol(closeLatch));
 FabricCommandRunner runner = factory.getCommandRunner(getFabric().getAddress(), getFabric().getPort());
 // send a message, establishing the connection.
 {
  SimpleMessage m = new SimpleMessage(1);
  runner.runCommand(m);
  m.getFuture().checkedGet(1000, TimeUnit.MILLISECONDS);
 }
 closeLatch.countDown();
 // wait for the local connection to be closed.
 Thread.sleep(1000);
 // ensure we can send message again.
 {
  SimpleMessage m = new SimpleMessage(1);
  runner.runCommand(m);
  m.getFuture().checkedGet(1000, TimeUnit.MILLISECONDS);
 }
}
origin: dremio/dremio-oss

@Test(expected=ChannelClosedException.class)
public void failureOnDisconnection() throws Exception {
 FabricRunnerFactory factory = getFabric().registerProtocol(new Protocol(null));
 FabricCommandRunner runner = factory.getCommandRunner(getFabric().getAddress(), getFabric().getPort());
 SimpleMessage m = new SimpleMessage(2);
 runner.runCommand(m);
 m.getFuture().checkedGet(1000, TimeUnit.MILLISECONDS);
}
com.dremio.services.fabric.apiFabricServicegetAddress

Javadoc

Return the address that the rpc layer is running on.

Popular methods of FabricService

  • getPort
    The port the service is running on (once started).
  • registerProtocol
    Register a new protocol.
  • getProtocol
    Returns a runner factory for the provided protocol id
  • start

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JCheckBox (javax.swing)
  • 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 Vim plugins
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