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

Field Summary
static String NAME
           
 
Fields inherited from interface fulmine.rpc.IRpcManager
DEFAULT_RPC_TIMEOUT, RPC_TIMEOUT
 
Method Summary
 IConnectionBroker getConnectionBroker()
          Get the connection broker for the context.
 IConnectionDiscoverer getConnectionDiscoverer()
          Get the connection discoverer in use by this context.
 IContextWatchdog getContextWatchdog()
          Get the component that will report on the state of this context
 IDistributionManager getDistributionManager()
          Get the distribution manager assigned to the context
 String getEventProcessorIdentityPrefix()
          Get the event processor identity prefix.
 INetwork getNetwork()
          Get the network
 IContainer getSystemInfo()
          Get the 'system info' record that is used to encapsulate any system level information about the context.
 void setConnectionBroker(IConnectionBroker broker)
          Set the connection broker for the context.
 void setConnectionDiscoverer(IConnectionDiscoverer discoverer)
          Set the discover for the context.
 void setDistributionManager(IDistributionManager distributionManager)
          Provide a different implementation of the distribution manager.
 
Methods inherited from interface fulmine.context.IFulmineContext
getContextHashCode, getIdentity, getPermissionProfile, setContextWatchdog, setNetwork, setPermissionProfile, setRemoteUpdateHandler, start
 
Methods inherited from interface fulmine.ILifeCycle
isActive
 
Methods inherited from interface fulmine.IDestroyable
destroy
 
Methods inherited from interface fulmine.model.IModelManager
addContainer, containsLocalContainer, containsRemoteContainer, getContainerFactory, getLocalContainer, getLocalContainers, getRemoteContainer, getRemoteContainers, removeContainer
 
Methods inherited from interface fulmine.ILifeCycle
isActive
 
Methods inherited from interface fulmine.IDestroyable
destroy
 
Methods inherited from interface fulmine.event.IEventManager
execute, getEventProcessorCount, getEventProcessorThreadGroup, getSystemEventSource, queueEvent, queueEvents, schedule
 
Methods inherited from interface fulmine.ILifeCycle
isActive
 
Methods inherited from interface fulmine.IDestroyable
destroy
 
Methods inherited from interface fulmine.distribution.IDistributionManager
addSubscriptionListener, getConnectedChannels, getFrameReader, getFrameWriter, removeSubscriptionListener, subscribe, unsubscribe, updateRemoteContainer
 
Methods inherited from interface fulmine.ILifeCycle
isActive
 
Methods inherited from interface fulmine.IDestroyable
destroy
 
Methods inherited from interface fulmine.distribution.IRetransmissionManager
requestRetransmit, requestRetransmitAll, retransmit, retransmitAll, retransmitAllToAll, retransmitToAll
 
Methods inherited from interface fulmine.rpc.IRpcTransmissionManager
invokeRpc
 
Methods inherited from interface fulmine.rpc.IRpcManager
addRpcPublicationListener, invoke, invoke, removeRpcPublicationListener
 
Methods inherited from interface fulmine.ILifeCycle
isActive
 
Methods inherited from interface fulmine.IDestroyable
destroy
 
Methods inherited from interface fulmine.rpc.IRpcPublishOperations
publishProdedure, publishRpcs, unpublishProdedure, unpublishRpcs
 

Field Detail

NAME

static final String NAME
See Also:
Constant Field Values
Method Detail

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.