public void setStartLevel(int startLevel) throws MBeanException { try { systemService.setStartLevel(startLevel); } catch (Exception e) { throw new MBeanException(null, e.toString()); } }
@Override public Object execute() throws Exception { if (level == null) { System.out.println("Level " + systemService.getStartLevel()); } else { systemService.setStartLevel(level); } return null; }
public void setStartLevel(int startLevel) throws MBeanException { try { systemService.setStartLevel(startLevel); } catch (Exception e) { throw new MBeanException(null, e.toString()); } }
@Override public Object execute() throws Exception { if (level == null) { System.out.println("Level " + systemService.getStartLevel()); } else { systemService.setStartLevel(level); } return null; }
protected Object doExecute() throws Exception { if (level == null) { System.out.println("Level " + systemService.getStartLevel()); } else { systemService.setStartLevel(level); } return null; }