public abstract class AbstractStrategy extends Object implements StrategyIfc
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractStrategy.NodeConfigRefreshCommand |
| Modifier and Type | Field and Description |
|---|---|
protected tigase.cluster.api.ClusterControllerIfc |
cl_controller |
protected tigase.pubsub.PubSubConfig |
config |
protected tigase.xmpp.JID |
localNodeJid |
protected static String |
NODE_ATTR |
protected static String |
NODE_CONFIG_REFRESH_CMD |
protected Set<String> |
nodeConfigureElemNames |
protected static String[] |
PUBSUB_PATH |
protected PubSubComponentClusteredIfc |
pubSubComponent |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStrategy() |
| Modifier and Type | Method and Description |
|---|---|
List<tigase.xmpp.JID> |
getAllNodes() |
tigase.xmpp.JID |
getLocalNodeJid() |
protected tigase.xmpp.JID |
getNodeForHashCode(int hashCode) |
tigase.xmpp.JID |
getNodeForServiceJid(tigase.xmpp.JID serviceJid) |
protected boolean |
isNodeConfigure(tigase.xml.Element pubsubElem) |
void |
nodeConnected(tigase.xmpp.JID nodeJid) |
void |
nodeDisconnected(tigase.xmpp.JID nodeJid) |
void |
packetProcessed() |
protected Map<String,String> |
prepareCommandData(tigase.xmpp.BareJID serviceJid,
String nodeName) |
boolean |
sendException(tigase.server.Packet packet,
tigase.component2.exceptions.ComponentException ex) |
void |
setClusterController(tigase.cluster.api.ClusterControllerIfc cl_controller) |
void |
setConfig(tigase.pubsub.PubSubConfig config) |
protected void |
setLocalNodeJid(tigase.xmpp.JID jid) |
void |
setPubSubComponentClustered(PubSubComponentClusteredIfc pubSubComponent) |
tigase.pubsub.AbstractNodeConfig |
wrapNodeConfig(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.pubsub.AbstractNodeConfig config) |
tigase.pubsub.repository.cached.NodeSubscriptions |
wrapNodeSubscriptions(tigase.pubsub.repository.NodeSubscriptions nodeSubscriptions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterOutPacket, getNodesForPacket, isLocalNode, isOnlineLocally, nodeConfigurationChanged, setPropertiesprotected static final String NODE_ATTR
protected static final String NODE_CONFIG_REFRESH_CMD
protected static final String[] PUBSUB_PATH
protected tigase.cluster.api.ClusterControllerIfc cl_controller
protected tigase.pubsub.PubSubConfig config
protected tigase.xmpp.JID localNodeJid
protected PubSubComponentClusteredIfc pubSubComponent
public void nodeConnected(tigase.xmpp.JID nodeJid)
nodeConnected in interface StrategyIfcpublic void nodeDisconnected(tigase.xmpp.JID nodeJid)
nodeDisconnected in interface StrategyIfcpublic List<tigase.xmpp.JID> getAllNodes()
getAllNodes in interface StrategyIfcpublic tigase.xmpp.JID getLocalNodeJid()
getLocalNodeJid in interface StrategyIfcprotected tigase.xmpp.JID getNodeForHashCode(int hashCode)
public tigase.xmpp.JID getNodeForServiceJid(tigase.xmpp.JID serviceJid)
public void setClusterController(tigase.cluster.api.ClusterControllerIfc cl_controller)
setClusterController in interface StrategyIfcpublic void setConfig(tigase.pubsub.PubSubConfig config)
setConfig in interface StrategyIfcprotected void setLocalNodeJid(tigase.xmpp.JID jid)
public void setPubSubComponentClustered(PubSubComponentClusteredIfc pubSubComponent)
setPubSubComponentClustered in interface StrategyIfcpublic void packetProcessed()
packetProcessed in interface StrategyIfcpublic boolean sendException(tigase.server.Packet packet,
tigase.component2.exceptions.ComponentException ex)
sendException in interface StrategyIfcpublic tigase.pubsub.AbstractNodeConfig wrapNodeConfig(tigase.xmpp.BareJID serviceJid,
String nodeName,
tigase.pubsub.AbstractNodeConfig config)
wrapNodeConfig in interface StrategyIfcpublic tigase.pubsub.repository.cached.NodeSubscriptions wrapNodeSubscriptions(tigase.pubsub.repository.NodeSubscriptions nodeSubscriptions)
wrapNodeSubscriptions in interface StrategyIfcprotected Map<String,String> prepareCommandData(tigase.xmpp.BareJID serviceJid, String nodeName)
protected boolean isNodeConfigure(tigase.xml.Element pubsubElem)
Copyright © 2015 Tigase. All rights reserved.