public class NamingServer extends Object
| Constructor and Description |
|---|
NamingServer(int port) |
NamingServer(int port,
io.grpc.ServerInterceptor[] interceptors) |
| Modifier and Type | Method and Description |
|---|---|
NamingService |
getNamingService() |
int |
getPort() |
static int |
selectRandomPort() |
void |
start() |
static NamingServer |
startNamingServer(int port) |
void |
terminate() |
public NamingServer(int port)
public NamingServer(int port,
io.grpc.ServerInterceptor[] interceptors)
public static NamingServer startNamingServer(int port) throws IOException
IOExceptionpublic static int selectRandomPort()
public void start()
throws IOException
IOExceptionpublic int getPort()
public void terminate()
public NamingService getNamingService()
Copyright © 2023. All rights reserved.