org.mmbase.bridge
Interface CloudContext

All Known Implementing Classes:
BasicCloudContext

public interface CloudContext

The collection of clouds and modules within a Java Virtual Machine.

Author:
Rob Vermeulen, Pierre van Rooden, Jaco de Groot

Method Summary
 Cloud getCloud(java.lang.String name)
          Returns the cloud with the specified name.
 Cloud getCloud(java.lang.String name, java.lang.String authenticationtype, java.util.HashMap loginInfo)
          Returns the cloud with the specified name, with authentication
 StringList getCloudNames()
          Returns the names of all the clouds known to the system
 Module getModule(java.lang.String name)
          Returns the module with the specified name.
 ModuleList getModules()
          Returns all modules available in this context.
 

Method Detail

getModules

public ModuleList getModules()
Returns all modules available in this context.
Returns:
all available modules

getModule

public Module getModule(java.lang.String name)
Returns the module with the specified name.
Parameters:
name - the name of the module to be returned
Returns:
the requested module
Throws:
ModuleNotFoundException - if the specified module could not be found

getCloud

public Cloud getCloud(java.lang.String name)
Returns the cloud with the specified name.
Parameters:
name - the name of the cloud to be returned
Returns:
the requested cloud
Throws:
CloudNotFoundException - if the specified cloud could not be found

getCloud

public Cloud getCloud(java.lang.String name,
                      java.lang.String authenticationtype,
                      java.util.HashMap loginInfo)
Returns the cloud with the specified name, with authentication
Parameters:
name - the name of the cloud to be returned
authenticationtype - the type of authentication, which should be used by the authentication implementation.
loginInfo - the user related login information.
Returns:
the requested cloud
Throws:
CloudNotFoundException - if the specified cloud could not be found

getCloudNames

public StringList getCloudNames()
Returns the names of all the clouds known to the system
Returns:
A StringList of all clouds names known to our Context


MMBase 2001