com.enioka.jqm.model.Node.getPort()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(236)

本文整理了Java中com.enioka.jqm.model.Node.getPort()方法的一些代码示例,展示了Node.getPort()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getPort()方法的具体详情如下:
包路径:com.enioka.jqm.model.Node
类名称:Node
方法名:getPort

Node.getPort介绍

[英]The TCP port used for starting the engine Jetty server (it holds all the WS APIs).
[中]用于启动engine Jetty服务器的TCP端口(它包含所有WS-API)。

代码示例

代码示例来源:origin: enioka/jqm

  1. @Override
  2. public String getWebApiLocalUrl(DbConn cnx)
  3. {
  4. // Do not use port from engine.getNode, as it may have been set AFTER engine startup.
  5. Node node = Node.select_single(cnx, "node_select_by_id", this.engine.getNode().getId());
  6. boolean useSsl = Boolean.parseBoolean(GlobalParameter.getParameter(cnx, "enableWsApiSsl", "false"));
  7. return (useSsl ? "https://localhost:" : "http://localhost:") + node.getPort();
  8. }
  9. }

代码示例来源:origin: com.enioka.jqm/jqm-engine

  1. @Override
  2. public String getWebApiLocalUrl(DbConn cnx)
  3. {
  4. // Do not use port from engine.getNode, as it may have been set AFTER engine startup.
  5. Node node = Node.select_single(cnx, "node_select_by_id", this.engine.getNode().getId());
  6. boolean useSsl = Boolean.parseBoolean(GlobalParameter.getParameter(cnx, "enableWsApiSsl", "false"));
  7. return (useSsl ? "https://localhost:" : "http://localhost:") + node.getPort();
  8. }
  9. }

代码示例来源:origin: com.enioka.jqm/jqm-engine

  1. jqmlogger.info("\tJMX registry port: " + n.getJmxRegistryPort());
  2. jqmlogger.info("\tJMX server port: " + n.getJmxServerPort());
  3. jqmlogger.info("\tHTTP listening port: " + n.getPort());
  4. jqmlogger.info("\tAPI admin enabled: " + n.getLoadApiAdmin());
  5. jqmlogger.info("\tAPI client enabled: " + n.getLoadApiClient());

代码示例来源:origin: enioka/jqm

  1. jqmlogger.info("\tJMX registry port: " + n.getJmxRegistryPort());
  2. jqmlogger.info("\tJMX server port: " + n.getJmxServerPort());
  3. jqmlogger.info("\tHTTP listening port: " + n.getPort());
  4. jqmlogger.info("\tAPI admin enabled: " + n.getLoadApiAdmin());
  5. jqmlogger.info("\tAPI client enabled: " + n.getLoadApiClient());

代码示例来源:origin: com.enioka.jqm/jqm-service

  1. connector.setPort(node.getPort());
  2. ls.add(connector);
  3. jqmlogger.debug("Jetty will bind on all interfaces on port " + node.getPort());
  4. connector.setPort(node.getPort());
  5. ls.add(connector);
  6. jqmlogger.debug("Jetty will bind on loopback - localhost:" + node.getPort());
  7. connector.setPort(node.getPort());
  8. ls.add(connector);
  9. jqmlogger.debug("Jetty will bind on " + s.getHostAddress() + ":" + node.getPort());
  10. Connector connector = new SelectChannelConnector();
  11. connector.setHost(null);
  12. connector.setPort(node.getPort());
  13. ls.add(connector);
  14. jqmlogger.trace("Starting Jetty (port " + node.getPort() + ")");
  15. try
  16. if (node.getPort() == 0)

代码示例来源:origin: enioka/jqm

  1. if (useSsl)
  2. httpConfig.setSecurePort(node.getPort());
  3. https.setPort(node.getPort());
  4. https.setIdleTimeout(30000);
  5. https.setHost(bindTo);
  6. server.addConnector(https);
  7. jqmlogger.debug("Jetty will bind on interface {} on port {} with HTTPS", bindTo, node.getPort());
  8. http.setPort(node.getPort());
  9. http.setIdleTimeout(30000);
  10. http.setHost(bindTo);
  11. server.addConnector(http);
  12. jqmlogger.debug("Jetty will bind on interface {} on port {} with HTTP", bindTo, node.getPort());
  13. jqmlogger.trace("Starting Jetty (port " + node.getPort() + ")");
  14. try
  15. if (node.getPort() == 0)

代码示例来源:origin: enioka/jqm

  1. 42, "Marsu-Application", null, "Franquin", "ModuleMachin", "other", "other", true, cnx);
  2. HttpPost post = new HttpPost("http://" + TestHelpers.node.getDns() + ":" + TestHelpers.node.getPort() + "/ws/simple/ji");
  3. List<NameValuePair> nvps = new ArrayList<>();
  4. nvps.add(new BasicNameValuePair("applicationname", "Marsu-Application"));
  5. HttpGet rq = new HttpGet("http://" + TestHelpers.node.getDns() + ":" + TestHelpers.node.getPort() + "/ws/simple/status?id=" + jid);
  6. res = client.execute(rq);
  7. Assert.assertEquals(200, res.getStatusLine().getStatusCode());

代码示例来源:origin: com.enioka.jqm/jqm-service

  1. String np = node.getDns() + node.getPort() + node.getLoadApiAdmin() + node.getLoadApiClient() + node.getLoapApiSimple();
  2. if (nodePrms == null)

代码示例来源:origin: enioka/jqm

  1. String np = node.getDns() + node.getPort() + node.getLoadApiAdmin() + node.getLoadApiClient() + node.getLoapApiSimple();
  2. if (nodePrms == null)

代码示例来源:origin: enioka/jqm

  1. 42, "Marsu-Application", null, "Franquin", "ModuleMachin", "other", "other", true, cnx);
  2. HttpPost post = new HttpPost("http://" + TestHelpers.node.getDns() + ":" + TestHelpers.node.getPort() + "/ws/simple/ji");
  3. List<NameValuePair> nvps = new ArrayList<>();
  4. nvps.add(new BasicNameValuePair("applicationname", "Marsu-Application"));

代码示例来源:origin: enioka/jqm

  1. int port = Node.select_single(cnx, "node_select_by_id", TestHelpers.node.getId()).getPort();
  2. HttpUriRequest rq = new HttpGet("https://" + TestHelpers.node.getDns() + ":" + port + "/ws/simple/status?id=" + i);
  3. jqmlogger.debug(rq.getURI().toString());

代码示例来源:origin: enioka/jqm

  1. int port = Node.select_single(cnx, "node_select_by_id", TestHelpers.node.getId()).getPort();
  2. HttpUriRequest rq = new HttpGet("https://" + TestHelpers.node.getDns() + ":" + port + "/ws/simple/status?id=" + i);
  3. CloseableHttpResponse rs = cl.execute(rq);

相关文章