Class EventBuilder

    • Constructor Detail

      • EventBuilder

        public EventBuilder()

        Constructor for EventBuilder.

        Parameters:
        uei - a String object.
        source - a String object.
      • EventBuilder

        public EventBuilder​(java.lang.String uei,
                            java.lang.String source)

        Constructor for EventBuilder.

        Parameters:
        uei - a String object.
        source - a String object.
      • EventBuilder

        public EventBuilder​(java.lang.String uei,
                            java.lang.String source,
                            java.util.Date date)

        Constructor for EventBuilder.

        Parameters:
        uei - a String object.
        source - a String object.
        date - a Date object.
      • EventBuilder

        public EventBuilder​(Event event)

        Constructor for EventBuilder.

        Parameters:
        event - a Event object.
    • Method Detail

      • checkForIllegalUei

        protected void checkForIllegalUei()
      • currentEventTime

        public java.util.Date currentEventTime()
      • getEvent

        public Event getEvent()

        getEvent

        Returns:
        a Event object.
      • getLog

        public Log getLog()
      • setUei

        public EventBuilder setUei​(java.lang.String uei)
      • setTime

        public EventBuilder setTime​(java.util.Date date)

        setTime

        Parameters:
        date - a Date object.
        Returns:
        a EventBuilder object.
      • setDayOfMonth

        public EventBuilder setDayOfMonth​(int value)
      • setHourOfDay

        public EventBuilder setHourOfDay​(int value)
      • setMillisecond

        public EventBuilder setMillisecond​(int value)
      • setZoneId

        public EventBuilder setZoneId​(java.time.ZoneId value)
      • setSource

        public EventBuilder setSource​(java.lang.String source)

        setSource

        Parameters:
        source - a String object.
        Returns:
        a EventBuilder object.
      • setSeverity

        public EventBuilder setSeverity​(java.lang.String severity)

        setSeverity

        Parameters:
        severity - a String object.
        Returns:
        a EventBuilder object.
      • setNodeid

        public EventBuilder setNodeid​(long nodeid)

        setNodeid

        Parameters:
        nodeid - a long.
        Returns:
        a EventBuilder object.
      • setHost

        public EventBuilder setHost​(java.lang.String hostname)

        setHost

        Parameters:
        hostname - a String object.
        Returns:
        a EventBuilder object.
      • setInterface

        public EventBuilder setInterface​(java.net.InetAddress ipAddress)

        setInterface

        Parameters:
        ipAddress - a String object.
        Returns:
        a EventBuilder object.
      • setIfIndex

        public EventBuilder setIfIndex​(int ifIndex)

        setInterface

        Parameters:
        ipAddress - a String object.
        Returns:
        a EventBuilder object.
      • setService

        public EventBuilder setService​(java.lang.String serviceName)

        setService

        Parameters:
        serviceName - a String object.
        Returns:
        a EventBuilder object.
      • addParam

        public EventBuilder addParam​(java.lang.String parmName,
                                     java.lang.String val)

        addParam

        Parameters:
        parmName - a String object.
        val - a String object.
        Returns:
        a EventBuilder object.
      • addParam

        public EventBuilder addParam​(java.lang.String parmName,
                                     java.lang.String val,
                                     java.lang.String type,
                                     java.lang.String encoding)
      • addParam

        public EventBuilder addParam​(java.lang.String parmName,
                                     boolean val)

        addParam

        Parameters:
        parmName - a String object.
        val - a String object.
        Returns:
        a EventBuilder object.
      • setParam

        public EventBuilder setParam​(java.lang.String parmName,
                                     java.lang.String val)

        setParam

        Parameters:
        parmName - a String object.
        val - a String object.
        Returns:
        a EventBuilder object.
      • setParam

        public EventBuilder setParam​(java.lang.String parmName,
                                     int val)

        setParam

        Parameters:
        parmName - a String object.
        val - a int.
        Returns:
        a EventBuilder object.
      • addParam

        public EventBuilder addParam​(java.lang.String parmName,
                                     double val)

        addParam

        Parameters:
        parmName - a String object.
        val - a long.
        Returns:
        a EventBuilder object.
      • addParam

        public EventBuilder addParam​(java.lang.String parmName,
                                     long val)

        addParam

        Parameters:
        parmName - a String object.
        val - a long.
        Returns:
        a EventBuilder object.
      • addParam

        public EventBuilder addParam​(java.lang.String parmName,
                                     int val)

        addParam

        Parameters:
        parmName - a String object.
        val - a int.
        Returns:
        a EventBuilder object.
      • addParam

        public EventBuilder addParam​(java.lang.String parmName,
                                     char ch)

        addParam

        Parameters:
        parmName - a String object.
        ch - a char.
        Returns:
        a EventBuilder object.
      • addParam

        public EventBuilder addParam​(java.lang.String parmName,
                                     java.util.Collection<java.lang.String> vals)

        addParam

        Parameters:
        parmName - a String object.
        vals - a Collection object.
        Returns:
        a EventBuilder object.
      • setSnmpVersion

        public EventBuilder setSnmpVersion​(java.lang.String version)

        setSnmpVersion

        Parameters:
        version - a String object.
        Returns:
        a EventBuilder object.
      • setCommunity

        public EventBuilder setCommunity​(java.lang.String community)
      • setEnterpriseId

        public EventBuilder setEnterpriseId​(java.lang.String enterprise)

        setEnterpriseId

        Parameters:
        enterprise - a String object.
        Returns:
        a EventBuilder object.
      • setTrapOID

        public EventBuilder setTrapOID​(java.lang.String trapOID)
      • setGeneric

        public EventBuilder setGeneric​(int generic)

        setGeneric

        Parameters:
        generic - a int.
        Returns:
        a EventBuilder object.
      • setSpecific

        public EventBuilder setSpecific​(int specific)

        setSpecific

        Parameters:
        specific - a int.
        Returns:
        a EventBuilder object.
      • setSnmpHost

        public EventBuilder setSnmpHost​(java.lang.String snmpHost)

        setSnmpHost

        Parameters:
        snmpHost - a String object.
        Returns:
        a EventBuilder object.
      • setSnmpTimeStamp

        public EventBuilder setSnmpTimeStamp​(long timeStamp)
      • setField

        public void setField​(java.lang.String name,
                             java.lang.String val)

        setField

        Parameters:
        name - a String object.
        val - a String object.
      • setLogDest

        public EventBuilder setLogDest​(java.lang.String dest)

        setLogDest

        Parameters:
        dest - a String object.
        Returns:
        a EventBuilder object.
      • setLogMessage

        public EventBuilder setLogMessage​(java.lang.String content)

        setLogMessage

        Parameters:
        content - a String object.
        Returns:
        a EventBuilder object.
      • setDescription

        public EventBuilder setDescription​(java.lang.String descr)

        setDescription

        Parameters:
        descr - a String object.
        Returns:
        a EventBuilder object.
      • setParms

        public EventBuilder setParms​(java.util.List<Parm> parms)

        setParms

        Parameters:
        parms - a list of parameters.
        Returns:
        the event builder
      • setUuid

        public EventBuilder setUuid​(java.lang.String uuid)
      • setDistPoller

        public EventBuilder setDistPoller​(java.lang.String distPoller)
      • setMasterStation

        public EventBuilder setMasterStation​(java.lang.String masterStation)