@Override public void start() { // Set this ComponentManager as the current component manager ComponentManagerFactory.setComponentManager(instance); XMPPServer server = XMPPServer.getInstance(); serverDomain = server.getServerInfo().getXMPPDomain(); // Set the address of this internal service. component.[domain] serviceAddress = new JID(null, "component." + serverDomain, null); if (!server.isSetupMode()) { // Add a route to this service server.getRoutingTable().addComponentRoute(getAddress(), this); } }
public ExternalComponentManager(String host, int port, boolean startEncrypted) { if (host == null) { throw new IllegalArgumentException("Host of XMPP server cannot be null"); } this.host = host; this.port = port; this.startEncrypted = startEncrypted; createDummyLogger(); // Set this ComponentManager as the current component manager ComponentManagerFactory.setComponentManager(this); }
/** * Constructs a new ExternalComponentManager that will make connections to * the specified XMPP server on the given port. * * @param host the IP address or name of the XMPP server to connect to (e.g. "example.com"). * @param port the port to connect on. */ @Deprecated public ExternalComponentManager(String host, int port) { if (host == null) { throw new IllegalArgumentException("Host of XMPP server cannot be null"); } this.host = host; this.port = port; createDummyLogger(); // Set this ComponentManager as the current component manager ComponentManagerFactory.setComponentManager(this); }
@Override public void start() { // Set this ComponentManager as the current component manager ComponentManagerFactory.setComponentManager(instance); XMPPServer server = XMPPServer.getInstance(); serverDomain = server.getServerInfo().getXMPPDomain(); // Set the address of this internal service. component.[domain] serviceAddress = new JID(null, "component." + serverDomain, null); if (!server.isSetupMode()) { // Add a route to this service server.getRoutingTable().addComponentRoute(getAddress(), this); } }