org.granite.clustering
Class SessionDistributedData

java.lang.Object
  extended by org.granite.clustering.SessionDistributedData
All Implemented Interfaces:
DistributedData

public class SessionDistributedData
extends Object
implements DistributedData

Author:
Franck WOLFF

Constructor Summary
SessionDistributedData(HttpSession session)
           
 
Method Summary
 void addChannelId(String channelId, String channelFactoryClassName, String clientType)
           
 void addSubcription(String channelId, CommandMessage message)
           
 void clearChannelIds()
           
 void clearSubscriptions(String channelId)
           
 String getChannelClientType(String channelId)
           
 String getChannelFactoryClassName(String channelId)
           
 Set<String> getChannelIds()
           
 Object getCredentials()
           
 String getCredentialsCharset()
           
 String getDestinationClientId(String destination)
           
 Object[] getDestinationDataSelectors(String destination)
           
 String getDestinationSelector(String destination)
           
 String getDestinationSubscriptionId(String destination)
           
 List<CommandMessage> getSubscriptions(String channelId)
           
 boolean hasChannelId(String channelId)
           
 boolean hasCredentials()
           
 boolean hasCredentialsCharset()
           
 boolean hasSubcription(String channelId, String subscriptionId)
           
 void removeChannelId(String channelId)
           
 void removeCredentials()
           
 void removeCredentialsCharset()
           
 void removeSubcription(String channelId, String subscriptionId)
           
 void setCredentials(Object credentials)
           
 void setCredentialsCharset(String credentialsCharset)
           
 void setDestinationClientId(String destination, String clientId)
           
 void setDestinationDataSelectors(String destination, Object[] selectors)
           
 void setDestinationSelector(String destination, String selector)
           
 void setDestinationSubscriptionId(String destination, String subscriptionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionDistributedData

public SessionDistributedData(HttpSession session)
Method Detail

getCredentials

public Object getCredentials()
Specified by:
getCredentials in interface DistributedData

hasCredentials

public boolean hasCredentials()
Specified by:
hasCredentials in interface DistributedData

setCredentials

public void setCredentials(Object credentials)
Specified by:
setCredentials in interface DistributedData

removeCredentials

public void removeCredentials()
Specified by:
removeCredentials in interface DistributedData

getCredentialsCharset

public String getCredentialsCharset()
Specified by:
getCredentialsCharset in interface DistributedData

hasCredentialsCharset

public boolean hasCredentialsCharset()
Specified by:
hasCredentialsCharset in interface DistributedData

setCredentialsCharset

public void setCredentialsCharset(String credentialsCharset)
Specified by:
setCredentialsCharset in interface DistributedData

removeCredentialsCharset

public void removeCredentialsCharset()
Specified by:
removeCredentialsCharset in interface DistributedData

addChannelId

public void addChannelId(String channelId,
                         String channelFactoryClassName,
                         String clientType)
Specified by:
addChannelId in interface DistributedData

hasChannelId

public boolean hasChannelId(String channelId)
Specified by:
hasChannelId in interface DistributedData

getChannelFactoryClassName

public String getChannelFactoryClassName(String channelId)
Specified by:
getChannelFactoryClassName in interface DistributedData

getChannelClientType

public String getChannelClientType(String channelId)
Specified by:
getChannelClientType in interface DistributedData

removeChannelId

public void removeChannelId(String channelId)
Specified by:
removeChannelId in interface DistributedData

getChannelIds

public Set<String> getChannelIds()
Specified by:
getChannelIds in interface DistributedData

clearChannelIds

public void clearChannelIds()
Specified by:
clearChannelIds in interface DistributedData

addSubcription

public void addSubcription(String channelId,
                           CommandMessage message)
Specified by:
addSubcription in interface DistributedData

hasSubcription

public boolean hasSubcription(String channelId,
                              String subscriptionId)
Specified by:
hasSubcription in interface DistributedData

removeSubcription

public void removeSubcription(String channelId,
                              String subscriptionId)
Specified by:
removeSubcription in interface DistributedData

getSubscriptions

public List<CommandMessage> getSubscriptions(String channelId)
Specified by:
getSubscriptions in interface DistributedData

clearSubscriptions

public void clearSubscriptions(String channelId)
Specified by:
clearSubscriptions in interface DistributedData

getDestinationClientId

public String getDestinationClientId(String destination)
Specified by:
getDestinationClientId in interface DistributedData

setDestinationClientId

public void setDestinationClientId(String destination,
                                   String clientId)
Specified by:
setDestinationClientId in interface DistributedData

getDestinationSubscriptionId

public String getDestinationSubscriptionId(String destination)
Specified by:
getDestinationSubscriptionId in interface DistributedData

setDestinationSubscriptionId

public void setDestinationSubscriptionId(String destination,
                                         String subscriptionId)
Specified by:
setDestinationSubscriptionId in interface DistributedData

getDestinationSelector

public String getDestinationSelector(String destination)
Specified by:
getDestinationSelector in interface DistributedData

setDestinationSelector

public void setDestinationSelector(String destination,
                                   String selector)
Specified by:
setDestinationSelector in interface DistributedData

getDestinationDataSelectors

public Object[] getDestinationDataSelectors(String destination)
Specified by:
getDestinationDataSelectors in interface DistributedData

setDestinationDataSelectors

public void setDestinationDataSelectors(String destination,
                                        Object[] selectors)
Specified by:
setDestinationDataSelectors in interface DistributedData