com.ibm.tivoli.maximo.iotf.processor

Class PagedAssetLocSelector

  • java.lang.Object
    • com.ibm.tivoli.maximo.iotf.processor.PagedAssetLocSelector


  • public class PagedAssetLocSelector
    extends java.lang.Object
    Prepares metric list from MAS DD
    • Constructor Summary

      Constructors 
      Constructor and Description
      PagedAssetLocSelector(java.lang.String completeWhere, int pageSize, boolean forAsset, boolean unmappedOnly, UserInfo userInfo)
      Select all asset/location which have meters
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void cleanup()
      Cleanup
      java.util.Map getMetricMap()
      Returns metric map
      java.util.Map nextPage(boolean forAsset)
      Select data for one REST call
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PagedAssetLocSelector

        public PagedAssetLocSelector(java.lang.String completeWhere,
                                     int pageSize,
                                     boolean forAsset,
                                     boolean unmappedOnly,
                                     UserInfo userInfo)
                              throws java.rmi.RemoteException,
                                     MXException
        Select all asset/location which have meters
        Parameters:
        completeWhere - where clause
        pageSize - number of asset/locations per call
        forAsset - true if asset , false if location
        unmappedOnly - include meters which have metrics
        userInfo - reference to user info
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
    • Method Detail

      • nextPage

        public java.util.Map nextPage(boolean forAsset)
                               throws java.rmi.RemoteException,
                                      MXException
        Select data for one REST call
        Parameters:
        forAsset - true if asset , false if location
        Returns:
        map with meter data
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • getMetricMap

        public java.util.Map getMetricMap()
        Returns metric map
        Returns:
        map with meter data
      • cleanup

        public void cleanup()
        Cleanup