本文整理了Java中org.apache.cxf.Bus.getState()
方法的一些代码示例,展示了Bus.getState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bus.getState()
方法的具体详情如下:
包路径:org.apache.cxf.Bus
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!