Class Arkitektonika
java.lang.Object
com.intellectualsites.arkitektonika.Arkitektonika
Arkitektonika client class
- Since:
- 2020-06-21
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Arkitektonika.Builderbuilder()Create a newArkitektonikabuildercheckStatus(@NotNull String key)Check the status of a remote schematicAttempt to delete a schematic from the remote serviceAttempt to download a schematic from the remote serviceGet the internalApiClientinstance.Check if the specified address is compatible with the Arkitektonika clientUpload the schematic that is contained in a given file and return the generated access keys
-
Method Details
-
builder
Create a newArkitektonikabuilder- Returns:
- New builder
-
getClient
Get the internalApiClientinstance. It is not recommended to interact with this client directly.- Returns:
- Internal client
-
isCompatible
Check if the specified address is compatible with the Arkitektonika client- Returns:
- Future that completes with the result
-
upload
Upload the schematic that is contained in a given file and return the generated access keys- Parameters:
file- Schematic File- Returns:
- Future that completes with the generated keys
-
checkStatus
@NotNull public @NotNull CompletableFuture<ResourceStatus> checkStatus(@NotNull @NotNull String key)Check the status of a remote schematic- Parameters:
key- Schematic access key- Returns:
- Future that completes with the resource status
-
delete
Attempt to delete a schematic from the remote service- Parameters:
key- Deletion key- Returns:
- Future that completes with the result
-
download
Attempt to download a schematic from the remote service- Parameters:
key- Download key- Returns:
- Future that completes with the result
-