public interface InstanceContext extends Context<InstanceContext>
The instance context is the primary immutable configuration used by each instance of a component verticle or module to construct its input and output ports/connections. Note that the context is observable, and component instance observe the context for changes within the cluster in order to support runtime network configuration changes by automatically updating their input and output connections when the context changes.
| Modifier and Type | Method and Description |
|---|---|
String |
address()
Returns the instance address.
|
<T extends ComponentContext> |
component()
Returns the parent component context.
|
InputContext |
input()
Returns the instance input context.
|
int |
number()
Returns the instance number.
|
OutputContext |
output()
Returns the instance output context.
|
String |
status()
Returns the instance status address.
|
notify, registerObserver, unregisterObserverint number()
String address()
This is simply a unique identifier used to identify the component across all networks.
address in interface Context<InstanceContext>String status()
The status address is used by the component instance to notify the network and other components within the network of its current status. This is used by the network manager to coordinate startup of components across a network.
InputContext input()
OutputContext output()
<T extends ComponentContext> T component()
Copyright © 2013-2014. All Rights Reserved.