org.mmbase.bridge
Class RemoteContext

java.lang.Object
  extended by org.mmbase.bridge.RemoteContext

public final class RemoteContext
extends Object

This, despite its name, is not actually a CloudContext, it only provides the static method to obtain one.

Since:
MMBase-1.5
Version:
$Id: RemoteContext.java 39265 2009-10-20 20:38:42Z michiel $
Author:
Kees Jongenburger

Nested Class Summary
static class RemoteContext.RemoteResolver
           
 
Method Summary
static CloudContext getCloudContext(String uri)
          Connect to a remote cloudcontext.
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCloudContext

public static CloudContext getCloudContext(String uri)
Connect to a remote cloudcontext. The name of the context depends on configurations found in mmbaseroot.xml (host) and rmmci.xml for port and context name

Parameters:
uri - rmi uri like rmi://www.mmbase.org:1111/remotecontext
Returns:
the remote cloud context named remotecontext
Throws:
RuntimeException - if anything goes wrong
To Do:
should throw a Bridge Exception (?)

main

public static void main(String[] argv)


MMBase 2.0-SNAPSHOT - null