public class LogdServer extends Object implements LogDaemonServer
Constructor and Description |
---|
LogdServer(int port)
Construct a logD server at requested port number.
|
LogdServer(int port,
io.grpc.ServerBuilder<?> serverBuilder)
Default to log streaming service.
|
Modifier and Type | Method and Description |
---|---|
void |
start()
Starts logD server listening on provided port in constructor.
|
void |
stop()
Shuts down logD server.
|
public LogdServer(int port)
port
- port numberpublic LogdServer(int port, io.grpc.ServerBuilder<?> serverBuilder)
port
- port numberserverBuilder
- server created at requested port numberpublic void start() throws IOException
start
in interface LogDaemonServer
IOException
- if unable to bindpublic void stop()
stop
in interface LogDaemonServer