Interface WebPerformanceMonitor

    • Method Detail

      • getCategories

        Categories getCategories​(java.lang.String serverName)
                          throws WebObjectsRuntimeException
        Returns the counters configured in this monitor for the server passed. The counters are returned as part of a Category-Instance-Counter hierarchy.
        Parameters:
        serverName - The name of the server for which categories are queried.
        Returns:
        Categories in this monitor corresponding to the serverName passed.
        Throws:
        WebObjectsRuntimeException
      • getCategories

        Categories getCategories()
                          throws WebObjectsRuntimeException
        Returns the counters configured in this monitor for non-named Intelligence Servers. The counters are returned as part of a Category-Instance-Counter hierarchy.
        Returns:
        Categories in this monitor corresponding to the serverName passed.
        Throws:
        WebObjectsRuntimeException
        Since:
        MicroStrategy Web 7.5.2
      • addCounter

        void addCounter​(java.lang.String serverName,
                        java.lang.String categoryName,
                        java.lang.String instanceName,
                        java.lang.String counterName)
                 throws java.lang.IllegalArgumentException,
                        WebObjectsRuntimeException
        Adds the counter passed to this monitor.
        Parameters:
        serverName - The name of the IServer
        categoryName - The name of the Category
        instanceName - The name of the instance
        counterName - The name of the counter
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null).
        WebObjectsRuntimeException - if the monitor XML is malformed.
      • addCounter

        void addCounter​(java.lang.String categoryName,
                        java.lang.String instanceName,
                        java.lang.String counterName)
                 throws java.lang.IllegalArgumentException,
                        WebObjectsRuntimeException
        Adds the counter passed to this monitor. This method will add a server-independent counter, which will apply to whatever server the session is active on.
        Parameters:
        categoryName - The name of the Category
        instanceName - The name of the instance
        counterName - The name of the counter
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null).
        WebObjectsRuntimeException - if the monitor XML is malformed.
        Since:
        MicroStrategy Web 7.5.2
      • addCounter

        void addCounter​(java.lang.String serverName,
                        Counter counter)
                 throws java.lang.IllegalArgumentException,
                        WebObjectsRuntimeException
        Adds the counter passed to this monitor.
        Parameters:
        serverName - The name of the IServer
        counter - The Counter to be added.
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null).
        WebObjectsRuntimeException - if the monitor XML is malformed.
      • addCounter

        void addCounter​(Counter counter)
                 throws java.lang.IllegalArgumentException,
                        WebObjectsRuntimeException
        Adds the counter passed to this monitor. This counter will not be attached to any particular server - instead, it will be such that the counter will apply to the server that the session is created on.
        Parameters:
        counter - The Counter to be added.
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null).
        WebObjectsRuntimeException - if the monitor XML is malformed.
        Since:
        MicroStrategy Web 7.5.2
      • removeCounter

        void removeCounter​(java.lang.String serverName,
                           java.lang.String categoryName,
                           java.lang.String instanceName,
                           java.lang.String counterName)
                    throws java.lang.IllegalArgumentException,
                           WebObjectsRuntimeException
        Removes the counter passed from this monitor.
        Parameters:
        serverName - The name of the IServer
        categoryName - The name of the Category
        instanceName - The name of the instance
        counterName - The name of the counter
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null). Also, thrown if the counter passed does not exist.
        WebObjectsRuntimeException - if the monitor XML is malformed.
      • removeCounter

        void removeCounter​(java.lang.String categoryName,
                           java.lang.String instanceName,
                           java.lang.String counterName)
                    throws java.lang.IllegalArgumentException,
                           WebObjectsRuntimeException
        Removes the counter passed from this monitor. This method removes a counter which is not tied to a particular server name.
        Parameters:
        categoryName - The name of the Category
        instanceName - The name of the instance
        counterName - The name of the counter
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null). Also, thrown if the counter passed does not exist.
        WebObjectsRuntimeException - if the monitor XML is malformed.
        Since:
        MicroStrategy Web 7.5.2
      • removeCounter

        void removeCounter​(java.lang.String serverName,
                           Counter counter)
                    throws java.lang.IllegalArgumentException,
                           WebObjectsRuntimeException
        Removes the counter passed from this monitor.
        Parameters:
        serverName - The name of the IServer
        counter - The Counter to be removed.
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null). Also, thrown if the counter passed does not exist.
        WebObjectsRuntimeException - if the monitor XML is malformed.
      • removeCounter

        void removeCounter​(Counter counter)
                    throws java.lang.IllegalArgumentException,
                           WebObjectsRuntimeException
        Removes the counter passed from this monitor. This method removes a counter not tied to a particular server name.
        Parameters:
        counter - The Counter to be removed.
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null). Also, thrown if the counter passed does not exist.
        WebObjectsRuntimeException - if the monitor XML is malformed.
        Since:
        MicroStrategy Web 7.5.2
      • getCounterProperties

        WebMonitorField getCounterProperties​(java.lang.String serverName,
                                             java.lang.String categoryName,
                                             java.lang.String instanceName,
                                             java.lang.String counterName)
                                      throws java.lang.IllegalArgumentException,
                                             WebObjectsRuntimeException
        Returns the properties configured for the counter passed. The properties are returned as a WebMonitorField object which is a collection of WebMonitorProperty objects.
        Parameters:
        serverName - The name of the IServer.
        categoryName - The name of the category.
        instanceName - The name of the instance
        counterName - The name of the counter
        Returns:
        WebMonitorField The properties for the counter passed as a monitor field.
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null). Also, thrown if the counter passed does not exist.
        WebObjectsRuntimeException - if the monitor XML is malformed.
      • getCounterProperties

        WebMonitorField getCounterProperties​(java.lang.String serverName,
                                             Counter counter)
                                      throws java.lang.IllegalArgumentException,
                                             WebObjectsRuntimeException
        Returns the properties configured for the counter passed. The properties are returned as a WebMonitorField object which is a collection of WebMonitorProperty objects.
        Parameters:
        serverName - The name of the IServer.
        counter - The counter object whose properties are queried.
        Returns:
        WebMonitorField The properties for the counter passed as a monitor field.
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null). Also, thrown if the counter passed does not exist.
        WebObjectsRuntimeException - if the monitor XML is malformed.
      • getCounterProperties

        WebMonitorField getCounterProperties​(Counter _counter)
                                      throws java.lang.IllegalArgumentException,
                                             WebObjectsRuntimeException
        Returns the properties configured for the counter passed. The properties are returned as a WebMonitorField object which is a collection of WebMonitorProperty objects. This method works for counters which are not associated with any server.
        Parameters:
        _counter - The counter object whose properties are queried.
        Returns:
        WebMonitorField The properties for the counter passed as a monitor field.
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null). Also, thrown if the counter passed does not exist.
        WebObjectsRuntimeException - if the monitor XML is malformed.
        Since:
        MicroStrategy Web 7.5.2
      • getCounterProperties

        WebMonitorField getCounterProperties​(java.lang.String _categoryName,
                                             java.lang.String _instanceName,
                                             java.lang.String _counterName)
                                      throws java.lang.IllegalArgumentException,
                                             WebObjectsRuntimeException
        Returns the properties configured for the counter passed. The properties are returned as a WebMonitorField object which is a collection of WebMonitorProperty objects. Note that this method works for counters with no server associated with them.
        Parameters:
        _categoryName - The name of the category.
        _instanceName - The name of the instance
        _counterName - The name of the counter
        Returns:
        WebMonitorField The properties for the counter passed as a monitor field.
        Throws:
        java.lang.IllegalArgumentException - if one or more of the arguments passed are incorrect (null). Also, thrown if the counter passed does not exist.
        WebObjectsRuntimeException - if the monitor XML is malformed.
        Since:
        MicroStrategy Web 7.5.2
      • getServerName

        java.lang.String getServerName​(Counter counter)
                                throws java.lang.IllegalArgumentException
        Returns the server name for the counter passed. This will only be returned if the serverName came from this WebPerformanceMonitor object.
        Parameters:
        counter - The counter to look up.
        Returns:
        The name of the server, or null if it is a serverless counter.
        Throws:
        java.lang.IllegalArgumentException - Thrown if the counter did not come from this performance monitor object.
        Since:
        MicroStrategy Web 7.5.2