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(java.util.UUID uniqueId)Gets the info of a cloud service by its uniqueId@NotNull de.dytanic.cloudnet.common.concurrent.ITask<ServiceInfoSnapshot>getCloudServiceAsync(java.util.UUID uniqueId)Gets the info of a cloud service by its uniqueId@Nullable ServiceInfoSnapshotgetCloudServiceByName(java.lang.String name)Gets the info of a cloud service by its name@NotNull de.dytanic.cloudnet.common.concurrent.ITask<ServiceInfoSnapshot>getCloudServiceByNameAsync(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(ServiceEnvironmentType environment)Gets a list with the infos of all services in the cloud that have the given environmentjava.util.Collection<ServiceInfoSnapshot>getCloudServices(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(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(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(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(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(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(java.lang.String group)Gets the amount of services by the given group in the cloudintgetServicesCountByTask(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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
-
-