Class RMIRegistryUtil

java.lang.Object
org.distributeme.core.RMIRegistryUtil

public class RMIRegistryUtil extends Object
Utils for handling the RMIRegistry object.
Version:
$Id: $Id
Author:
lrosenberg
  • Constructor Details

    • RMIRegistryUtil

      public RMIRegistryUtil()
  • Method Details

    • findOrCreateRegistry

      public static Registry findOrCreateRegistry() throws RemoteException
      Finds or creates a new registry.
      Returns:
      Returns created registry instance.
      Throws:
      RemoteException - if any.
    • findOrCreateRegistry

      public static Registry findOrCreateRegistry(int port) throws RemoteException
      Finds or creates a new registry.
      Parameters:
      port - port to listen to. If port is below zero, it will be ignored.
      Returns:
      Returns created registry instance.
      Throws:
      RemoteException - if any.
    • getRmiRegistryPort

      public static int getRmiRegistryPort()

      Getter for the field rmiRegistryPort.

      Returns:
      a int.