
@Component public class VertxMicroserviceEngine extends Object implements net.trajano.ms.spi.MicroserviceEngine
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.annotation.AnnotationConfigApplicationContext |
applicationContext |
private Deque<AutoCloseable> |
handlerStack |
private io.vertx.core.http.HttpServerOptions |
httpServerOptions |
private net.trajano.ms.engine.jaxrs.JaxRsRouter |
jaxRsRouter |
private static org.slf4j.Logger |
LOG |
private String |
theHostname |
private int |
thePort |
private io.vertx.core.Vertx |
vertx |
private io.vertx.core.VertxOptions |
vertxOptions |
| Constructor and Description |
|---|
VertxMicroserviceEngine() |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
bootstrap()
Sets the system properties and sets up the logger.
|
String |
hostname() |
int |
port() |
void |
start() |
void |
stop() |
private static final org.slf4j.Logger LOG
@Autowired private org.springframework.context.annotation.AnnotationConfigApplicationContext applicationContext
private final Deque<AutoCloseable> handlerStack
@Autowired private io.vertx.core.http.HttpServerOptions httpServerOptions
@Autowired private net.trajano.ms.engine.jaxrs.JaxRsRouter jaxRsRouter
private String theHostname
private int thePort
private io.vertx.core.Vertx vertx
@Autowired private io.vertx.core.VertxOptions vertxOptions
public Object[] bootstrap()
bootstrap in interface net.trajano.ms.spi.MicroserviceEnginepublic String hostname()
hostname in interface net.trajano.ms.spi.MicroserviceEnginepublic int port()
port in interface net.trajano.ms.spi.MicroserviceEngine@PostConstruct public void start()
@PreDestroy public void stop() throws Exception
ExceptionCopyright © 2012–2018 Trajano. All rights reserved.