public abstract class AbstractStrategy extends Object implements StrategyIfc
| 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 ThreadLocal<ArrayDeque<tigase.xml.Element>> |
nodesModifications |
protected static String[] |
PUBSUB_PATH |
protected PubSubComponentClusteredIfc |
pubSubComponent |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStrategy() |
| Modifier and Type | Method and Description |
|---|---|
tigase.xmpp.JID |
getLocalNodeJid() |
protected tigase.xmpp.JID |
getNodeForHashCode(int hashCode) |
tigase.xmpp.JID |
getNodeForServiceJid(tigase.xmpp.JID serviceJid) |
List<tigase.xmpp.JID> |
getNodesConnected() |
List<tigase.xmpp.JID> |
getNodesConnectedWithLocal() |
protected boolean |
isNodeConfigure(tigase.xml.Element pubsubElem) |
void |
nodeConnected(tigase.xmpp.JID jid) |
void |
nodeDisconnected(tigase.xmpp.JID jid) |
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, nodeAddedToRootCollection, nodeConfigurationChanged, nodeRemovedFromRootCollection, setProperties, userRemovedprotected 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
protected final ThreadLocal<ArrayDeque<tigase.xml.Element>> nodesModifications
public List<tigase.xmpp.JID> getNodesConnected()
getNodesConnected in interface StrategyIfcpublic List<tigase.xmpp.JID> getNodesConnectedWithLocal()
getNodesConnectedWithLocal 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 nodeConnected(tigase.xmpp.JID jid)
nodeConnected in interface StrategyIfcpublic void nodeDisconnected(tigase.xmpp.JID jid)
nodeDisconnected in interface StrategyIfcpublic 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 © 2017 Tigase. All rights reserved.