| |
|
| java.lang.Object org.mmbase.bridge.ContextProvider
ContextProvider | public class ContextProvider (Code) | | Main class to aquire CloudContexts
author: Kees Jongenburger version: $Id: ContextProvider.java,v 1.10 2005/11/04 23:20:25 michiel Exp $ since: MMBase-1.5 |
DEFAULT_CLOUD_CONTEXT_NAME | final public static String DEFAULT_CLOUD_CONTEXT_NAME(Code) | | When no system property mmbase.defaultcloudcontext is set
the default cloud context is the context returned when
DEFAULT_CLOUD_CONTEXT_NAME is fed to getCloudContext(String)
DEFAULT_CLOUD_CONTEXT_NAME="local"
|
getCloudContext | public static CloudContext getCloudContext(String uri)(Code) | | Factory method to get an instance of a CloudContext. Depending
on the uri parameter given the CloudContext might be a local context
or a remote context (rmi)
Parameters: uri - an identifier for the context possible values:- local : will return a local context
- rmi://hostname:port/contextname : will return a remote context
- a null parameter: will return the default context
a cloud context throws: BridgeException - if the cloudcontext was not found |
getDefaultCloudContext | public static CloudContext getDefaultCloudContext()(Code) | | since: MMBase-1.7 the default cloud context This is the local cloud if mmbase is running or could be started (with mmbase.config system property), Otherwise a default rmmci cloud, or specified with mmbase.defaultcloudtext.property |
getDefaultCloudContextName | public static String getDefaultCloudContextName()(Code) | | since: MMBase-1.7 the name of the cloud context to be used as default |
|
|
|