org.granite.gravity.gae
Class GAEGravity

java.lang.Object
  extended by org.granite.gravity.DefaultGravity
      extended by org.granite.gravity.gae.GAEGravity
All Implemented Interfaces:
ShutdownListener, DefaultGravityMBean, Gravity

public class GAEGravity
extends DefaultGravity

Author:
William DRAI, Franck WOLFF

Field Summary
 
Fields inherited from interface org.granite.gravity.Gravity
BYTEARRAY_BODY_HEADER, RECONNECT_INTERVAL_MS_KEY, RECONNECT_MAX_ATTEMPTS_KEY
 
Constructor Summary
GAEGravity(GravityConfig gravityConfig, ServicesConfig servicesConfig, GraniteConfig graniteConfig)
           
 
Method Summary
 boolean access(String channelId)
           
protected  Channel createChannel()
           
 Channel getChannel(String channelId)
           
 void internalStart()
           
protected  void postManage(Channel channel)
           
 Channel removeChannel(String channelId)
           
 
Methods inherited from class org.granite.gravity.DefaultGravity
cancel, execute, getChannelFactoryName, getChannelIdleTimeoutMillis, getCorePoolSize, getGraniteConfig, getGravityConfig, getGravityFactoryName, getKeepAliveTimeMillis, getLongPollingTimeoutMillis, getMaximumPoolSize, getMaxMessagesQueuedPerChannel, getQueueCapacity, getQueueRemainingCapacity, getQueueSize, getReconnectIntervalMillis, getReconnectMaxAttempts, getServiceAdapter, getServicesConfig, handleMessage, handleMessage, initThread, isRetryOnError, isStarted, publishMessage, publishMessage, reconfigure, releaseThread, restart, setChannelIdleTimeoutMillis, setCorePoolSize, setKeepAliveTimeMillis, setLongPollingTimeoutMillis, setMaximumPoolSize, setMaxMessagesQueuedPerChannel, setRetryOnError, start, stop, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GAEGravity

public GAEGravity(GravityConfig gravityConfig,
                  ServicesConfig servicesConfig,
                  GraniteConfig graniteConfig)
Method Detail

createChannel

protected Channel createChannel()
Overrides:
createChannel in class DefaultGravity

getChannel

public Channel getChannel(String channelId)
Specified by:
getChannel in interface Gravity
Overrides:
getChannel in class DefaultGravity

removeChannel

public Channel removeChannel(String channelId)
Specified by:
removeChannel in interface Gravity
Overrides:
removeChannel in class DefaultGravity

access

public boolean access(String channelId)
Specified by:
access in interface Gravity
Overrides:
access in class DefaultGravity

internalStart

public void internalStart()
Overrides:
internalStart in class DefaultGravity

postManage

protected void postManage(Channel channel)
Overrides:
postManage in class DefaultGravity