Package org.objectweb.joram.shared.admin

Examples of org.objectweb.joram.shared.admin.GetStatsReply


   *
   * @see org.objectweb.joram.client.jms.DestinationMBean#getStatistics()
   */
  public Hashtable getStatistics() throws ConnectException, AdminException {
    GetStatsRequest request = new GetStatsRequest(getName());
    GetStatsReply reply = (GetStatsReply) doRequest(request);
    return  reply.getStats();
  }
View Full Code Here


   * @exception ConnectException  If the connection fails.
   * @exception AdminException  If the request fails.
   */
  public final Hashtable getStatistics(int serverId) throws ConnectException, AdminException {
    GetStatsRequest request = new GetStatsRequest(DestinationConstants.getNullId(serverId));
    GetStatsReply reply = (GetStatsReply) doRequest(request);
    return  reply.getStats();
  }
View Full Code Here

    if (adminRequest instanceof SetRight) {
      setRight((SetRight) adminRequest,
               not.getReplyTo(), not.getRequestMsgId(), not.getReplyMsgId());
    } else if (adminRequest instanceof GetStatsRequest) {
      replyToTopic(new GetStatsReply(getJMXStatistics()),
                   not.getReplyTo(), not.getRequestMsgId(), not.getReplyMsgId());
    } else if (adminRequest instanceof SetDMQRequest) {
      // state change, so save.
      setSave();
View Full Code Here

      // Return the statistics of the server
      Hashtable stats = new Hashtable();
      stats.put("AverageLoad1", new Float(AgentServer.getEngineAverageLoad1()));
      stats.put("AverageLoad5", new Float(AgentServer.getEngineAverageLoad5()));
      stats.put("AverageLoad15", new Float(AgentServer.getEngineAverageLoad15()));
      GetStatsReply reply = new GetStatsReply(stats);
      distributeReply(replyTo, msgId, reply);
    } else {
      forward(destId, new FwdAdminRequestNot(request, replyTo, msgId, createMessageId()));
    }
  }
View Full Code Here

TOP

Related Classes of org.objectweb.joram.shared.admin.GetStatsReply

Copyright © 2018 www.massapicom. 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.