Class RelationalServer
- java.lang.Object
-
- com.apple.foundationdb.relational.server.RelationalServer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
@API(EXPERIMENTAL) public class RelationalServer extends java.lang.Object implements java.io.Closeable
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:
InProcessRelationalServer
-
-
Constructor Summary
Constructors Constructor Description RelationalServer(int grpcPort, int httpPort)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getGrpcPort()
GRPC port.int
getHttpPort()
HTTP port.static void
main(java.lang.String[] args)
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
-