예제 #1
0
 public static String getFrameworkStartLevel() throws IOException {
   cli.sendLine("/subsystem=osgi:read-attribute(name=startlevel)");
   CLIOpResult cliresult = cli.readAllAsOpResult(WAIT_TIMEOUT, WAIT_LINETIMEOUT);
   assertTrue(cliresult.isIsOutcomeSuccess());
   return (String) cliresult.getResult();
 }
예제 #2
0
 public static String getBundleState(Object resId) throws IOException {
   cli.sendLine("/subsystem=osgi/bundle=" + resId + ":read-attribute(name=state)");
   CLIOpResult cliresult = cli.readAllAsOpResult(WAIT_TIMEOUT, WAIT_LINETIMEOUT);
   return (String) cliresult.getResult();
 }