public abstract class AbstractStrategy extends Object implements StrategyIfc, tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
| Modifier and Type | Field and Description |
|---|---|
protected tigase.cluster.api.ClusterControllerIfc |
cl_controller |
protected tigase.pubsub.PubSubConfig |
config |
protected tigase.eventbus.EventBus |
eventBus |
protected tigase.xmpp.jid.JID |
localNodeJid |
protected static String |
NODE_ATTR |
protected Set<String> |
nodeConfigureElemNames |
protected static String[] |
PUBSUB_PATH |
protected PubSubComponentClusteredIfc |
pubSubComponent |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeUnregister() |
tigase.xmpp.jid.JID |
getLocalNodeJid() |
protected tigase.xmpp.jid.JID |
getNodeForHashCode(int hashCode) |
tigase.xmpp.jid.JID |
getNodeForServiceJid(tigase.xmpp.jid.JID serviceJid) |
List<tigase.xmpp.jid.JID> |
getNodesConnected() |
List<tigase.xmpp.jid.JID> |
getNodesConnectedWithLocal() |
void |
initialize() |
protected boolean |
isNodeConfigure(tigase.xml.Element pubsubElem) |
void |
nodeConnected(tigase.xmpp.jid.JID jid) |
void |
nodeDisconnected(tigase.xmpp.jid.JID jid) |
void |
packetProcessed() |
protected Map<String,String> |
prepareCommandData(tigase.xmpp.jid.BareJID serviceJid,
String nodeName) |
boolean |
sendException(tigase.server.Packet packet,
tigase.component.exceptions.ComponentException ex) |
void |
setClusterController(tigase.cluster.api.ClusterControllerIfc cl_controller) |
void |
setConfig(tigase.pubsub.PubSubConfig config) |
protected void |
setLocalNodeJid(tigase.xmpp.jid.JID jid) |
void |
setPubSubComponent(PubSubComponentClusteredIfc pubSubComponent) |
tigase.pubsub.AbstractNodeConfig |
wrapNodeConfig(tigase.xmpp.jid.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, nodeAddedToCollection, nodeAddedToRootCollection, nodeAffiliationsChanged, nodeConfigurationChanged, nodeRemovedFromCollection, nodeRemovedFromRootCollection, nodeSubscriptionsChanged, userRemovedprotected static final String NODE_ATTR
protected static final String[] PUBSUB_PATH
protected tigase.cluster.api.ClusterControllerIfc cl_controller
@Inject protected tigase.pubsub.PubSubConfig config
@Inject protected tigase.eventbus.EventBus eventBus
protected tigase.xmpp.jid.JID localNodeJid
@Inject(bean="service") protected PubSubComponentClusteredIfc pubSubComponent
public List<tigase.xmpp.jid.JID> getNodesConnected()
getNodesConnected in interface StrategyIfcpublic List<tigase.xmpp.jid.JID> getNodesConnectedWithLocal()
getNodesConnectedWithLocal in interface StrategyIfcpublic tigase.xmpp.jid.JID getLocalNodeJid()
getLocalNodeJid in interface StrategyIfcprotected void setLocalNodeJid(tigase.xmpp.jid.JID jid)
public tigase.xmpp.jid.JID getNodeForServiceJid(tigase.xmpp.jid.JID serviceJid)
public void nodeConnected(tigase.xmpp.jid.JID jid)
nodeConnected in interface StrategyIfcpublic void nodeDisconnected(tigase.xmpp.jid.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 StrategyIfcpublic void setPubSubComponent(PubSubComponentClusteredIfc pubSubComponent)
setPubSubComponent in interface StrategyIfcpublic void packetProcessed()
packetProcessed in interface StrategyIfcpublic boolean sendException(tigase.server.Packet packet,
tigase.component.exceptions.ComponentException ex)
sendException in interface StrategyIfcpublic tigase.pubsub.AbstractNodeConfig wrapNodeConfig(tigase.xmpp.jid.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 StrategyIfcpublic void initialize()
initialize in interface tigase.kernel.beans.Initializablepublic void beforeUnregister()
beforeUnregister in interface tigase.kernel.beans.UnregisterAwareprotected tigase.xmpp.jid.JID getNodeForHashCode(int hashCode)
protected Map<String,String> prepareCommandData(tigase.xmpp.jid.BareJID serviceJid, String nodeName)
protected boolean isNodeConfigure(tigase.xml.Element pubsubElem)
Copyright © 2013–2019 Tigase. All rights reserved.