Package edu.sc.seis.sod.source
Class AbstractSource
java.lang.Object
edu.sc.seis.sod.source.AbstractSource
- All Implemented Interfaces:
Source
- Direct Known Subclasses:
AbstractCSVSource
,AbstractEventSource
,AbstractNetworkSource
,ConstantSeismogramSourceLocator
,EventFinder
,FixedDataCenter
,PeriodicFakeEventSource
,PlottableRequest
,SimpleEventSource
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSource
(String name) AbstractSource
(String name, int retries) AbstractSource
(Element config, String defaultName) AbstractSource
(Element config, String defaultName, int defaultRetries) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendToName
(String suffix) Allows name to be appended to in case of conflicts with other sources.edu.sc.seis.fissuresUtil.namingService.FissuresNamingService
getName()
returns the name of the server.int
edu.sc.seis.fissuresUtil.cache.RetryStrategy
void
setRetryStrategy
(edu.sc.seis.fissuresUtil.cache.RetryStrategy retryStrategy)
-
Field Details
-
name
-
NAME_ELEMENT
- See Also:
-
RETRIES_ELEMENT
- See Also:
-
-
Constructor Details
-
AbstractSource
-
AbstractSource
-
AbstractSource
-
AbstractSource
-
-
Method Details
-
getName
Description copied from interface:Source
returns the name 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 -
getRetries
public int getRetries()- Specified by:
getRetries
in interfaceSource
-
getFissuresNamingService
public edu.sc.seis.fissuresUtil.namingService.FissuresNamingService getFissuresNamingService() -
getRetryStrategy
public edu.sc.seis.fissuresUtil.cache.RetryStrategy getRetryStrategy() -
setRetryStrategy
public void setRetryStrategy(edu.sc.seis.fissuresUtil.cache.RetryStrategy retryStrategy) -
appendToName
Description copied from interface:Source
Allows name to be appended to in case of conflicts with other sources.- Specified by:
appendToName
in interfaceSource
-