Examples of FwdAdminRequestNot


Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

  abstract protected void doUnknownAgent(UnknownAgent not);
  abstract protected void doDeleteNot(DeleteNot not);
 
  public void delete() {
    DeleteDestination request = new DeleteDestination(getDestinationId());
    FwdAdminRequestNot deleteNot = new FwdAdminRequestNot(request, null, null);
    Channel.sendTo(AdminTopic.getDefault(), deleteNot);
  }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

   */
  private void broadcastRequest(AdminRequest request,
                                int avoidServerId,
                                AgentId replyTo,
                                String msgId) {
    FwdAdminRequestNot not = new FwdAdminRequestNot(request, replyTo, msgId);
    Enumeration ids = AgentServer.getServersIds();
    while (ids.hasMoreElements()) {
      short id = ((Short) ids.nextElement()).shortValue();
      if (id != AgentServer.getServerId() && id != avoidServerId) {
        forward(getDefault(id), not);
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

                         AgentId replyTo,
                         String requestMsgId) throws UnknownServerException {
    AgentId userId = AgentId.fromString(request.getUserId());
    if (checkServerId(userId.getTo())) {
      // Delegate to the proxy
      forward(userId, new FwdAdminRequestNot(request, replyTo, requestMsgId, createMessageId()));
    } else {
      // Forward the request to the right AdminTopic agent.
      forward(getDefault(userId.getTo()),
              new FwdAdminRequestNot(request, replyTo, requestMsgId, null));
    }
  }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

            logger.log(BasicLevel.WARN, "", exc);
          distributeReply(replyTo, requestMsgId, new AdminReply(false, exc.toString()));
        }
      } else {
        // Forward the request to the right AdminTopic agent.
        forward(getDefault(targetId.getTo()), new FwdAdminRequestNot(request, replyTo, requestMsgId));
      }
    } else {
      // Forward the request to the target.
      forward(targetId, new FwdAdminRequestNot(request, replyTo, requestMsgId, createMessageId()));
    }
  }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

        identity.setUserName(user);
    } catch (Exception e) {
      throw new RequestException(e.getMessage());
    }
    CreateUserRequest request = new CreateUserRequest(identity, serverId, null);
    FwdAdminRequestNot createNot = new FwdAdminRequestNot(request, null, null);
    Channel.sendTo(getId(), createNot);
  }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

  /**
   * {@inheritDoc}
   */
  public void createQueue(String name, String queueClassName, int serverId) {
    CreateDestinationRequest request = new CreateDestinationRequest(serverId, name, queueClassName, null, DestinationConstants.QUEUE_TYPE);
    FwdAdminRequestNot createNot = new FwdAdminRequestNot(request, null, null);
    Channel.sendTo(getId(), createNot);
  }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

   * {@inheritDoc}
   */
  public void createTopic(String name, String topicClassName, int serverId) {
    CreateDestinationRequest request = new CreateDestinationRequest(serverId, name, topicClassName, null,
        DestinationConstants.TOPIC_TYPE);
    FwdAdminRequestNot createNot = new FwdAdminRequestNot(request, null, null);
    Channel.sendTo(getId(), createNot);
  }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

      logger.log(BasicLevel.DEBUG, "UserAgent.cleanPendingMessages -> " + messagesTable.size());
  }

  public void delete() {
    DeleteUser request = new DeleteUser(getName(), getId().toString());
    FwdAdminRequestNot deleteNot = new FwdAdminRequestNot(request, null, null);
    Channel.sendTo(AdminTopic.getDefault(), deleteNot);
  }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

                      new AdminReply(true, "Server stopped"));
      AgentServer.stop(false, 500L, true);
    } else {
      // Forward the request to the right AdminTopic agent.
      forward(getDefault((short) request.getServerId()),
              new FwdAdminRequestNot(request, replyTo, msgId));
    }
  }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.FwdAdminRequestNot

        logger.log(BasicLevel.DEBUG, strbuf.toString());
      strbuf.setLength(0);
    } else {
      // Forward the request to the right AdminTopic agent.
      forward(getDefault((short) request.getServerId()),
              new FwdAdminRequestNot(request, replyTo, msgId));
    }
  }
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.