Class OnmsRestEventsClient


  • public class OnmsRestEventsClient
    extends java.lang.Object
    Client for importing events from OpenNMS ReST interface (This is used to fill ES with old events from the OpenNMS database)
    Author:
    cgallen
    • Constructor Summary

      Constructors 
      Constructor Description
      OnmsRestEventsClient​(java.lang.String baseUrl, java.lang.String username, java.lang.String password)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getEventCount()  
      java.util.List<Event> getEvents​(java.lang.Integer limit, java.lang.Integer offset)  
      • Methods inherited from class java.lang.Object

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

      • OnmsRestEventsClient

        public OnmsRestEventsClient​(java.lang.String baseUrl,
                                    java.lang.String username,
                                    java.lang.String password)
    • Method Detail

      • getEventCount

        public java.lang.Integer getEventCount()
      • getEvents

        public java.util.List<Event> getEvents​(java.lang.Integer limit,
                                               java.lang.Integer offset)