Package jade.core

Examples of jade.core.GenericCommand.addParam()


    }
   
    GenericCommand cmd = new GenericCommand(MessagingSlice.NOTIFY_FAILURE, MessagingSlice.NAME, null);
    cmd.addParam(msg);
    cmd.addParam(receiver);
    cmd.addParam(ie);
   
    try {
      submit(cmd);
    }
    catch(ServiceException se) {
View Full Code Here


     */
    public void notifyFailureToSender(GenericMessage msg, AID receiver,
        InternalError ie) {
        GenericCommand cmd = new GenericCommand(MessagingSlice.NOTIFY_FAILURE,
                MessagingSlice.NAME, null);
        cmd.addParam(receiver);
        cmd.addParam(msg);
        cmd.addParam(ie);

        try {
            submit(cmd);
View Full Code Here

    public void notifyFailureToSender(GenericMessage msg, AID receiver,
        InternalError ie) {
        GenericCommand cmd = new GenericCommand(MessagingSlice.NOTIFY_FAILURE,
                MessagingSlice.NAME, null);
        cmd.addParam(receiver);
        cmd.addParam(msg);
        cmd.addParam(ie);

        try {
            submit(cmd);
        } catch (ServiceException se) {
View Full Code Here

        InternalError ie) {
        GenericCommand cmd = new GenericCommand(MessagingSlice.NOTIFY_FAILURE,
                MessagingSlice.NAME, null);
        cmd.addParam(receiver);
        cmd.addParam(msg);
        cmd.addParam(ie);

        try {
            submit(cmd);
        } catch (ServiceException se) {
            // It should never happen
View Full Code Here

  /*
   * Request a given node to start sending UDP packets
   */
  public void activateUDP(String label, String host, int port, int pingDelay, long key) throws IMTPException, ServiceException {
    GenericCommand cmd = new GenericCommand(H_ACTIVATEUDP, UDPNodeMonitoringService.NAME, null);
    cmd.addParam(label);
    cmd.addParam(host);
    cmd.addParam(new Integer(port));
    cmd.addParam(new Integer(pingDelay));
    cmd.addParam(new Long(key));

View Full Code Here

   * Request a given node to start sending UDP packets
   */
  public void activateUDP(String label, String host, int port, int pingDelay, long key) throws IMTPException, ServiceException {
    GenericCommand cmd = new GenericCommand(H_ACTIVATEUDP, UDPNodeMonitoringService.NAME, null);
    cmd.addParam(label);
    cmd.addParam(host);
    cmd.addParam(new Integer(port));
    cmd.addParam(new Integer(pingDelay));
    cmd.addParam(new Long(key));

    Node n = getNode();
View Full Code Here

   */
  public void activateUDP(String label, String host, int port, int pingDelay, long key) throws IMTPException, ServiceException {
    GenericCommand cmd = new GenericCommand(H_ACTIVATEUDP, UDPNodeMonitoringService.NAME, null);
    cmd.addParam(label);
    cmd.addParam(host);
    cmd.addParam(new Integer(port));
    cmd.addParam(new Integer(pingDelay));
    cmd.addParam(new Long(key));

    Node n = getNode();
    Object result = n.accept(cmd);
View Full Code Here

  public void activateUDP(String label, String host, int port, int pingDelay, long key) throws IMTPException, ServiceException {
    GenericCommand cmd = new GenericCommand(H_ACTIVATEUDP, UDPNodeMonitoringService.NAME, null);
    cmd.addParam(label);
    cmd.addParam(host);
    cmd.addParam(new Integer(port));
    cmd.addParam(new Integer(pingDelay));
    cmd.addParam(new Long(key));

    Node n = getNode();
    Object result = n.accept(cmd);
    if ((result != null) && (result instanceof Throwable)) {
View Full Code Here

    GenericCommand cmd = new GenericCommand(H_ACTIVATEUDP, UDPNodeMonitoringService.NAME, null);
    cmd.addParam(label);
    cmd.addParam(host);
    cmd.addParam(new Integer(port));
    cmd.addParam(new Integer(pingDelay));
    cmd.addParam(new Long(key));

    Node n = getNode();
    Object result = n.accept(cmd);
    if ((result != null) && (result instanceof Throwable)) {
      if (result instanceof IMTPException) {
View Full Code Here

   * Request a given node to stop sending UDP packets
   */
  public void deactivateUDP(String label, long key) throws IMTPException {
    try {
      GenericCommand cmd = new GenericCommand(H_DEACTIVATEUDP, UDPNodeMonitoringService.NAME, null);
      cmd.addParam(label);
      cmd.addParam(new Long(key));
 
      Node n = getNode();
      Object result = n.accept(cmd);
      if ((result != null) && (result instanceof Throwable)) {
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.