本文整理汇总了Java中org.jivesoftware.openfire.XMPPServer.getRoutingTable方法的典型用法代码示例。如果您正苦于以下问题:Java XMPPServer.getRoutingTable方法的具体用法?Java XMPPServer.getRoutingTable怎么用?Java XMPPServer.getRoutingTable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jivesoftware.openfire.XMPPServer
的用法示例。
在下文中一共展示了XMPPServer.getRoutingTable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
localServer = server;
rosterManager = server.getRosterManager();
presenceManager = server.getPresenceManager();
deliverer = server.getPacketDeliverer();
messageStore = server.getOfflineMessageStore();
sessionManager = server.getSessionManager();
userManager = server.getUserManager();
routingTable = server.getRoutingTable();
directedPresencesCache = CacheFactory.createCache(PRESENCE_CACHE_NAME);
// TODO Add as route listener (to remove direct presences info for removed routes). Mainly for c2s sessions which is uncommon.
// Listen to cluster events
ClusterManager.addListener(this);
}
示例2: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
sessionManager = server.getSessionManager();
// In some cases, the domain name of the server may not be the actual address of the machine
// (ie, when using DNS SRV records). In that case, the "mediaproxy.externalip" property should be
// set to the IP address of the actual server where the media proxy is listening.
String ipAddress = JiveGlobals.getProperty("mediaproxy.externalip", server.getServerInfo().getXMPPDomain());
mediaProxy = new MediaProxy(ipAddress);
String defaultName = "rtpbridge";
serviceName = JiveGlobals.getProperty("mediaproxy.serviceName", defaultName);
serviceName = serviceName.equals("") ? defaultName : serviceName;
echoPort = JiveGlobals.getIntProperty("mediaproxy.echoPort", echoPort);
routingTable = server.getRoutingTable();
router = server.getPacketRouter();
initMediaProxy();
}
示例3: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
this.server = server;
serverName = server.getServerInfo().getXMPPDomain();
router = server.getPacketRouter();
routingTable = server.getRoutingTable();
deliverer = server.getPacketDeliverer();
sessionManager = server.getSessionManager();
// Check if we need to configure MINA to use Direct or Heap Buffers
// Note: It has been reported that heap buffers are 50% faster than direct buffers
if (JiveGlobals.getBooleanProperty("xmpp.socket.heapBuffer", true)) {
ByteBuffer.setUseDirectBuffers(false);
ByteBuffer.setAllocator(new SimpleByteBufferAllocator());
}
}
示例4: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
localServer = server;
rosterManager = server.getRosterManager();
presenceManager = server.getPresenceManager();
deliverer = server.getPacketDeliverer();
messageStore = server.getOfflineMessageStore();
sessionManager = server.getSessionManager();
userManager = server.getUserManager();
routingTable = server.getRoutingTable();
directedPresencesCache = CacheFactory.createCache(PRESENCE_CACHE_NAME);
// TODO Add as route listener (to remove direct presences info for removed routes). Mainly for c2s sessions which is uncommon.
// Listen to cluster events
ClusterManager.addListener(this);
}
示例5: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
public void initialize(XMPPServer server) {
initializeSettings();
routingTable = server.getRoutingTable();
router = server.getPacketRouter();
// Configure the handler of iq:register packets
registerHandler = new IQMUCRegisterHandler(this);
// Configure the handler of jabber:iq:search packets
searchHandler = new IQMUCSearchHandler(this);
}
示例6: PacketCopier
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
private PacketCopier() {
// Add the new instance as a listener of component events. We need to react when
// a component is no longer valid
InternalComponentManager.getInstance().addListener(this);
XMPPServer server = XMPPServer.getInstance();
serverName = server.getServerInfo().getXMPPDomain();
routingTable = server.getRoutingTable();
// Add new instance to the PacketInterceptors list
InterceptorManager.getInstance().addInterceptor(this);
// Create a new task and schedule it with the new timeout
packetsTask = new ProcessPacketsTask();
TaskEngine.getInstance().schedule(packetsTask, 5000, 5000);
}
示例7: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
localServer = server;
serverName = server.getServerInfo().getXMPPDomain();
routingTable = server.getRoutingTable();
deliverer = server.getPacketDeliverer();
presenceManager = server.getPresenceManager();
rosterManager = server.getRosterManager();
userManager = server.getUserManager();
}
示例8: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
serverName = server.getServerInfo().getXMPPDomain();
router = server.getPacketRouter();
routingTable = server.getRoutingTable();
deliverer = server.getPacketDeliverer();
sessionManager = server.getSessionManager();
// Check if we need to configure MINA to use Direct or Heap Buffers
// Note: It has been reported that heap buffers are 50% faster than direct buffers
if (JiveGlobals.getBooleanProperty("xmpp.socket.heapBuffer", true)) {
ByteBuffer.setUseDirectBuffers(false);
ByteBuffer.setAllocator(new SimpleByteBufferAllocator());
}
}
示例9: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
userManager = server.getUserManager();
routingTable = server.getRoutingTable();
registerHandler = server.getIQRegisterHandler();
serverName = server.getServerInfo().getXMPPDomain();
}
示例10: PacketCopier
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
private PacketCopier() {
// Add the new instance as a listener of component events. We need to react when
// a component is no longer valid
InternalComponentManager.getInstance().addListener(this);
XMPPServer server = XMPPServer.getInstance();
serverName = server.getServerInfo().getXMPPDomain();
routingTable = server.getRoutingTable();
// Add new instance to the PacketInterceptors list
InterceptorManager.getInstance().addInterceptor(this);
// Create a new task and schedule it with the new timeout
packetsTask = new ProcessPacketsTask();
timer.schedule(packetsTask, 5000, 5000);
}
示例11: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
this.server = server;
offlinePresenceCache = CacheFactory.createCache("Offline Presence Cache");
lastActivityCache = CacheFactory.createCache("Last Activity Cache");
deliverer = server.getPacketDeliverer();
sessionManager = server.getSessionManager();
userManager = server.getUserManager();
presenceUpdateHandler = server.getPresenceUpdateHandler();
rosterManager = server.getRosterManager();
routingTable = server.getRoutingTable();
}
示例12: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
infoHandler = server.getIQDiscoInfoHandler();
itemsHandler = server.getIQDiscoItemsHandler();
messageStore = server.getOfflineMessageStore();
userManager = server.getUserManager();
routingTable = server.getRoutingTable();
}
示例13: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
userManager = server.getUserManager();
routingTable = server.getRoutingTable();
registerHandler = server.getIQRegisterHandler();
serverName = server.getServerInfo().getXMPPDomain();
}
示例14: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
routingTable = server.getRoutingTable();
serverName = server.getServerInfo().getXMPPDomain();
}
示例15: initialize
import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
super.initialize(server);
routingTable = server.getRoutingTable();
serverName = server.getServerInfo().getXMPPDomain();
}