Class PlatformClient
java.lang.Object
co.yellowdog.platform.client.PlatformClient
- All Implemented Interfaces:
AutoCloseable
The main API entry point for access YellowDog Platform Services.
-
Method Summary
Modifier and TypeMethodDescriptionGets the client used to access the YellowDog Usage Allowances Servicevoid
close()
Releases any client resources, such as server sent event subscriptions.Gets the client used to access the YellowDog Cloud Info ServiceGets the client used to access the YellowDog Compute Servicestatic PlatformClient
create
(@NonNull ServicesSchema servicesSchema, @NonNull ApiKey key) Constructs a new PlatformClient instance using the supplied ServicesSchema to connect to YellowDogstatic PlatformClient
create
(@NonNull ServicesSchema servicesSchema, @NonNull ApiKey key, @NonNull ObjectStoreClientConfigurationProperties objectStoreClientConfigurationProperties) Gets the client used to access the YellowDog Images ServiceGets the client used to access the YellowDog Keyring ServiceGets the client used to access the YellowDog Cloud Namespaces ServiceGets the client used to access the YellowDog Object Store ServiceGets the client used to access the work component of the YellowDog Scheduler ServiceGets the client used to access the worker pools component of the YellowDog Scheduler Service
-
Method Details
-
create
public static PlatformClient create(@NonNull @NonNull ServicesSchema servicesSchema, @NonNull @NonNull ApiKey key) Constructs a new PlatformClient instance using the supplied ServicesSchema to connect to YellowDog- Parameters:
servicesSchema
- the ServicesSchema that defines the base URLs to use to connect to YellowDog- Returns:
- a new PlatformClient instance
-
create
public static PlatformClient create(@NonNull @NonNull ServicesSchema servicesSchema, @NonNull @NonNull ApiKey key, @NonNull @NonNull ObjectStoreClientConfigurationProperties objectStoreClientConfigurationProperties) -
keyringClient
Gets the client used to access the YellowDog Keyring Service- Returns:
- the client used to access the YellowDog Keyring Service
-
computeClient
Gets the client used to access the YellowDog Compute Service- Returns:
- the client used to access the YellowDog Compute Service
-
imagesClient
Gets the client used to access the YellowDog Images Service- Returns:
- the client used to access the YellowDog Images Service
-
objectStoreClient
Gets the client used to access the YellowDog Object Store Service- Returns:
- the client used to access the YellowDog Object Store Service
-
workClient
Gets the client used to access the work component of the YellowDog Scheduler Service- Returns:
- the client used to access the work component of the YellowDog Scheduler Service
-
workerPoolClient
Gets the client used to access the worker pools component of the YellowDog Scheduler Service- Returns:
- the client used to access the worker pools component of the YellowDog Scheduler Service
-
allowancesClient
Gets the client used to access the YellowDog Usage Allowances Service- Returns:
- the client used to access the YellowDog Usage Allowances Service
-
cloudInfoClient
Gets the client used to access the YellowDog Cloud Info Service- Returns:
- the client used to access the YellowDog Cloud Info Service
-
namespacesClient
Gets the client used to access the YellowDog Cloud Namespaces Service- Returns:
- the client used to access the YellowDog Cloud Namespaces Service
-
close
public void close()Releases any client resources, such as server sent event subscriptions.- Specified by:
close
in interfaceAutoCloseable
-