Class CloudRegistryImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.CloudRegistryImpl
-
- All Implemented Interfaces:
CloudRegistrar
,CloudRegistry
public class CloudRegistryImpl extends Object implements CloudRegistrar, CloudRegistry
Cloud registry. Thread safe.
-
-
Constructor Summary
Constructors Constructor Description CloudRegistryImpl(CloudEventDispatcher dispatcher, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudClientFactory
findCloudFactoryByName(String name)
Looks for a factory with the specified name.List<CloudClientFactory>
getAllCloudFactories()
Returns Returns all available "Real" cloud types, excluding ReadOnlyClient (which is not a "real" cloud type, but rather used to show instances on the secondary nodes).void
registerCloudFactory(CloudClientFactory factory)
register new cloud accessor factoryvoid
unregisterAll()
void
unregisterCloudFactory(CloudClientFactory factory)
unregister new cloud accessor factory
-
-
-
Constructor Detail
-
CloudRegistryImpl
public CloudRegistryImpl(CloudEventDispatcher dispatcher, ServerResponsibility serverResponsibility)
-
-
Method Detail
-
registerCloudFactory
public void registerCloudFactory(@NotNull CloudClientFactory factory)
Description copied from interface:CloudRegistrar
register new cloud accessor factory- Specified by:
registerCloudFactory
in interfaceCloudRegistrar
- Parameters:
factory
- cloud accessor
-
unregisterCloudFactory
public void unregisterCloudFactory(@NotNull CloudClientFactory factory)
Description copied from interface:CloudRegistrar
unregister new cloud accessor factory- Specified by:
unregisterCloudFactory
in interfaceCloudRegistrar
- Parameters:
factory
- cloud accessor
-
unregisterAll
public void unregisterAll()
-
findCloudFactoryByName
@Nullable public CloudClientFactory findCloudFactoryByName(@NotNull String name)
Description copied from interface:CloudRegistry
Looks for a factory with the specified name.- Specified by:
findCloudFactoryByName
in interfaceCloudRegistry
- Parameters:
name
- name of cloud (in lower case).- Returns:
- regsitered cloud factory, or null if no such cloud.
-
getAllCloudFactories
@NotNull public List<CloudClientFactory> getAllCloudFactories()
Description copied from interface:CloudRegistry
Returns Returns all available "Real" cloud types, excluding ReadOnlyClient (which is not a "real" cloud type, but rather used to show instances on the secondary nodes).- Specified by:
getAllCloudFactories
in interfaceCloudRegistry
- Returns:
- unmodifiable list of factories; order of factories is undefined; empty list if no clouds registered.
-
-