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

How to use
getAddress
method
in
com.dremio.services.fabric.FabricServiceImpl

Best Java code snippets using com.dremio.services.fabric.FabricServiceImpl.getAddress (Showing top 6 results out of 315)

origin: dremio/dremio-oss

protected FabricServer newFabricServer() throws Exception {
 return new FabricServer(getAddress(), getHandler(), getRpcConfig(), getAllocator(), getRegistry(), getEventLoop());
}
origin: dremio/dremio-oss

@Before
public void setUpPDFSService() throws IOException {
 NodeEndpoint endpoint = NodeEndpoint.newBuilder()
   .setAddress(fabric.getAddress()).setFabricPort(fabric.getPort())
   .build();
 PDFSProtocol pdfsProtocol = PDFSProtocol.newInstance(endpoint, DremioTest.DEFAULT_SABOT_CONFIG, allocator, true);
 FabricRunnerFactory factory = fabric.registerProtocol(pdfsProtocol);
 sabotFS = new RemoteNodeFileSystem(factory.getCommandRunner(fabric.getAddress(), fabric.getPort()), allocator);
 sabotFS.initialize(URI.create(format("sabot://%s:%d", fabric.getAddress(), fabric.getPort())), new Configuration(false));
}
origin: dremio/dremio-oss

@BeforeClass
public static void setup() throws Exception {
 final String hostname = FabricServiceImpl.getAddress(false);
 final String localWritePathString = tempFolder.getRoot().getAbsolutePath();
 currentDremioDaemon = DACDaemon.newDremioDaemon(
origin: dremio/dremio-oss

public ServiceHolder(BufferAllocator allocator, Provider<Iterable<NodeEndpoint>> nodeProvider, PDFSMode mode, String name) throws Exception{
 this.allocator = allocator.newChildAllocator(name, 0, Long.MAX_VALUE);
 pool = new CloseableThreadPool(name);
 fabric = new FabricServiceImpl(HOSTNAME, 9970, true, THREAD_COUNT, this.allocator, RESERVATION,
   MAX_ALLOCATION, TIMEOUT, pool);
 fabric.start();
 endpoint = NodeEndpoint.newBuilder()
   .setAddress(fabric.getAddress()).setFabricPort(fabric.getPort())
   .setRoles(Roles.newBuilder().setJavaExecutor(mode == PDFSMode.DATA))
   .build();
 service = new PDFSService(DirectProvider.wrap((FabricService) fabric), DirectProvider.wrap(endpoint), nodeProvider, DremioTest.DEFAULT_SABOT_CONFIG, this.allocator, mode);
 service.start();
 fileSystem = service.createFileSystem();
}
origin: dremio/dremio-oss

 fabricAddress = FabricServiceImpl.getAddress(false);
} catch (UnknownHostException e) {
 throw new RuntimeException("Cannot get local address", e);
origin: dremio/dremio-oss

final String address = FabricServiceImpl.getAddress(useIP);
registry.bind(FabricService.class, new FabricServiceImpl(
  address,
com.dremio.services.fabricFabricServiceImplgetAddress

Popular methods of FabricServiceImpl

  • <init>
  • getPort
  • start
  • getAllocator
  • getEventLoop
  • getHandler
  • getRegistry
  • getRpcConfig
  • getSSLEngineFactory
  • newFabricServer
  • registerProtocol
  • registerProtocol

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Notification (javax.management)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text 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