consciouscode.util
Class RmiUtils

java.lang.Object
  extended by consciouscode.util.RmiUtils

public class RmiUtils
extends Object

Various helper utilities for Java RMI.


Constructor Summary
RmiUtils()
           
 
Method Summary
static Remote waitForBinding(String url, int timeout)
          Wait for an RMI server to come online.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiUtils

public RmiUtils()
Method Detail

waitForBinding

public static Remote waitForBinding(String url,
                                    int timeout)
                             throws MalformedURLException,
                                    RemoteException
Wait for an RMI server to come online.

Parameters:
url - the RMI URL for the desired server.
timeout - the timeout period, in milliseconds.
Returns:
the requested server, or null if it does not become available in the indicated timeout period.
Throws:
MalformedURLException
RemoteException


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.