Class HealthServiceImpl
java.lang.Object
tech.skworks.tachyon.plugin.core.grpc.AbstractGrpcService
tech.skworks.tachyon.plugin.core.system.HealthServiceImpl
- All Implemented Interfaces:
HealthService
Project Tachyon
Class GrpcSystemService
Handles core backend connectivity, gRPC ping telemetry, and autonomous adaptive health monitoring.
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 2.0
- Author:
- Jimmy (vSKAH)
-
Field Summary
Fields inherited from class AbstractGrpcService
backendStubProvider, tachyonMetrics -
Constructor Summary
ConstructorsConstructorDescriptionHealthServiceImpl(@Nullable TachyonMetrics tachyonMetrics, @NotNull BackendStubProvider backendStubProvider, @NotNull String serverName) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> voidhandleGrpcExceptions(@NotNull String actionName, @NotNull io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) booleanvoidshutdown()voidMethods inherited from class AbstractGrpcService
asyncCall, asyncRun, recordError, recordError, recordPlayerLockExhausted, recordPlayerLockRetry, startProfileLoadTimer, startTimer
-
Constructor Details
-
HealthServiceImpl
public HealthServiceImpl(@Nullable @Nullable TachyonMetrics tachyonMetrics, @NotNull @NotNull BackendStubProvider backendStubProvider, @NotNull @NotNull String serverName)
-
-
Method Details
-
startHealthMonitoring
public void startHealthMonitoring() -
isHealthy
public boolean isHealthy()- Specified by:
isHealthyin interfaceHealthService
-
pingBackend
- Specified by:
pingBackendin interfaceHealthService
-
handleGrpcExceptions
protected <T> void handleGrpcExceptions(@NotNull @NotNull String actionName, @NotNull @NotNull io.grpc.StatusRuntimeException ex, CompletableFuture<T> future) - Specified by:
handleGrpcExceptionsin classAbstractGrpcService
-
shutdown
public void shutdown()- Specified by:
shutdownin classAbstractGrpcService
-