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, org.atmosphere.cpr.DefaultBroadcaster.WriteQueue
 
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, initialized, lifeCycleListeners, messages, name, notifierFuture, POLLING_DEFAULT, resources, scope, sharedListeners, started, uniqueWriteQueue, uri, waitTime, writeQueues, writeTimeoutInSecond
 
Fields inherited from interface org.atmosphere.cpr.Broadcaster
ROOT_MASTER
 
Constructor Summary
RMIBroadcaster()
           
 
Method Summary
 void broadcastReceivedMessage(Object message)
          
 void incomingBroadcast()
          
 org.atmosphere.cpr.Broadcaster initialize(String id, org.atmosphere.cpr.AtmosphereConfig config)
           Builds a new instance identified by the given ID.
 void outgoingBroadcast(Object o)
          
 
Methods inherited from class org.atmosphere.util.AbstractBroadcasterProxy
b, broadcast, broadcast, broadcast, getBroadcastHandler, initialize, invokeOnStateChange, reconfigure
 
Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcasterListeners, broadcastOnResume, broadcastOnResume, cacheAndSuspend, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheMessageOnIOException, checkCachedAndPush, createBroadcasterConfig, currentLifecycleTask, currentLifecycleTask, delayBroadcast, delayBroadcast, deliverPush, destroy, dispatchMessages, endBroadcast, entryDone, executeAsyncWrite, executeBlockingWrite, filter, futureDone, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getBroadcasterLifeCyclePolicy, getID, getScope, isDestroyed, killReactiveThreads, lifecycleHandler, lifecycleHandler, lifeCycleListeners, lifeCyclePolicy, messages, notifyAndAdd, notifyBroadcastListener, notifyOnAddAtmosphereResourceListener, notifyOnMessage, notifyOnRemoveAtmosphereResourceListener, onException, onException, outOfOrderBroadcastSupported, perRequestFilter, policy, prepareInvokeOnStateChange, push, queueWriteIO, reactiveThreadsCount, recentActivity, releaseExternalResources, removeAtmosphereResource, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, removeBroadcasterListener, rename, resumeAll, retrieveTrackedBroadcast, scheduleFixedBroadcast, scheduleFixedBroadcast, setBroadcasterConfig, setBroadcasterLifeCyclePolicy, setID, setScope, setSuspendPolicy, spawnReactor, start, toString, writeQueues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMIBroadcaster

public RMIBroadcaster()
Method Detail

initialize

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

Builds a new instance identified by the given ID.

Overrides:
initialize in class org.atmosphere.cpr.DefaultBroadcaster
Parameters:
id - the ID
config - the configuration

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 © 2015. All Rights Reserved.