Package org.opennms.core.grpc.common
Class GrpcIpcServerBuilder
- java.lang.Object
-
- org.opennms.core.grpc.common.GrpcIpcServerBuilder
-
- All Implemented Interfaces:
GrpcIpcServer
public class GrpcIpcServerBuilder extends Object implements GrpcIpcServer
-
-
Constructor Summary
Constructors Constructor Description GrpcIpcServerBuilder(org.osgi.service.cm.ConfigurationAdmin configAdmin, int port, String delay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Properties
getProperties()
Get properties with which the service has started.void
startServer(io.grpc.BindableService bindableService)
Starts server, this will not immediately start server but schedules server start after certain delay.void
stopServer()
Stops the Server.
-
-
-
Constructor Detail
-
GrpcIpcServerBuilder
public GrpcIpcServerBuilder(org.osgi.service.cm.ConfigurationAdmin configAdmin, int port, String delay)
-
-
Method Detail
-
startServer
public void startServer(io.grpc.BindableService bindableService) throws IOException
Description copied from interface:GrpcIpcServer
Starts server, this will not immediately start server but schedules server start after certain delay.- Specified by:
startServer
in interfaceGrpcIpcServer
- Parameters:
bindableService
- The service that needs to be added- Throws:
IOException
-
stopServer
public void stopServer()
Description copied from interface:GrpcIpcServer
Stops the Server.- Specified by:
stopServer
in interfaceGrpcIpcServer
-
getProperties
public Properties getProperties()
Description copied from interface:GrpcIpcServer
Get properties with which the service has started.- Specified by:
getProperties
in interfaceGrpcIpcServer
-
-