net.cnri.dobj
Class DOServiceInfo

java.lang.Object
  extended by net.cnri.dobj.DOServiceInfo

public class DOServiceInfo
extends java.lang.Object


Constructor Summary
DOServiceInfo(java.lang.String serviceHandle)
           
DOServiceInfo(java.lang.String serviceHandle, DOServerInfo[] servers)
           
DOServiceInfo(java.lang.String serviceHandle, java.lang.String host, int port, byte[] pubKeyBytes)
          Convenience constructor for a service with a single server
 
Method Summary
 DOServerInfo getServer(int serverNum)
           
 int getServerCount()
           
 java.lang.String getServiceID()
          Return the identifier that was resolved to get this service
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOServiceInfo

public DOServiceInfo(java.lang.String serviceHandle)
              throws DOException
Throws:
DOException

DOServiceInfo

public DOServiceInfo(java.lang.String serviceHandle,
                     DOServerInfo[] servers)
              throws DOException
Throws:
DOException

DOServiceInfo

public DOServiceInfo(java.lang.String serviceHandle,
                     java.lang.String host,
                     int port,
                     byte[] pubKeyBytes)
              throws DOException
Convenience constructor for a service with a single server

Throws:
DOException
Method Detail

getServiceID

public java.lang.String getServiceID()
Return the identifier that was resolved to get this service


getServerCount

public int getServerCount()

getServer

public DOServerInfo getServer(int serverNum)