Package org.opennms.netmgt.mock
Class MockElement
- java.lang.Object
-
- org.opennms.netmgt.mock.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MockElement(MockContainer<?,? extends MockElement> parent)
Constructor for MockElement.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addAnticipator(PollAnticipator trigger)
addAnticipatorvoid
bringDown()
bringDownvoid
bringUnresponsive()
bringUnresponsivevoid
bringUp()
bringUpabstract Event
createDeleteEvent()
createDeleteEventabstract Event
createDownEvent()
createDownEventEvent
createDownEvent(Date date)
createDownEventabstract Event
createNewEvent()
createNewEventabstract Event
createUpEvent()
createUpEventEvent
createUpEvent(Date date)
createUpEventMockNetwork
getNetwork()
getNetworkMockContainer<?,? extends MockElement>
getParent()
getParentabstract int
getPollCount()
getPollCountabstract PollStatus
getPollStatus()
getPollStatusvoid
moveTo(MockContainer newParent)
moveToabstract void
removeAnticipator(PollAnticipator trigger)
removeAnticipatorabstract void
resetPollCount()
resetPollCountprotected void
setServicePollStatus(PollStatus newStatus)
setServicePollStatusvoid
visit(MockVisitor v)
visit
-
-
-
Constructor Detail
-
MockElement
protected MockElement(MockContainer<?,? extends MockElement> parent)
Constructor for MockElement.
- Parameters:
parent
- aMockContainer
object.
-
-
Method Detail
-
addAnticipator
public abstract void addAnticipator(PollAnticipator trigger)
addAnticipator
- Parameters:
trigger
- aPollAnticipator
object.
-
bringDown
public void bringDown()
bringDown
-
bringUp
public void bringUp()
bringUp
-
bringUnresponsive
public void bringUnresponsive()
bringUnresponsive
-
getParent
public MockContainer<?,? extends MockElement> getParent()
getParent
- Returns:
- a
MockContainer
object.
-
getNetwork
public MockNetwork getNetwork()
getNetwork
- Returns:
- a
MockNetwork
object.
-
getPollCount
public abstract int getPollCount()
getPollCount
- Returns:
- a int.
-
getPollStatus
public abstract PollStatus getPollStatus()
getPollStatus
- Returns:
- a
PollStatus
object.
-
moveTo
public void moveTo(MockContainer newParent)
moveTo
- Parameters:
newParent
- aMockContainer
object.
-
removeAnticipator
public abstract void removeAnticipator(PollAnticipator trigger)
removeAnticipator
- Parameters:
trigger
- aPollAnticipator
object.
-
resetPollCount
public abstract void resetPollCount()
resetPollCount
-
setServicePollStatus
protected void setServicePollStatus(PollStatus newStatus)
setServicePollStatus
- Parameters:
newStatus
- aPollStatus
object.
-
visit
public void visit(MockVisitor v)
visit
- Parameters:
v
- aMockVisitor
object.
-
-