Examples of CommandFailedException


Examples of com.pcmsolutions.system.CommandFailedException

                    links[n].copyLink();
                    Thread.yield();
                }
            }
        } catch (NoSuchPresetException e) {
            throw new CommandFailedException("Preset Not Found.");
        } catch (NoSuchLinkException e) {
            throw new CommandFailedException("No such link ");
        } catch (PresetEmptyException e) {
            throw new CommandFailedException("Preset Empty");
        } catch (TooManyVoicesException e) {
            throw new CommandFailedException("Too many voices");
        }
    }
View Full Code Here

Examples of com.pcmsolutions.system.CommandFailedException

    }

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        if (getTarget() == null)
            throw new CommandFailedException("No target");
        getTarget().refresh();
    }
View Full Code Here

Examples of com.pcmsolutions.system.CommandFailedException

        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                if (p == null)
                    throw new CommandFailedException("Null Target");
                newPreset(p);
            }
            for (int n = 0; n < num; n++) {
                newPreset(presets[n]);
                Thread.yield();
            }
        } catch (NoSuchPresetException e) {
            throw new CommandFailedException("Preset Not Found.");
        }
    }
View Full Code Here

Examples of com.pcmsolutions.system.CommandFailedException

        }
    }

    private void newPreset(ContextEditablePreset p) throws CommandFailedException, NoSuchPresetException {
        if (p == null)
            throw new CommandFailedException("Null Target");
        p.newPreset(p.getPresetNumber(), DeviceContext.UNTITLED_PRESET);
    }
View Full Code Here

Examples of com.pcmsolutions.system.CommandFailedException

        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                if (p == null)
                    throw new CommandFailedException("Null Target");
                eraseSample(p);
            }
            for (int n = 0; n < num; n++) {
                eraseSample(samples[n]);
                Thread.yield();
            }
        } catch (NoSuchSampleException e) {
            throw new CommandFailedException("Sample Not Found.");
        }
    }
View Full Code Here

Examples of org.jboss.blacktie.btadmin.CommandFailedException

        new String[] { "java.lang.String", "java.lang.String" });
    if (result) {
      log.info("Service unadvertised");
    } else {
      log.error("Service could not be unadvertised");
      throw new CommandFailedException(-1);
    }
  }
View Full Code Here

Examples of org.jboss.blacktie.btadmin.CommandFailedException

        "pauseDomain", new Object[] {}, new String[] {});
    if (result) {
      log.info("Domain paused");
    } else {
      log.error("Domain could not be paused");
      throw new CommandFailedException(-1);
    }
  }
View Full Code Here

Examples of org.jboss.blacktie.btadmin.CommandFailedException

            serverName, serviceName }, new String[] {
            "java.lang.String", "java.lang.String" });
    if (output == null) {
      log.error("Server/service was not running: " + serverName + "/"
          + serviceName);
      throw new CommandFailedException(-1);
    }
    Document document = output.getOwnerDocument();
    DOMImplementationLS domImplLS = (DOMImplementationLS) document
        .getImplementation();
    LSSerializer serializer = domImplLS.createLSSerializer();
View Full Code Here

Examples of org.jboss.blacktie.btadmin.CommandFailedException

        if (result) {
          log.info("Server shutdown successfully: " + next.getName()
              + " with id: " + next.getId());
        } else {
          log.error("Server could not be shutdown (may already be stopped)");
          throw new CommandFailedException(-1);
        }
      }
    } else {
      log.error("No servers were configured for shutdown");
      throw new CommandFailedException(-1);

    }
  }
View Full Code Here

Examples of org.jboss.blacktie.btadmin.CommandFailedException

              if (readLine == null) {
                readLine = error.readLine();
              }
              log.info(readLine);
              if (readLine == null) {
                throw new CommandFailedException(-3);
              } else if (readLine.endsWith("serverinit failed")) {
                throw new CommandFailedException(-2);
              } else if (readLine
                  .endsWith("Server waiting for requests...")) {
                new Thread(new EatIO(exec.getInputStream()))
                    .start();
                new Thread(new EatIO(exec.getErrorStream()))
                    .start();
                found = true;
                break;
              }
            }
          }
        }
      }
    }
    if (!found) {
      log.error("No machines configured for host");
      throw new CommandFailedException(-1);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.