Package com.viam.sdk.core.rpc
Class Server
java.lang.Object
com.viam.sdk.core.resource.ResourceManager
com.viam.sdk.core.rpc.Server
- All Implemented Interfaces:
Closeable
,AutoCloseable
gRPC Server
-
Field Summary
Fields inherited from class com.viam.sdk.core.resource.ResourceManager
resources
-
Constructor Summary
ConstructorDescriptionInitialize the Server with a list of resources to be managed.Server
(List<Resource> resources, io.grpc.ServerBuilder<?> serverBuilder, ModuleRPCService moduleService) Initialize the Server with a list of resources to be managed. -
Method Summary
Methods inherited from class com.viam.sdk.core.resource.ResourceManager
add, close, getResource, isManaging, removeResource, resourceNames
-
Constructor Details
-
Server
Initialize the Server with a list of resources to be managed.- Parameters:
resources
- List of resources to be managedserverBuilder
- a gRPC ServerBuilder
-
Server
public Server(List<Resource> resources, io.grpc.ServerBuilder<?> serverBuilder, ModuleRPCService moduleService) Initialize the Server with a list of resources to be managed.- Parameters:
resources
- List of resources to be managedserverBuilder
- a gRPC ServerBuildermoduleService
- Module service in use
-
-
Method Details
-
start
public void start()
-