fulmine.model.container.subscription.remote
Class RemoteContainerSubscriptionManager
java.lang.Object
fulmine.AbstractLifeCycle
fulmine.event.subscription.SubscriptionManager
fulmine.model.container.subscription.ContainerSubscriptionManager
fulmine.model.container.subscription.remote.RemoteContainerSubscriptionManager
- All Implemented Interfaces:
- ISubscriptionManager, IDestroyable, ILifeCycle
public class RemoteContainerSubscriptionManager
- extends ContainerSubscriptionManager
Adds support for handling subscriptions for remote containers.
- Author:
- Ramon Servadei
Methods inherited from class fulmine.event.subscription.SubscriptionManager |
addListener, eventSourceCreated, eventSourceDestroyed, getContext, getListeners, getSubscribedSources, getSubscribedSources, getSubscription, getSubscriptions, includes, isSubscribed, removeListener, subscribe, toString, unsubscribe |
RemoteContainerSubscriptionManager
public RemoteContainerSubscriptionManager(IFrameworkContext context,
String remoteContextIdentity,
ISubscriptionFactory factory)
- Standard constructor
- Parameters:
context
- the context for thisremoteContextIdentity
- the identity of the remote context for the subscriptions that
this manager handlesfactory
- the container subscription factory to use
getLog
protected AsyncLog getLog()
- Description copied from class:
AbstractLifeCycle
- Get the log to use for the object hierarchy
- Overrides:
getLog
in class ContainerSubscriptionManager
- Returns:
- the log to use for the object hierarchy
doGetEventSource
protected IContainer doGetEventSource(IAddressable id)
- Description copied from class:
ContainerSubscriptionManager
- Template method to get the
IEventSource
identified by the
IAddressable
argument.
- Overrides:
doGetEventSource
in class ContainerSubscriptionManager
- Parameters:
id
- identifies the event source
- Returns:
- the
IEventSource
implementation to use
doGetEventSources
protected Collection<IContainer> doGetEventSources()
- Description copied from class:
SubscriptionManager
- Template method to get the collection of
IEventSource
instances
the manager will operate over.
- Overrides:
doGetEventSources
in class ContainerSubscriptionManager
- Returns:
- a collection of
IEventSource
instances
doEventSourceExists
protected boolean doEventSourceExists(IAddressable id)
- Description copied from class:
ContainerSubscriptionManager
- Template method to identify if the
IEventSource
identified by the
IAddressable
argument exists.
- Overrides:
doEventSourceExists
in class ContainerSubscriptionManager
- Parameters:
id
- identifies the event source
- Returns:
true
if the container exists in the current context
scope
doRaiseSubscribeEvent
protected void doRaiseSubscribeEvent(ISubscriptionParameters parameters)
- Overrides:
doRaiseSubscribeEvent
in class SubscriptionManager
doRaiseUnsubscribeEvent
protected void doRaiseUnsubscribeEvent(ISubscriptionParameters parameters)
- Overrides:
doRaiseUnsubscribeEvent
in class SubscriptionManager
Copyright © 2007-2009. All Rights Reserved.