org.apache.cxf.Bus.getState()方法的使用及代码示例

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

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

Bus.getState介绍

暂无

代码示例

代码示例来源:origin: io.cloudsoft.windows/winrm4j-client

@Override
public void close() {
  if (context == null) return;
  boolean isBusRunning = context.getBus().getState() != BusState.SHUTDOWN;
  if (isBusRunning && cleanupContext) {
    context.getBus().shutdown(true);
  }
}

代码示例来源:origin: io.cloudsoft.windows/winrm4j-client

/**
 * @deprecated since 0.6.0. Use {@link ShellCommand#close()} instead.
 */
@Deprecated
public void disconnect() {
  if (context == null) return;
  boolean isBusRunning = context.getBus().getState() != BusState.SHUTDOWN;
  if (!isBusRunning) return;
  try {
    ShellCommand oldShellCmd = cleanupInstanceShell();
    if (oldShellCmd != null) {
      oldShellCmd.close();
    }
  } finally {
    if (cleanupContext) {
      context.getBus().shutdown(true);
    }
  }
}

代码示例来源:origin: apache/cxf

@Override
public Object execute() throws Exception {
  List<Bus> busses = getBusses();
  ShellTable table = new ShellTable();
  if (terminal != null && terminal.getWidth() > 0) {
    table.size(terminal.getWidth());
  }
  table.column("Name");
  table.column("State");
  for (Bus bus : busses) {
    String name = bus.getId();
    String state = bus.getState().toString();
    table.addRow().addContent(name, state);
  }
  table.print(System.out, !noFormat);
  return null;
}

代码示例来源:origin: org.apache.cxf.karaf/cxf-karaf-commands

@Override
public Object execute() throws Exception {
  List<Bus> busses = getBusses();
  ShellTable table = new ShellTable();
  if (terminal != null && terminal.getWidth() > 0) {
    table.size(terminal.getWidth());
  }
  table.column("Name");
  table.column("State");
  for (Bus bus : busses) {
    String name = bus.getId();
    String state = bus.getState().toString();
    table.addRow().addContent(name, state);
  }
  table.print(System.out, !noFormat);
  return null;
}

相关文章