org.atmosphere.plugin.rmi
Class RMIBroadcaster

java.lang.Object
  extended by org.atmosphere.cpr.DefaultBroadcaster
      extended by org.atmosphere.util.AbstractBroadcasterProxy
          extended by org.atmosphere.plugin.rmi.RMIBroadcaster
All Implemented Interfaces:
org.atmosphere.cpr.Broadcaster

public class RMIBroadcaster
extends org.atmosphere.util.AbstractBroadcasterProxy

This broadcaster is able, each time a message is broadcasted, to update the a cluster through RMI.

Since:
1.1.1
Version:
1.0
Author:
Guillaume DROUET
See Also:
RMIPeerManager

Nested Class Summary
 
Nested classes/interfaces inherited from class org.atmosphere.cpr.DefaultBroadcaster
org.atmosphere.cpr.DefaultBroadcaster.AsyncWriteToken
 
Nested classes/interfaces inherited from interface org.atmosphere.cpr.Broadcaster
org.atmosphere.cpr.Broadcaster.POLICY, org.atmosphere.cpr.Broadcaster.SCOPE
 
Field Summary
 
Fields inherited from class org.atmosphere.cpr.DefaultBroadcaster
ASYNC_TOKEN, asyncWriteFuture, bc, broadcasterListeners, broadcastOnResume, CACHED, config, delayedBroadcast, destroyed, dispatchThread, lifeCycleListeners, messages, name, noOpsResource, notifierFuture, resources, scope, started, uniqueWriteQueue, uri, waitTime, writeQueues, writeTimeoutInSecond
 
Constructor Summary
RMIBroadcaster(String id, org.atmosphere.cpr.AtmosphereConfig config)
           Builds a new instance identified by the given ID.
 
Method Summary
 void broadcastReceivedMessage(Object message)
          
 void incomingBroadcast()
          
 void outgoingBroadcast(Object o)
          
 
Methods inherited from class org.atmosphere.util.AbstractBroadcasterProxy
broadcast, broadcast, broadcast, getBroadcastHandler, invokeOnStateChange, reconfigure
 
Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcastOnResume, broadcastOnResume, cacheAndSuspend, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheLostMessage, checkCachedAndPush, createBroadcasterConfig, delayBroadcast, delayBroadcast, deliverPush, destroy, dispatchMessages, entryDone, executeAsyncWrite, filter, futureDone, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getID, getScope, isDestroyed, killReactiveThreads, notifyAndAdd, notifyBroadcastListener, notifyDestroyListener, notifyEmptyListener, notifyIdleListener, notifyOnAddAtmosphereResourceListener, notifyOnRemoveAtmosphereResourceListener, onException, onException, perRequestFilter, prepareInvokeOnStateChange, push, queueWriteIO, reactiveThreadsCount, releaseExternalResources, removeAtmosphereResource, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, removeBroadcasterListener, resumeAll, retrieveTrackedBroadcast, scheduleFixedBroadcast, scheduleFixedBroadcast, setBroadcasterConfig, setBroadcasterLifeCyclePolicy, setID, setScope, setSuspendPolicy, spawnReactor, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMIBroadcaster

public RMIBroadcaster(String id,
                      org.atmosphere.cpr.AtmosphereConfig config)

Builds a new instance identified by the given ID.

Parameters:
id - the ID
config - the configuration
Method Detail

incomingBroadcast

public void incomingBroadcast()

Specified by:
incomingBroadcast in class org.atmosphere.util.AbstractBroadcasterProxy

outgoingBroadcast

public void outgoingBroadcast(Object o)

Specified by:
outgoingBroadcast in class org.atmosphere.util.AbstractBroadcasterProxy

broadcastReceivedMessage

public void broadcastReceivedMessage(Object message)

Overrides:
broadcastReceivedMessage in class org.atmosphere.util.AbstractBroadcasterProxy


Copyright © 2013. All Rights Reserved.