Tabnine Logo
FabricServiceImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.dremio.services.fabric.FabricServiceImpl
constructor

Best Java code snippets using com.dremio.services.fabric.FabricServiceImpl.<init> (Showing top 9 results out of 315)

origin: dremio/dremio-oss

@Before
public void setupServer() throws Exception{
 allocator = new RootAllocator(20 * 1024 * 1024);
 pool = new CloseableThreadPool("test-fabric");
 fabric = new FabricServiceImpl(address, 45678, true, THREAD_COUNT, allocator, RESERVATION,
   MAX_ALLOCATION, TIMEOUT, pool);
 fabric.start();
}
origin: dremio/dremio-oss

fabricService = new FabricServiceImpl(HOSTNAME, 45678, true, THREAD_COUNT, allocator, RESERVATION,
  MAX_ALLOCATION, TIMEOUT, pool);
origin: dremio/dremio-oss

fabricService = new FabricServiceImpl(HOSTNAME, 45678, true, THREAD_COUNT, allocator, RESERVATION, MAX_ALLOCATION,
  TIMEOUT, pool);
origin: dremio/dremio-oss

@Override
KVStoreProvider createKKStoreProvider() throws Exception {
 allocator = new RootAllocator(20 * 1024 * 1024);
 pool = new CloseableThreadPool("test-remoteindexedkvstore");
 localFabricService = new FabricServiceImpl(HOSTNAME, 45678, true, THREAD_COUNT, allocator, RESERVATION,
   MAX_ALLOCATION, TIMEOUT, pool);
 localFabricService.start();
 final Provider<FabricService> fab = () -> localFabricService;
 remoteFabricService = new FabricServiceImpl(HOSTNAME, 45679, true, THREAD_COUNT, allocator, RESERVATION,
   MAX_ALLOCATION, TIMEOUT, pool);
 remoteFabricService.start();
 final Provider<FabricService> rfab = () -> remoteFabricService;
 localKVStoreProvider = new LocalKVStoreProvider(DremioTest.CLASSPATH_SCAN_RESULT, fab, allocator,
   HOSTNAME, null, true, true, true, false);
 localKVStoreProvider.start();
 remoteKVStoreProvider = new RemoteKVStoreProvider(
   DremioTest.CLASSPATH_SCAN_RESULT,
   DirectProvider.wrap(NodeEndpoint.newBuilder()
     .setAddress(HOSTNAME)
     .setFabricPort(localFabricService.getPort())
     .build()),
   rfab, allocator, HOSTNAME);
 remoteKVStoreProvider.start();
 return remoteKVStoreProvider;
}
origin: dremio/dremio-oss

@Override
void initProvider() throws Exception {
 allocator = new RootAllocator(20 * 1024 * 1024);
 pool = new CloseableThreadPool("test-remoteocckvstore");
 localFabricService = new FabricServiceImpl(HOSTNAME, 45678, true, THREAD_COUNT, allocator, RESERVATION,
   MAX_ALLOCATION, TIMEOUT, pool);
 localFabricService.start();
 remoteFabricService = new FabricServiceImpl(HOSTNAME, 45679, true, THREAD_COUNT, allocator, RESERVATION,
   MAX_ALLOCATION, TIMEOUT, pool);
 remoteFabricService.start();
 localKVStoreProvider = new LocalKVStoreProvider(DremioTest.CLASSPATH_SCAN_RESULT,
   DirectProvider.wrap(localFabricService), allocator, HOSTNAME, tmpFolder.getRoot().toString(),
   true, true, true, false);
 localKVStoreProvider.start();
 remoteKVStoreProvider = new RemoteKVStoreProvider(
   DremioTest.CLASSPATH_SCAN_RESULT,
   DirectProvider.wrap(NodeEndpoint.newBuilder()
     .setAddress(HOSTNAME)
     .setFabricPort(localFabricService.getPort())
     .build()),
   DirectProvider.wrap(remoteFabricService), allocator, HOSTNAME);
 remoteKVStoreProvider.start();
}
origin: dremio/dremio-oss

@Override
KVStoreProvider createKKStoreProvider() throws Exception {
 allocator = new RootAllocator(20 * 1024 * 1024);
 pool = new CloseableThreadPool("test-remoteocckvstore");
 localFabricService = new FabricServiceImpl(HOSTNAME, 45678, true, THREAD_COUNT, allocator, RESERVATION,
   MAX_ALLOCATION, TIMEOUT, pool);
 localFabricService.start();
 remoteFabricService = new FabricServiceImpl(HOSTNAME, 45679, true, THREAD_COUNT, allocator, RESERVATION,
   MAX_ALLOCATION, TIMEOUT, pool);
 remoteFabricService.start();
 localKVStoreProvider = new LocalKVStoreProvider(DremioTest.CLASSPATH_SCAN_RESULT,
   DirectProvider.<FabricService>wrap(localFabricService), allocator, HOSTNAME, null, true, true, true, false);
 localKVStoreProvider.start();
 remoteKVStoreProvider = new RemoteKVStoreProvider(
   DremioTest.CLASSPATH_SCAN_RESULT,
   DirectProvider.wrap(NodeEndpoint.newBuilder()
     .setAddress(HOSTNAME)
     .setFabricPort(localFabricService.getPort())
     .build()),
   DirectProvider.<FabricService>wrap(remoteFabricService), allocator, HOSTNAME);
 remoteKVStoreProvider.start();
 return remoteKVStoreProvider;
}
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

new FabricServiceImpl(
  fabricAddress,
  dacConfig.localPort,
origin: dremio/dremio-oss

registry.bind(FabricService.class, new FabricServiceImpl(
  address,
  45678,
com.dremio.services.fabricFabricServiceImpl<init>

Popular methods of FabricServiceImpl

  • getAddress
  • getPort
  • start
  • getAllocator
  • getEventLoop
  • getHandler
  • getRegistry
  • getRpcConfig
  • getSSLEngineFactory
  • newFabricServer
  • registerProtocol
  • registerProtocol

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Best plugins for Eclipse
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