protected Object doExecute() throws Exception { Instance[] instances = getInstanceService().getInstances(); ShellTable table = new ShellTable(); table.column("SSH Port").alignRight(); table.column("SSH Host").alignRight(); table.column("RMI Registry").alignRight(); table.column("RMI Registry Host").alignRight(); table.column("RMI Server").alignRight(); table.column("RMI Server Host").alignRight(); table.column("State"); table.column("PID"); table.column(getRightColumnHeader()); for (Instance instance : instances) { table.addRow().addContent( instance.getSshPort(), instance.getSshHost(), instance.getRmiRegistryPort(), instance.getRmiRegistryHost(), instance.getRmiServerPort(), instance.getRmiServerHost(), instance.getState(), instance.getPid(), getRightColumnValue(instance)); } table.print(System.out, !noFormat); return null; }
protected Object doExecute() throws Exception { Instance[] instances = getInstanceService().getInstances(); ShellTable table = new ShellTable(); table.column("SSH Port").alignRight(); table.column("SSH Host").alignRight(); table.column("RMI Registry").alignRight(); table.column("RMI Registry Host").alignRight(); table.column("RMI Server").alignRight(); table.column("RMI Server Host").alignRight(); table.column("State"); table.column("PID"); table.column(getRightColumnHeader()); for (Instance instance : instances) { table.addRow().addContent( instance.getSshPort(), instance.getSshHost(), instance.getRmiRegistryPort(), instance.getRmiRegistryHost(), instance.getRmiServerPort(), instance.getRmiServerHost(), instance.getState(), instance.getPid(), getRightColumnValue(instance)); } table.print(System.out, !noFormat); return null; }
table.column("ID").alignRight(); table.column("State"); table.column("Lvl");
table.column("ID").alignRight(); table.column("State"); table.column("Lvl");
table.size(terminal.getWidth() - 1); table.column("ID").alignRight(); table.column("State"); table.column("Lvl").alignRight(); table.column("Version");
table.size(terminal.getWidth() - 1); table.column("ID").alignRight(); table.column("State"); table.column("Lvl").alignRight(); table.column("Version");
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("ID").alignRight(); table.column("SymbolicName"); table.column("Version"); table.column("State"); table.column("Type"); table.column("Parents"); table.column("Children"); for (Subsystem ss : getSubsystems()) { table.addRow().addContent( ss.getSubsystemId(), ss.getSymbolicName(), ss.getVersion(), ss.getState().toString(), getType(ss), getSubsytemIds(ss.getParents()), getSubsytemIds(ss.getChildren()) ); } table.print(System.out); return null; }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("ID").alignRight(); table.column("SymbolicName"); table.column("Version"); table.column("State"); table.column("Type"); table.column("Parents"); table.column("Children"); for (Subsystem ss : getSubsystems()) { table.addRow().addContent( ss.getSubsystemId(), ss.getSymbolicName(), ss.getVersion(), ss.getState().toString(), getType(ss), getSubsytemIds(ss.getParents()), getSubsytemIds(ss.getChildren()) ); } table.print(System.out); return null; }