Class RelationalServer
java.lang.Object
com.apple.foundationdb.relational.server.RelationalServer
- All Implemented Interfaces:
Closeable
,AutoCloseable
Relational Server.
Hosts the JDBC GRPC Service and an HTTP server to export metrics on.
(On why two ports in one server, see prometheus issue for discussion
https://github.com/prometheus/prometheus/issues/8414)
- See Also:
-
Constructor Details
-
RelationalServer
public RelationalServer(int grpcPort, int httpPort)
-
-
Method Details
-
toString
-
getGrpcPort
public int getGrpcPort()GRPC port. Error if you call this method beforestart()
completes.- Returns:
- The port GRPC is listening on
-
getHttpPort
public int getHttpPort()HTTP port. Error if you call this method beforestart()
completes.- Returns:
- The port HTTP is listening on
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
main
- Throws:
IOException
InterruptedException
-