org.restlet.Application.getStatusService()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(74)

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

Application.getStatusService介绍

[英]Returns the status service. The service is enabled by default.
[中]返回状态服务。默认情况下,该服务处于启用状态。

代码示例

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns the application's status service or create a new one.
 * 
 * @return The status service.
 */
public org.restlet.service.StatusService getStatusService() {
  org.restlet.service.StatusService result = null;
  result = getApplication().getStatusService();
  if (result == null) {
    result = new org.restlet.service.StatusService();
  }
  return result;
}

代码示例来源:origin: org.restlet/org.restlet

if (getStatusService() != null) {
  getStatusService().stop();

代码示例来源:origin: org.restlet/org.restlet

if (getStatusService() != null) {
  getStatusService().start();

相关文章