Package cz.o2.proxima.direct.server
Class IngestServer
- java.lang.Object
-
- cz.o2.proxima.direct.server.IngestServer
-
public class IngestServer extends java.lang.ObjectThe ingestion server.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIngestServer(cz.o2.proxima.typesafe.config.Config cfg)protectedIngestServer(cz.o2.proxima.typesafe.config.Config cfg, Repository repo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.concurrent.ExecutorcreateExecutor(cz.o2.proxima.typesafe.config.Config cfg)protected io.grpc.ServercreateServer(int port, boolean debug)cz.o2.proxima.typesafe.config.ConfiggetCfg()protected static cz.o2.proxima.typesafe.config.ConfiggetCfgFromArgs(java.lang.String[] args)DirectDataOperatorgetDirect()java.util.concurrent.ExecutorgetExecutor()RepositorygetRepo()dev.failsafe.RetryPolicy<java.lang.Void>getRetryPolicy()java.util.concurrent.ScheduledExecutorServicegetScheduler()protected java.lang.Iterable<io.grpc.BindableService>getServices()TransactionContextgetTransactionContext()booleanisIgnoreErrors()static voidmain(java.lang.String[] args)Run the server.protected voidonClose()protected voidrun()Run the server.protected static voidrunWithServerFactory(Factory<? extends IngestServer> serverFactory)
-
-
-
Constructor Detail
-
IngestServer
protected IngestServer(cz.o2.proxima.typesafe.config.Config cfg)
-
IngestServer
protected IngestServer(cz.o2.proxima.typesafe.config.Config cfg, Repository repo)
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.ThrowableRun the server.- Parameters:
args- command line arguments- Throws:
java.lang.Throwable- on error
-
getCfgFromArgs
protected static cz.o2.proxima.typesafe.config.Config getCfgFromArgs(java.lang.String[] args)
-
runWithServerFactory
protected static void runWithServerFactory(Factory<? extends IngestServer> serverFactory)
-
createExecutor
protected java.util.concurrent.Executor createExecutor(cz.o2.proxima.typesafe.config.Config cfg)
-
run
protected void run()
Run the server.
-
onClose
protected void onClose()
-
createServer
protected io.grpc.Server createServer(int port, boolean debug)
-
getServices
protected java.lang.Iterable<io.grpc.BindableService> getServices()
-
getExecutor
public java.util.concurrent.Executor getExecutor()
-
getScheduler
public java.util.concurrent.ScheduledExecutorService getScheduler()
-
getRepo
public Repository getRepo()
-
getDirect
public DirectDataOperator getDirect()
-
getCfg
public cz.o2.proxima.typesafe.config.Config getCfg()
-
isIgnoreErrors
public boolean isIgnoreErrors()
-
getTransactionContext
@Nullable public TransactionContext getTransactionContext()
-
getRetryPolicy
public dev.failsafe.RetryPolicy<java.lang.Void> getRetryPolicy()
-
-