edu.sc.seis.sod.source
Class AbstractSource

java.lang.Object
  extended by edu.sc.seis.sod.source.AbstractSource
All Implemented Interfaces:
Source
Direct Known Subclasses:
AbstractNetworkSource, EventFinder, FixedDataCenter, PlottableRequest

public abstract class AbstractSource
extends java.lang.Object
implements Source


Constructor Summary
AbstractSource(org.w3c.dom.Element config, java.lang.String defaultName)
           
AbstractSource(java.lang.String dns, java.lang.String name)
           
AbstractSource(java.lang.String dns, java.lang.String name, int retries)
           
 
Method Summary
 java.lang.String getDNS()
          returns the DNSName of the server.
 FissuresNamingService getFissuresNamingService()
           
 java.lang.String getName()
          returns the sourceName of the server.
 int getRetries()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSource

public AbstractSource(java.lang.String dns,
                      java.lang.String name)

AbstractSource

public AbstractSource(java.lang.String dns,
                      java.lang.String name,
                      int retries)

AbstractSource

public AbstractSource(org.w3c.dom.Element config,
                      java.lang.String defaultName)
Method Detail

getDNS

public java.lang.String getDNS()
Description copied from interface: Source
returns the DNSName of the server. The context under which the objectName is registered in the CORBA naming service. For non-corba servers, this string can be anything that seems reasonable and is relatively unique

Specified by:
getDNS in interface Source
Returns:
a String value

getName

public java.lang.String getName()
Description copied from interface: Source
returns the sourceName of the server. The name to which the server's servant instance is bound in the CORBA naming service. For non-corba servers, this string can be anything that seems reasonable and is relatively unique

Specified by:
getName in interface Source

getRetries

public int getRetries()

getFissuresNamingService

public FissuresNamingService getFissuresNamingService()