Class ServiceRegistry

java.lang.Object
org.apache.vinci.transport.vns.service.ServiceRegistry

public class ServiceRegistry extends Object
Primary interface into the services database.
  • Constructor Details

    • ServiceRegistry

      public ServiceRegistry()
  • Method Details

    • addBinding

      public void addBinding(Service S)
    • delBinding

      public void delBinding(Service S)
    • checkConflict

      public boolean checkConflict(String ip, int min, int max)
    • checkBinding

      public boolean checkBinding(Service S)
    • addService

      public boolean addService(Service S)
    • addAlias

      public boolean addAlias(ServiceAlias S)
    • delAlias

      public boolean delAlias(String name)
    • addEntry

      public boolean addEntry(Object o)
    • updateService

      public boolean updateService(Service S)
    • delService

      public boolean delService(Service S)
    • getServices

      public Service[] getServices(String name)
    • getServices

      public Service[] getServices(String name, String level)
    • getServices

      public Service[] getServices(String name, int level)
    • getServices

      public Service[] getServices(String name, int level, boolean resolveAlias)
    • getServices

      public Service[] getServices(String name, String level, boolean resolveAlias)
    • listServices

      public Object[] listServices(String prefix, int level)
    • listServices

      public Object[] listServices(String prefix, String level)
    • listNames

      public String[] listNames(String prefix, int level)
    • listNames

      public String[] listNames(String prefix, String level)
    • load

      public void load(String fname) throws Exception
      Throws:
      Exception
    • save

      public void save(Writer F) throws IOException
      Throws:
      IOException
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • pr

      public static void pr(String s)