IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Broker Storage File Information and Broker.qs.stor information using Java API

  • 1.  Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Tue March 13, 2007 11:34 AM

    Hi All,

    I want information related to broker utilization. Using Broker Java APIs, I am getting almost all information till Total Storage whose session URL is qs:///appl/webMethods/v6/IS/brokerdata/default/Broker.qss. Inside that there is 3 more .stor file which uses the max available storage of total storage.
    My question is that, Using Java APIs of Broker how could i get all those information related to .stor files. ie

    Storage /appl/webMethods/v6/IS/brokerdata/default/Broker.qs.stor
    Max. Available
    Used and Reserved

    Can you provide me the ways or keywords for that, how can i loop over these storage files to get all information of .stor files. All information is coming from getStats and getUsageStats. But i don’t know how to get these informations.

    Please help me out. Thanks in advance.

    Best Regards
    Aashish Sinha


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #broker
    #webMethods


  • 2.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Wed March 14, 2007 02:13 AM

    For others coming upon this thread, Aashish is referring to the BrokerServerClient:getUsageStats method. This class is described in the webMethods Broker Administration Java API Programmer’s Guide.

    The object returned by getUsageStats is a BrokerEvent, which is described in the webMethods Broker Client Java API Programmer’s Guide. You use the BrokerEvent methods to retrieve the fields from the event. For example, to get the value for the max available that you note above, you’d call:

    BrokerEvent evt;
    BrokerServerClient serverClient;
    //… code to establish a connection and such…
    evt = serverClient.getUsageStats();
    long guaranteedDiskSize = evt.getLongField(“guaranteedDiskSize”);

    The event structure may have changed or have different fields in it so you’ll want to investigate to see what is in the event object.

    Hope this helps.


    #broker
    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB


  • 3.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Wed March 14, 2007 08:32 AM

    Hi ,

    Thanks for your reply,

    I am getting all information from getUsageStats() like guranteed disk space and others. I need API’s to get information related to .qs.stor storage and reserve space information.
    Because of getUsageStats() i am getting CPU,Persistent Storage and Guranteed Storage Information but not getting .qs.stor information. If you run a service called getServerList inside WmBrokerAdmin: server it will show you all statistics and inside one structure it will show statistics of .qs.stor files. So, how could i retrieve information related to that using Broker Java API’s.

    Thanks in Advance.

    Aashish


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods
    #broker


  • 4.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Wed March 14, 2007 05:05 PM

    BrokerServerClient c;
    c = new BrokerServerClient(broker_host, null);
    BrokerEvent e = c.getStorageStats();
    BrokerEvent[] sessions = e.getStructSeqFieldAsEvents(“sessions”, 0, -1);

    The fields in each session event include:

    session_url
    session_usage
    stats
    max_transaction_kbytes
    max_kbytes_available
    current_kbytes_reserved
    current_kbytes_inuse

    The getStorageStats method may not be a published method (I cannot find any docs that refer to it) so future versions might break any code that relies on it.


    #Integration-Server-and-ESB
    #webMethods
    #broker
    #Universal-Messaging-Broker


  • 5.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Thu March 15, 2007 12:31 PM


  • 6.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Tue January 06, 2009 07:39 PM

    hi,
    can any one tell me how to create jms trigger in webMethods 7.1
    thanks in advance
    rajib


    #webMethods
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #broker


  • 7.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Mon October 05, 2009 08:24 PM

    Hi,

    Can I get a little insight of how to display the information that we get in BrokerEvent. Basically, how to convert this BrokerEvent array to documentlist, if I use this code as Java Service …

    BrokerEvent sessions = e.getStructSeqFieldAsEvents(“sessions”, 0, -1);


    #Integration-Server-and-ESB
    #broker
    #Universal-Messaging-Broker
    #webMethods


  • 8.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Tue October 06, 2009 06:50 PM


  • 9.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Fri June 04, 2010 05:43 AM

    After the step
    BrokerEvent sessions = e.getStructSeqFieldAsEvents(“sessions”, 0, -1);

    How to get the values:
    session_url
    session_usage
    stats
    max_transaction_kbytes
    max_kbytes_available
    current_kbytes_reserved
    current_kbytes_inuse

    from sessions??


    #broker
    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB


  • 10.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Fri June 04, 2010 10:52 AM


  • 11.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Thu August 25, 2011 06:24 AM

    Thanks Rob, for the insight you provided.

    It helped me write the Java service (attached) that provided Broker store usage stats - (published courtesy my employer, Corporate Express Australia and Kolappan, CE Integration lead). I’ve also uploaded this file to the wmuser shareware section.

    This code uses a slightly different approach – BrokerEvent.getField() parses the BrokerEvent, instead of getStructSeqFieldAsEvents().

    As of IS 8, BrokerServerClient.getStorageStats() appears to be fully documented in the Broker Java API:
    [url]http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8_ga/Broker_and_JMS/8-0-SP1_Broker_Java_Admin_API_Reference/index.html?COM/activesw/api/client/class-use/BrokerServerClient.html[/url]

    Just a comment to Software AG – ‘My webMethods Server’ (MWS) already reports the broker store utilization information (MWS > Servers > Broker Server Details > Utilization Tab). As a webservices company, why does Software AG not simply allow programmatic quering of MWS data via webservice calls. I mean, MWS already reports it - to have to create a new Java broker client seems wasteful. (Or maybe this is possible ? :slight_smile:
    Java Utility Service for Broker Store Usage Monitoring.txt (7.68 KB)


    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #webMethods
    #broker


  • 12.  RE: Broker Storage File Information and Broker.qs.stor information using Java API

    Posted Mon January 30, 2012 01:33 AM

    Hello napster,

    I am getting below error. Can you please help me out?

    getBrokerStorageStats.java:28: Method getStorageStats() not found in class COM.activesw.API.client.BrokerServerClient.
    brokerStats = brokerClient.getStorageStats();
    ^


    #webMethods
    #Universal-Messaging-Broker
    #broker
    #Integration-Server-and-ESB


  • 13.  RE: Broker Storage File Information and Broker.qs.stor information using Java API