Package gov.usgs.util
Class DefaultConfigurable
java.lang.Object
gov.usgs.util.DefaultConfigurable
- All Implemented Interfaces:
Configurable
- Direct Known Subclasses:
AbstractListener
,AdminSocketServer
,ArchivePolicy
,AwsProductSender
,AwsSecretResolver
,CLIProductBuilder
,DebugProductSender
,DefaultIndexerModule
,DefaultNotificationReceiver
,DefaultStorageListener
,DirectoryPoller
,ExecutorListenerNotifier
,FileProductStorage
,FileTrackingListener
,JDBCConnection
,ProductBuilder
,ProductClient
,ProductKey
,ProductsCreatedAfterClient
,RoundRobinListenerNotifier
,SearchServerSocket
,SignatureVerifier
,SocketProductSender
Default implementation of all methods on the Configurable interface.
Classes may override individual methods as needed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultConfigurable
public DefaultConfigurable()
-
-
Method Details
-
configure
Process configuration settings. Called before startup().- Specified by:
configure
in interfaceConfigurable
- Parameters:
config
- the Config object with settings.- Throws:
Exception
- if configuration exceptions occur.
-
startup
Start any processing/background threads.- Specified by:
startup
in interfaceConfigurable
- Throws:
Exception
- if exceptions occur while starting.
-
shutdown
Stop any processing/background threads.- Specified by:
shutdown
in interfaceConfigurable
- Throws:
Exception
- if exceptions occur while starting.
-
getName
Description copied from interface:Configurable
Get this object name.- Specified by:
getName
in interfaceConfigurable
- Returns:
- the name.
-
setName
Description copied from interface:Configurable
Set this object name. This method is typically called by a Config object when the configurable object is loaded out of a config file. name will be set to the config section.- Specified by:
setName
in interfaceConfigurable
- Parameters:
name
- the name.
-