public class TransactionService extends InMemoryTransactionService
address, ioThreads, maxReadBufferBytes, port, threads, txManager, txManagerProvider| Constructor and Description | 
|---|
| TransactionService(org.apache.hadoop.conf.Configuration conf,
                  org.apache.twill.zookeeper.ZKClient zkClient,
                  org.apache.twill.discovery.DiscoveryService discoveryService,
                  com.google.inject.Provider<TransactionManager> txManagerProvider) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | abort(Throwable cause) | 
| protected TransactionPruningService | createPruningService(org.apache.hadoop.conf.Configuration conf,
                    TransactionManager txManager)Called at startup to create the pruning service. | 
| protected void | doStart() | 
| protected void | doStop() | 
| protected InetSocketAddress | getAddress() | 
| TransactionManager | getTransactionManager() | 
| TransactionPruningService | getTransactionPruningService()This allows systems that embed the transaction service access to the pruning service,
 so that they can trigger prunning (rather than waiting for its scheduled run time). | 
| protected void | internalStop() | 
doRegister, undoRegister@Inject
public TransactionService(org.apache.hadoop.conf.Configuration conf,
                                  org.apache.twill.zookeeper.ZKClient zkClient,
                                  org.apache.twill.discovery.DiscoveryService discoveryService,
                                  com.google.inject.Provider<TransactionManager> txManagerProvider)
protected InetSocketAddress getAddress()
getAddress in class InMemoryTransactionServiceprotected void doStart()
doStart in class InMemoryTransactionServiceprotected TransactionPruningService createPruningService(org.apache.hadoop.conf.Configuration conf, TransactionManager txManager)
protected void doStop()
doStop in class InMemoryTransactionServiceprotected void abort(Throwable cause)
protected void internalStop()
@Nullable public TransactionManager getTransactionManager()
@Nullable public TransactionPruningService getTransactionPruningService()
Copyright © 2018 The Apache Software Foundation. All rights reserved.