public abstract class ComponentLauncher extends java.lang.Object implements RequestIDGenerator
| Constructor and Description |
|---|
ComponentLauncher(Config config)
Construct a new ComponentLauncher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect(Component c)
Connect a Component to the kernel.
|
int |
generateRequestID()
Generate a request ID.
|
Registry |
getDefaultRegistry()
Get the default registry for new connections.
|
protected abstract Connection |
makeConnection()
Make a new connection.
|
void |
setDefaultRegistry(Registry registry)
Set the default registry for new connections.
|
public ComponentLauncher(Config config)
config - The system configuration.public void connect(Component c) throws java.lang.InterruptedException, ConnectionException, ComponentConnectionException
c - The component to connect.java.lang.InterruptedException - If the thread is interrupted before the connection attempt completes.ConnectionException - If there is a problem communicating with the kernel.ComponentConnectionException - If the connection fails.public int generateRequestID()
RequestIDGeneratorgenerateRequestID in interface RequestIDGeneratorpublic void setDefaultRegistry(Registry registry)
registry - The new default registry.public Registry getDefaultRegistry()
protected abstract Connection makeConnection() throws ConnectionException
ConnectionException - If there is a problem creating the connection.