transportFactory = PlainSaslHelper.getPlainTransportFactory(authTypeStr); } else if (authTypeStr.equalsIgnoreCase(HiveAuthConstants.AuthTypes.NOSASL.getAuthName())) { transportFactory = new TTransportFactory(); } else { throw new LoginException("Unsupported authentication type " + authTypeStr);
LOG.debug("Using framed transport"); } else if (qop == null) { transportFactory = new TTransportFactory(); } else {
} else { transFactory = useFramedTransport ? new TFramedTransport.Factory() : new TTransportFactory(); processor = new TSetIpAddressProcessor<>(handler); LOG.info("Starting DB backed MetaStore Server");
@Override public TTransportFactory getServerTransportFactory(Runnable runnable, String serverName) { return new TTransportFactory(); } }
public TThreadPoolServer(TProcessor processor, TServerTransport serverTransport, TProtocolFactory protocolFactory) { this(processor, serverTransport, new TTransportFactory(), new TTransportFactory(), protocolFactory, protocolFactory); }
public TThreadPoolServer(TProcessor processor, TServerTransport serverTransport, TProtocolFactory protocolFactory) { this(processor, serverTransport, new TTransportFactory(), new TTransportFactory(), protocolFactory, protocolFactory); }
public TThreadPoolServer(TProcessor processor, TServerTransport serverTransport, TProtocolFactory protocolFactory) { this(processor, serverTransport, new TTransportFactory(), new TTransportFactory(), protocolFactory, protocolFactory); }
/** * Default constructors. */ protected TServer(TProcessorFactory processorFactory, TServerTransport serverTransport) { this(processorFactory, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory()); }
/** * Default constructors. */ protected TServer(TProcessorFactory processorFactory, TServerTransport serverTransport) { this(processorFactory, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory()); }
public TThreadPoolServer(TProcessor processor, TServerTransport serverTransport) { this(processor, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory()); }
public TThreadPoolServer(TProcessorFactory processorFactory, TServerTransport serverTransport) { this(processorFactory, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory()); }
public TThreadPoolServer(TProcessor processor, TServerTransport serverTransport) { this(processor, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory()); }
public TThreadPoolServer(TProcessorFactory processorFactory, TServerTransport serverTransport) { this(processorFactory, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory()); }
/** * Default constructors. */ protected TServer(TProcessorFactory processorFactory, TServerTransport serverTransport) { this(processorFactory, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory()); }
public TThreadPoolServer(TProcessor processor, TServerTransport serverTransport) { this(processor, serverTransport, new TTransportFactory(), new TTransportFactory(), new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory()); }
private static TTransportFactory getTTransportFactory(boolean framed) { if (framed) { log.debug("Using framed transport"); return new TFramedTransport.Factory(); } else { return new TTransportFactory(); } }
@Test public void testOutOfOrderNot() { TestingServerMethodInvoker methodInvoker = new TestingServerMethodInvoker(); int invocationCount = testServerMethodInvoker(methodInvoker, true, ImmutableList.of( address -> testOutOfOrder(address, MESSAGES, new TTransportFactory(), new TBinaryProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrder(address, MESSAGES, new TTransportFactory(), new TCompactProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrder(address, MESSAGES, new TFramedTransport.Factory(), new TBinaryProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrder(address, MESSAGES, new TFramedTransport.Factory(), new TCompactProtocol.Factory(), methodInvoker.getFutureResults()))); List<DriftLogEntry> expectedMessages = newArrayList(concat(nCopies(invocationCount, DRIFT_MESSAGES))); assertEquals(ImmutableList.copyOf(methodInvoker.getMessages()), expectedMessages); }
@Test public void testOutOfOrderNotSupported() { TestingServerMethodInvoker methodInvoker = new TestingServerMethodInvoker(); int invocationCount = testServerMethodInvoker(methodInvoker, false, ImmutableList.of( address -> testOutOfOrderNotSupported(address, MESSAGES, new TTransportFactory(), new TBinaryProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrderNotSupported(address, MESSAGES, new TTransportFactory(), new TCompactProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrderNotSupported(address, MESSAGES, new TFramedTransport.Factory(), new TBinaryProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrderNotSupported(address, MESSAGES, new TFramedTransport.Factory(), new TCompactProtocol.Factory(), methodInvoker.getFutureResults()))); List<DriftLogEntry> expectedMessages = newArrayList(concat(nCopies(invocationCount, DRIFT_MESSAGES))); assertEquals(ImmutableList.copyOf(methodInvoker.getMessages()), expectedMessages); }
@Test public void testOutOfOrderNot() { TestingServerMethodInvoker methodInvoker = new TestingServerMethodInvoker(); int invocationCount = testServerMethodInvoker(methodInvoker, true, ImmutableList.of( address -> testOutOfOrder(address, MESSAGES, new TTransportFactory(), new TBinaryProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrder(address, MESSAGES, new TTransportFactory(), new TCompactProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrder(address, MESSAGES, new TFramedTransport.Factory(), new TBinaryProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrder(address, MESSAGES, new TFramedTransport.Factory(), new TCompactProtocol.Factory(), methodInvoker.getFutureResults()))); List<DriftLogEntry> expectedMessages = newArrayList(concat(nCopies(invocationCount, DRIFT_MESSAGES))); assertEquals(ImmutableList.copyOf(methodInvoker.getMessages()), expectedMessages); }
@Test public void testOutOfOrderNotSupported() { TestingServerMethodInvoker methodInvoker = new TestingServerMethodInvoker(); int invocationCount = testServerMethodInvoker(methodInvoker, false, ImmutableList.of( address -> testOutOfOrderNotSupported(address, MESSAGES, new TTransportFactory(), new TBinaryProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrderNotSupported(address, MESSAGES, new TTransportFactory(), new TCompactProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrderNotSupported(address, MESSAGES, new TFramedTransport.Factory(), new TBinaryProtocol.Factory(), methodInvoker.getFutureResults()), address -> testOutOfOrderNotSupported(address, MESSAGES, new TFramedTransport.Factory(), new TCompactProtocol.Factory(), methodInvoker.getFutureResults()))); List<DriftLogEntry> expectedMessages = newArrayList(concat(nCopies(invocationCount, DRIFT_MESSAGES))); assertEquals(ImmutableList.copyOf(methodInvoker.getMessages()), expectedMessages); }