public class BenchStandaloneGrpcServer extends Object
Constructor and Description |
---|
BenchStandaloneGrpcServer() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
This main function can be used to start a standalone server and use the stressbench with
said standalone server.
|
void |
setServerType(FileSystemBase.ServerType serverType) |
void |
shutdown() |
void |
startServer(int port) |
public void setServerType(FileSystemBase.ServerType serverType)
public void startServer(int port) throws IOException
IOException
public void shutdown()
public static void main(String[] args) throws Exception
args
- -s | --server will specify the FileSystemBase.ServerType
-p | --port will specify the port the server should bind to (0 will bind to any
available open port)
-cs | --client-socket to specify which port this process will report the server
port chosen for the benchmarkException
Copyright © 2023. All Rights Reserved.