Package io.cryostat.agent
Class CryostatClient
- java.lang.Object
-
- io.cryostat.agent.CryostatClient
-
public class CryostatClient extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCryostatClient.StoredCredential
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Boolean>checkRegistration(PluginInfo pluginInfo)CompletableFuture<Void>deleteCredentials(int id)CompletableFuture<Void>deregister(PluginInfo pluginInfo)CompletableFuture<PluginInfo>register(int credentialId, PluginInfo pluginInfo, URI callback)CompletableFuture<ServerHealth>serverHealth()CompletableFuture<Integer>submitCredentialsIfRequired(int prevId, io.cryostat.agent.WebServer.Credentials credentials, URI callback)CompletableFuture<Void>update(PluginInfo pluginInfo, Collection<DiscoveryNode> subtree)CompletableFuture<Void>upload(Harvester.PushType pushType, Optional<FlightRecorderHelper.TemplatedRecording> opt, int maxFiles, Path recording)
-
-
-
Method Detail
-
serverHealth
public CompletableFuture<ServerHealth> serverHealth()
-
checkRegistration
public CompletableFuture<Boolean> checkRegistration(PluginInfo pluginInfo)
-
register
public CompletableFuture<PluginInfo> register(int credentialId, PluginInfo pluginInfo, URI callback)
-
submitCredentialsIfRequired
public CompletableFuture<Integer> submitCredentialsIfRequired(int prevId, io.cryostat.agent.WebServer.Credentials credentials, URI callback)
-
deleteCredentials
public CompletableFuture<Void> deleteCredentials(int id)
-
deregister
public CompletableFuture<Void> deregister(PluginInfo pluginInfo)
-
update
public CompletableFuture<Void> update(PluginInfo pluginInfo, Collection<DiscoveryNode> subtree)
-
upload
public CompletableFuture<Void> upload(Harvester.PushType pushType, Optional<FlightRecorderHelper.TemplatedRecording> opt, int maxFiles, Path recording) throws IOException
- Throws:
IOException
-
-