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

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

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

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

ReceivedResponseMessage<QueryId> resp2 = ep2.getEndpoint(address, fabric.getPort()).send(expectedD, random1);
assertEquals(resp2.getBody(), expectedQ);
assertEqualsBytes(r2B, resp2.getBuffer());
origin: dremio/dremio-oss

@Test(expected=RpcException.class)
public void propagateFailure() throws Exception {
 ProtocolBuilder builder = ProtocolBuilder.builder().allocator(allocator).name("test-fabric").protocolId(3);
 SendEndpointCreator<NodeEndpoint, QueryId> ep1 = builder.register(1,
   new AbstractReceiveHandler<NodeEndpoint, QueryId>(NodeEndpoint.getDefaultInstance(),
     QueryId.getDefaultInstance()) {
    @Override
    public SentResponseMessage<QueryId> handle(NodeEndpoint request, ArrowBuf dBody) throws RpcException {
     throw new NullPointerException("an npe.");
    }
   });
 builder.register(fabric);
 ReceivedResponseMessage<QueryId> resp1 = ep1.getEndpoint(address, fabric.getPort()).send(expectedD);
 assertEquals(resp1.getBody(), expectedQ);
 assertTrue(resp1.getBuffer() == null);
}
origin: dremio/dremio-oss

@Test
public void basicProtocolNoBuffers() throws Exception {
 ProtocolBuilder builder = ProtocolBuilder.builder().allocator(allocator).name("test-fabric").protocolId(3);
 SendEndpointCreator<NodeEndpoint, QueryId> ep1 = builder.register(1,
   new AbstractReceiveHandler<NodeEndpoint, QueryId>(NodeEndpoint.getDefaultInstance(),
     QueryId.getDefaultInstance()) {
    @Override
    public SentResponseMessage<QueryId> handle(NodeEndpoint request, ArrowBuf dBody) throws RpcException {
     if (!request.equals(expectedD)) {
      throw new RpcException("Objects not same.");
     }
     return new SentResponseMessage<>(expectedQ);
    }
   });
 builder.register(fabric);
 ReceivedResponseMessage<QueryId> resp1 = ep1.getEndpoint(address, fabric.getPort()).send(expectedD);
 assertEquals(resp1.getBody(), expectedQ);
 assertTrue(resp1.getBuffer() == null);
}
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();
}
com.dremio.services.fabricFabricServiceImplgetPort

Popular methods of FabricServiceImpl

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

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • putExtra (Intent)
  • startActivity (Activity)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JButton (javax.swing)
  • Top plugins for WebStorm
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