|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDistributionState
Interface for the shared state object of the DistributionManager
.
Method Summary | |
---|---|
IChannelFactory |
createChannelFactory()
Create the channel factory to use |
IChannelFactory |
getChannelFactory()
Constructs the channels |
Map<String,IChannel> |
getChannels()
The channels in use, keyed on remote context identity. |
IReferenceCounter<String> |
getConnectedContexts()
Tracks number of connections to other remote contexts. |
IReferenceCounter<String> |
getCONNECTINGContexts()
Tracks whether this context is CONNECTING to a remote context (identified by the IConnectionParameters.getRemoteContextIdentity() ). |
IFrameworkContext |
getContext()
The context |
Map<String,IConnectionParameters> |
getDiscoveredContexts()
The discovered contexts, keyed on remote context identity. |
ILifeCycleEventListener |
getEventHandler()
Get the event handler |
IFrameReader |
getFrameReader()
The frame reader |
IFrameWriter |
getFrameWriter()
The frame writer |
IAutoCreatingStore<String,Set<DualValue<ISubscriptionParameters,IEventListener>>> |
getRemoteSubscriptions()
Tracks all the subscriptions per remote context. |
IRemoteUpdateInvoker |
getRemoteUpdateInvoker(String remoteContextIdentity)
Get the IRemoteUpdateInvoker to use for updating remote
containers |
ISubscriptionManager |
getSubscriptionManager()
Handles the subscriptions for local containers |
void |
init()
Initialise the state |
void |
setChannels(Map<String,IChannel> channels)
Set the channels. |
Methods inherited from interface fulmine.ILifeCycle |
---|
isActive, start |
Methods inherited from interface fulmine.IDestroyable |
---|
destroy |
Method Detail |
---|
void init()
IChannelFactory createChannelFactory()
IChannelFactory getChannelFactory()
ILifeCycleEventListener getEventHandler()
Map<String,IChannel> getChannels()
Map<String,IConnectionParameters> getDiscoveredContexts()
Access to this must be synchronised on the IDistributionState
.
ISubscriptionManager getSubscriptionManager()
IAutoCreatingStore<String,Set<DualValue<ISubscriptionParameters,IEventListener>>> getRemoteSubscriptions()
Access to this must be synchronised on the IDistributionState
.
IReferenceCounter<String> getConnectedContexts()
Access to this must be synchronised on the IDistributionState
.
IReferenceCounter<String> getCONNECTINGContexts()
IConnectionParameters.getRemoteContextIdentity()
). This
ensures that the CONNECTING operation to a remote context is idempotent.
Access to this must be synchronised on the IDistributionState
IFrameworkContext getContext()
IFrameReader getFrameReader()
IFrameWriter getFrameWriter()
void setChannels(Map<String,IChannel> channels)
Access to this must be synchronised on the IDistributionState
.
Uses the 'cheap read-write lock'
IRemoteUpdateInvoker getRemoteUpdateInvoker(String remoteContextIdentity)
IRemoteUpdateInvoker
to use for updating remote
containers
remoteContextIdentity
- the remote context the invoker handles
IRemoteUpdateInvoker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |