public interface Component
| Modifier and Type | Method and Description |
|---|---|
void |
connect(Connection connection,
RequestIDGenerator generator,
Config config)
Connect this component to the kernel.
|
java.lang.String |
getName()
Get the name of this component.
|
java.lang.String |
getPreferredLogContext()
Get the preferred log context for this component.
|
Registry |
getPreferredRegistry(Registry parent)
Get the registry this component would like to use for its connection.
|
void |
initialise()
Initialise this component before connection.
|
void |
shutdown()
Shut this component down.
|
void initialise()
throws ComponentInitialisationException
ComponentInitialisationException - If there is a problem initialising the component.void shutdown()
java.lang.String getName()
Registry getPreferredRegistry(Registry parent)
parent - The parent registry.java.lang.String getPreferredLogContext()
void connect(Connection connection, RequestIDGenerator generator, Config config) throws ConnectionException, ComponentConnectionException, java.lang.InterruptedException
connection - The Connection to use.generator - The RequestIDGenerator to use.config - The system configuration.ConnectionException - If there is a problem communicating with the kernel.ComponentConnectionException - If the connection fails.java.lang.InterruptedException - If the thread is interrupted before the connection attempt completes.