public class DataCollectorServiceVerticle
extends io.vertx.core.AbstractVerticle
Constructor and Description |
---|
DataCollectorServiceVerticle(java.lang.String address,
CollectorJob job,
int workerPoolSize,
int queueSize,
boolean enableMetrics) |
DataCollectorServiceVerticle(java.lang.String address,
CollectorJob job,
int workerPoolSize,
int queueSize,
boolean enableMetrics,
long maxExecuteTimeout) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getServiceAddress() |
void |
init(io.vertx.core.Vertx vertx,
io.vertx.core.Context context) |
void |
start(io.vertx.core.Future<java.lang.Void> startFuture) |
void |
stop(io.vertx.core.Future<java.lang.Void> stopFuture) |
public DataCollectorServiceVerticle(java.lang.String address, CollectorJob job, int workerPoolSize, int queueSize, boolean enableMetrics)
address
- The eventbus addressjob
- The job which will be processed in the CollectorJobExecutorworkerPoolSize
- The pool size of the CollectorJobExecutorqueueSize
- The queue size of CollectorJob requestsenableMetrics
- Enables metrics for the DataCollectorServicepublic DataCollectorServiceVerticle(java.lang.String address, CollectorJob job, int workerPoolSize, int queueSize, boolean enableMetrics, long maxExecuteTimeout)
address
- The eventbus addressjob
- The job which will be processed in the CollectorJobExecutorworkerPoolSize
- The pool size of the CollectorJobExecutorqueueSize
- The queue size of CollectorJob requestsenableMetrics
- Enables metrics for the DataCollectorServicemaxExecuteTimeout
- Timeout for a job in the ExecutorPool in millisecondspublic void init(io.vertx.core.Vertx vertx, io.vertx.core.Context context)
init
in interface io.vertx.core.Verticle
init
in class io.vertx.core.AbstractVerticle
public void start(io.vertx.core.Future<java.lang.Void> startFuture) throws java.lang.Exception
start
in interface io.vertx.core.Verticle
start
in class io.vertx.core.AbstractVerticle
java.lang.Exception
public void stop(io.vertx.core.Future<java.lang.Void> stopFuture) throws java.lang.Exception
stop
in interface io.vertx.core.Verticle
stop
in class io.vertx.core.AbstractVerticle
java.lang.Exception
public java.lang.String getServiceAddress()