fulmine.context
Interface IFrameworkContext
- All Superinterfaces:
- IDestroyable, IDistributionManager, IEventManager, IFulmineContext, ILifeCycle, IModelManager, IRetransmissionManager, IRpcManager, IRpcPublishOperations, IRpcTransmissionManager
- All Known Implementing Classes:
- FTContext, FulmineContext
public interface IFrameworkContext
- extends IFulmineContext
The framework context; this provides access to properties of the context that
should only be accessed by the framework internals.
- Author:
- Ramon Servadei
NAME
static final String NAME
- See Also:
- Constant Field Values
getConnectionBroker
IConnectionBroker getConnectionBroker()
- Get the connection broker for the context.
- Returns:
- the broker for this context,
null
if there is no
broker in the context - See Also:
setConnectionBroker(IConnectionBroker)
getNetwork
INetwork getNetwork()
- Get the network
- Returns:
- the network for this context
getContextWatchdog
IContextWatchdog getContextWatchdog()
- Get the component that will report on the state of this context
- Returns:
- a component that can report on the state of this context
setConnectionBroker
void setConnectionBroker(IConnectionBroker broker)
- Set the connection broker for the context. This allows the context to
create connections to remote contexts. This must be called before
IFulmineContext.start()
.
- Parameters:
broker
- the broker to use to create connections to remote contexts
setConnectionDiscoverer
void setConnectionDiscoverer(IConnectionDiscoverer discoverer)
- Set the discover for the context. This allows the context to discover
connections to remote contexts. This must be called before
IFulmineContext.start()
.
- Parameters:
discoverer
- the discoverer to use to find connections to other remote
contexts
getConnectionDiscoverer
IConnectionDiscoverer getConnectionDiscoverer()
- Get the connection discoverer in use by this context.
- Returns:
- the connection discoverer in use,
null
if there is
not one allocated.
setDistributionManager
void setDistributionManager(IDistributionManager distributionManager)
- Provide a different implementation of the distribution manager.
- Parameters:
distributionManager
- the distribution manager to use
getDistributionManager
IDistributionManager getDistributionManager()
- Get the distribution manager assigned to the context
- Returns:
- the distribution manager assigned to this context
getEventProcessorIdentityPrefix
String getEventProcessorIdentityPrefix()
- Get the event processor identity prefix. This appears as the prefix for
all event processor threads in this context.
- Returns:
- the event processor identity prefix
getSystemInfo
IContainer getSystemInfo()
- Get the 'system info' record that is used to encapsulate any system level
information about the context. This is typically used by remote
subscribers to inspect the state of the context.
Bespoke attributes can be attached to this record by application code.
Copyright © 2007-2009. All Rights Reserved.