Class MockElement

  • Direct Known Subclasses:
    MockContainer, MockPathOutage, MockService

    public abstract class MockElement
    extends Object

    Abstract MockElement class.

    Version:
    $Id: $
    Author:
    brozow TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
    • Method Detail

      • bringDown

        public void bringDown()

        bringDown

      • bringUp

        public void bringUp()

        bringUp

      • bringUnresponsive

        public void bringUnresponsive()

        bringUnresponsive

      • getPollCount

        public abstract int getPollCount()

        getPollCount

        Returns:
        a int.
      • getPollStatus

        public abstract PollStatus getPollStatus()

        getPollStatus

        Returns:
        a PollStatus object.
      • removeAnticipator

        public abstract void removeAnticipator​(PollAnticipator trigger)

        removeAnticipator

        Parameters:
        trigger - a PollAnticipator object.
      • resetPollCount

        public abstract void resetPollCount()

        resetPollCount

      • setServicePollStatus

        protected void setServicePollStatus​(PollStatus newStatus)

        setServicePollStatus

        Parameters:
        newStatus - a PollStatus object.
      • createDownEvent

        public abstract Event createDownEvent()

        createDownEvent

        Returns:
        a Event object.
      • createUpEvent

        public abstract Event createUpEvent()

        createUpEvent

        Returns:
        a Event object.
      • createUpEvent

        public Event createUpEvent​(Date date)

        createUpEvent

        Parameters:
        date - a Date object.
        Returns:
        a Event object.
      • createDownEvent

        public Event createDownEvent​(Date date)

        createDownEvent

        Parameters:
        date - a Date object.
        Returns:
        a Event object.
      • createNewEvent

        public abstract Event createNewEvent()

        createNewEvent

        Returns:
        a Event object.
      • createDeleteEvent

        public abstract Event createDeleteEvent()

        createDeleteEvent

        Returns:
        a Event object.