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,SnsPublisher,SocketProductSender,WebSocketClient
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:
configurein interfaceConfigurable- Parameters:
config- the Config object with settings.- Throws:
Exception- if configuration exceptions occur.
-
startup
Start any processing/background threads.- Specified by:
startupin interfaceConfigurable- Throws:
Exception- if exceptions occur while starting.
-
shutdown
Stop any processing/background threads.- Specified by:
shutdownin interfaceConfigurable- Throws:
Exception- if exceptions occur while starting.
-
getName
Description copied from interface:ConfigurableGet this object name.- Specified by:
getNamein interfaceConfigurable- Returns:
- the name.
-
setName
Description copied from interface:ConfigurableSet 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:
setNamein interfaceConfigurable- Parameters:
name- the name.
-