Class VertxServer
- java.lang.Object
-
- org.hibernate.reactive.it.verticle.VertxServer
-
public class VertxServer extends Object
Make it easier to run benchmarks with external tools like "wrk"
-
-
Field Summary
Fields Modifier and Type Field Description static String
DB_NAME
static String
IMAGE_NAME
static String
PASSWORD
static org.testcontainers.containers.PostgreSQLContainer<?>
postgresql
static boolean
USE_DOCKER
static String
USERNAME
-
Constructor Summary
Constructors Constructor Description VertxServer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SessionFactory
createHibernateSessionFactory(boolean enableDocker, io.vertx.core.Vertx vertx)
static void
main(String[] args)
static io.vertx.core.VertxOptions
vertxOptions()
-
-
-
Field Detail
-
USE_DOCKER
public static final boolean USE_DOCKER
-
IMAGE_NAME
public static final String IMAGE_NAME
- See Also:
- Constant Field Values
-
USERNAME
public static final String USERNAME
- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
-
DB_NAME
public static final String DB_NAME
- See Also:
- Constant Field Values
-
postgresql
public static final org.testcontainers.containers.PostgreSQLContainer<?> postgresql
-
-
Method Detail
-
createHibernateSessionFactory
public static SessionFactory createHibernateSessionFactory(boolean enableDocker, io.vertx.core.Vertx vertx)
-
vertxOptions
public static io.vertx.core.VertxOptions vertxOptions()
-
main
public static void main(String[] args)
-
-