org.granite.clustering
Class SessionGraniteDistributedData

java.lang.Object
  extended by org.granite.clustering.SessionGraniteDistributedData
All Implemented Interfaces:
GraniteDistributedData

public class SessionGraniteDistributedData
extends Object
implements GraniteDistributedData

Author:
Franck WOLFF

Constructor Summary
SessionGraniteDistributedData()
           
SessionGraniteDistributedData(HttpSession session)
           
 
Method Summary
 void addChannelId(String channelId)
           
 void addSubcription(String channelId, CommandMessage message)
           
 void clearChannelIds()
           
 void clearSubscriptions(String channelId)
           
 Set<String> getChannelIds()
           
 Object getCredentials()
           
 String getDestinationClientId(String destination)
           
 String getDestinationSelector(String destination)
           
 String getDestinationSubscriptionId(String destination)
           
 List<CommandMessage> getSubscriptions(String channelId)
           
 boolean hasChannelId(String channelId)
           
 boolean hasCredentials()
           
 boolean hasSubcription(String channelId, String subscriptionId)
           
 void removeChannelId(String channelId)
           
 void removeCredentials()
           
 void removeSubcription(String channelId, String subscriptionId)
           
 void setCredentials(Object credentials)
           
 void setDestinationClientId(String destination, String clientId)
           
 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

SessionGraniteDistributedData

public SessionGraniteDistributedData()

SessionGraniteDistributedData

public SessionGraniteDistributedData(HttpSession session)
Method Detail

getCredentials

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

hasCredentials

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

setCredentials

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

removeCredentials

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

addChannelId

public void addChannelId(String channelId)
Specified by:
addChannelId in interface GraniteDistributedData

hasChannelId

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

removeChannelId

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

getChannelIds

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

clearChannelIds

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

addSubcription

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

hasSubcription

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

removeSubcription

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

getSubscriptions

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

clearSubscriptions

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

getDestinationClientId

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

setDestinationClientId

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

getDestinationSubscriptionId

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

setDestinationSubscriptionId

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

getDestinationSelector

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

setDestinationSelector

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