Class GrpcExportServiceStub
java.lang.Object
com.google.devtools.cloudprofiler.v2.stub.ExportServiceStub
com.google.devtools.cloudprofiler.v2.stub.GrpcExportServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the ExportService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcExportServiceStub(ExportServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcExportServiceStub, using the given settings.protectedGrpcExportServiceStub(ExportServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcExportServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcExportServiceStubcreate(ClientContext clientContext) static final GrpcExportServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcExportServiceStubcreate(ExportServiceStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcExportServiceStub
protected GrpcExportServiceStub(ExportServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcExportServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcExportServiceStub
protected GrpcExportServiceStub(ExportServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcExportServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcExportServiceStub create(ExportServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcExportServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listProfilesCallable
- Overrides:
listProfilesCallablein classExportServiceStub
-
listProfilesPagedCallable
public UnaryCallable<ListProfilesRequest,ExportServiceClient.ListProfilesPagedResponse> listProfilesPagedCallable()- Overrides:
listProfilesPagedCallablein classExportServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classExportServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-