use of io.pravega.shared.rest.RESTServer in project pravega by pravega.
the class HealthTests method setup.
@Before
public void setup() throws Exception {
serverConfig = getServerConfig();
healthServiceManager = new HealthServiceManager(Duration.ofMillis(100));
restServer = new RESTServer(serverConfig, Set.of(new HealthImpl(null, healthServiceManager.getEndpoint())));
healthServiceManager.start();
restServer.startAsync();
restServer.awaitRunning();
client = createJerseyClient();
}
use of io.pravega.shared.rest.RESTServer in project pravega by pravega.
the class PingTest method setup.
@Before
public void setup() throws Exception {
serverConfig = getServerConfig();
restServer = new RESTServer(serverConfig, Set.of(new PingImpl()));
restServer.startAsync();
restServer.awaitRunning();
client = createJerseyClient();
}
Aggregations