Interface GeneralCloudServiceProvider
-
public interface GeneralCloudServiceProviderThis class provides methods to get information to the services in the cluster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable ServiceInfoSnapshotgetCloudService(@NotNull java.util.UUID uniqueId)Gets the info of a cloud service by its uniqueId@NotNull de.dytanic.cloudnet.common.concurrent.ITask<ServiceInfoSnapshot>getCloudServiceAsync(@NotNull java.util.UUID uniqueId)Gets the info of a cloud service by its uniqueId@Nullable ServiceInfoSnapshotgetCloudServiceByName(@NotNull java.lang.String name)Gets the info of a cloud service by its name@NotNull de.dytanic.cloudnet.common.concurrent.ITask<ServiceInfoSnapshot>getCloudServiceByNameAsync(@NotNull java.lang.String name)Gets the info of a cloud service by its namejava.util.Collection<ServiceInfoSnapshot>getCloudServices()Gets a list with the infos of all services in the cloudjava.util.Collection<ServiceInfoSnapshot>getCloudServices(@NotNull ServiceEnvironmentType environment)Gets a list with the infos of all services in the cloud that have the given environmentjava.util.Collection<ServiceInfoSnapshot>getCloudServices(@NotNull java.lang.String taskName)Gets a list with the infos of all services in the cloud that are from the given task@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>>getCloudServicesAsync()Gets a list with the infos of all services in the cloud@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>>getCloudServicesAsync(@NotNull ServiceEnvironmentType environment)Gets a list with the infos of all services in the cloud that have the given environment@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>>getCloudServicesAsync(@NotNull java.lang.String taskName)Gets a list with the infos of all services in the cloud that are from the given taskjava.util.Collection<ServiceInfoSnapshot>getCloudServicesByGroup(@NotNull java.lang.String group)Gets a list with the infos of all services in the cloud that have the given group@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>>getCloudServicesByGroupAsync(@NotNull java.lang.String group)Gets a list with the infos of all services in the cloud that have the given groupjava.util.Collection<java.util.UUID>getServicesAsUniqueId()Gets a list with the uniqueIds of all services in the cloud@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<java.util.UUID>>getServicesAsUniqueIdAsync()Gets a list with the uniqueIds of all services in the cloudintgetServicesCount()Gets the amount of services in the cloud@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Integer>getServicesCountAsync()Gets the amount of services in the cloudintgetServicesCountByGroup(@NotNull java.lang.String group)Gets the amount of services by the given group in the cloud@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Integer>getServicesCountByGroupAsync(@NotNull java.lang.String group)Gets the amount of services by the given group in the cloudintgetServicesCountByTask(@NotNull java.lang.String taskName)Gets the amount of services by the given task in the cloud@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Integer>getServicesCountByTaskAsync(@NotNull java.lang.String taskName)Gets the amount of services by the given task in the cloudjava.util.Collection<ServiceInfoSnapshot>getStartedCloudServices()Gets a list with the infos of all started services in the cloud@NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>>getStartedCloudServicesAsync()Gets a list with the infos of all started services in the cloud
-
-
-
Method Detail
-
getServicesAsUniqueId
java.util.Collection<java.util.UUID> getServicesAsUniqueId()
Gets a list with the uniqueIds of all services in the cloud- Returns:
- a list containing the uniqueIds of every service in the whole cloud
-
getCloudServices
java.util.Collection<ServiceInfoSnapshot> getCloudServices()
Gets a list with the infos of all services in the cloud- Returns:
- a list containing the infos of every service in the whole cloud
-
getStartedCloudServices
java.util.Collection<ServiceInfoSnapshot> getStartedCloudServices()
Gets a list with the infos of all started services in the cloud- Returns:
- a list containing the infos of every started service in the whole cloud
-
getCloudServices
java.util.Collection<ServiceInfoSnapshot> getCloudServices(@NotNull @NotNull java.lang.String taskName)
Gets a list with the infos of all services in the cloud that are from the given task- Parameters:
taskName- the case-insensitive name of the task every service in the list should have- Returns:
- a list containing the infos of every service with the given task in the whole cloud
-
getCloudServices
java.util.Collection<ServiceInfoSnapshot> getCloudServices(@NotNull @NotNull ServiceEnvironmentType environment)
Gets a list with the infos of all services in the cloud that have the given environment- Parameters:
environment- the environment every service in the list should have- Returns:
- a list containing the infos of every service with the given environment in the whole cloud
-
getCloudServicesByGroup
java.util.Collection<ServiceInfoSnapshot> getCloudServicesByGroup(@NotNull @NotNull java.lang.String group)
Gets a list with the infos of all services in the cloud that have the given group- Parameters:
group- the case-insensitive name of the task every service in the list should have- Returns:
- a list containing the infos of every service with the given group in the whole cloud
-
getServicesCount
int getServicesCount()
Gets the amount of services in the cloud- Returns:
- an integer for the amount of services in the whole cloud
-
getServicesCountByGroup
int getServicesCountByGroup(@NotNull @NotNull java.lang.String group)Gets the amount of services by the given group in the cloud- Parameters:
group- the group every service counting should have- Returns:
- an integer for the amount of services in the whole cloud
-
getServicesCountByTask
int getServicesCountByTask(@NotNull @NotNull java.lang.String taskName)Gets the amount of services by the given task in the cloud- Parameters:
taskName- the task every service counting should have- Returns:
- an integer for the amount of services in the whole cloud
-
getCloudServiceByName
@Nullable @Nullable ServiceInfoSnapshot getCloudServiceByName(@NotNull @NotNull java.lang.String name)
Gets the info of a cloud service by its name- Parameters:
name- the name of the service- Returns:
- the info of the service or
nullif the service doesn't exist
-
getCloudService
@Nullable @Nullable ServiceInfoSnapshot getCloudService(@NotNull @NotNull java.util.UUID uniqueId)
Gets the info of a cloud service by its uniqueId- Parameters:
uniqueId- the uniqueId of the service- Returns:
- the info of the service or
nullif the service doesn't exist
-
getServicesAsUniqueIdAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<java.util.UUID>> getServicesAsUniqueIdAsync()
Gets a list with the uniqueIds of all services in the cloud- Returns:
- a list containing the uniqueIds of every service in the whole cloud
-
getCloudServicesAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>> getCloudServicesAsync()
Gets a list with the infos of all services in the cloud- Returns:
- a list containing the infos of every service in the whole cloud
-
getStartedCloudServicesAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>> getStartedCloudServicesAsync()
Gets a list with the infos of all started services in the cloud- Returns:
- a list containing the infos of every started service in the whole cloud
-
getCloudServicesAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>> getCloudServicesAsync(@NotNull @NotNull java.lang.String taskName)
Gets a list with the infos of all services in the cloud that are from the given task- Parameters:
taskName- the name of the task every service in the list should have- Returns:
- a list containing the infos of every service with the given task in the whole cloud
-
getCloudServicesAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>> getCloudServicesAsync(@NotNull @NotNull ServiceEnvironmentType environment)
Gets a list with the infos of all services in the cloud that have the given environment- Parameters:
environment- the environment every service in the list should have- Returns:
- a list containing the infos of every service with the given environment in the whole cloud
-
getCloudServicesByGroupAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Collection<ServiceInfoSnapshot>> getCloudServicesByGroupAsync(@NotNull @NotNull java.lang.String group)
Gets a list with the infos of all services in the cloud that have the given group- Parameters:
group- the name of the task every service in the list should have- Returns:
- a list containing the infos of every service with the given group in the whole cloud
-
getServicesCountAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Integer> getServicesCountAsync()
Gets the amount of services in the cloud- Returns:
- an integer for the amount of services in the whole cloud
-
getServicesCountByGroupAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Integer> getServicesCountByGroupAsync(@NotNull @NotNull java.lang.String group)Gets the amount of services by the given group in the cloud- Parameters:
group- the group every service counting should have- Returns:
- an integer for the amount of services in the whole cloud
-
getServicesCountByTaskAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Integer> getServicesCountByTaskAsync(@NotNull @NotNull java.lang.String taskName)Gets the amount of services by the given task in the cloud- Parameters:
taskName- the task every service counting should have- Returns:
- an integer for the amount of services in the whole cloud
-
getCloudServiceByNameAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<ServiceInfoSnapshot> getCloudServiceByNameAsync(@NotNull @NotNull java.lang.String name)
Gets the info of a cloud service by its name- Parameters:
name- the name of the service- Returns:
- the info of the service or
nullif the service doesn't exist
-
getCloudServiceAsync
@NotNull @NotNull de.dytanic.cloudnet.common.concurrent.ITask<ServiceInfoSnapshot> getCloudServiceAsync(@NotNull @NotNull java.util.UUID uniqueId)
Gets the info of a cloud service by its uniqueId- Parameters:
uniqueId- the uniqueId of the service- Returns:
- the info of the service or
nullif the service doesn't exist
-
-