|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.mock.MockElement
org.opennms.netmgt.mock.MockContainer
org.opennms.netmgt.mock.MockNode
public class MockNode
MockNode class.
| Constructor Summary | |
|---|---|
MockNode(MockNetwork network,
int nodeid,
String label)
Constructor for MockNode. |
|
| Method Summary | |
|---|---|
MockInterface |
addInterface(String ipAddr)
addInterface |
Event |
createDeleteEvent()
createDeleteEvent |
Event |
createDownEvent()
createDownEvent |
Event |
createDownEventWithReason(String reason)
createDownEventWithReason |
Event |
createNewEvent()
createNewEvent |
Event |
createUpEvent()
createUpEvent |
MockInterface |
getInterface(String ipAddr)
getInterface |
String |
getLabel()
getLabel |
MockNetwork |
getNetwork()
getNetwork |
int |
getNextIfIndex()
getNextIfIndex |
int |
getNodeId()
getNodeId |
void |
removeInterface(MockInterface iface)
removeInterface |
String |
toString()
toString |
void |
visit(MockVisitor v)
visit |
| Methods inherited from class org.opennms.netmgt.mock.MockContainer |
|---|
addAnticipator, addMember, getMember, getMembers, getPollCount, getPollStatus, removeAnticipator, removeMember, resetPollCount, visitMembers |
| Methods inherited from class org.opennms.netmgt.mock.MockElement |
|---|
bringDown, bringUnresponsive, bringUp, createDownEvent, createUpEvent, getParent, moveTo, setServicePollStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MockNode(MockNetwork network,
int nodeid,
String label)
Constructor for MockNode.
network - a MockNetwork object.nodeid - a int.label - a String object.| Method Detail |
|---|
public MockInterface addInterface(String ipAddr)
addInterface
ipAddr - a String object.
MockInterface object.public MockInterface getInterface(String ipAddr)
getInterface
ipAddr - a String object.
MockInterface object.public String getLabel()
getLabel
String object.public MockNetwork getNetwork()
getNetwork
getNetwork in class MockElementMockNetwork object.public int getNodeId()
getNodeId
public int getNextIfIndex()
getNextIfIndex
public void removeInterface(MockInterface iface)
removeInterface
iface - a MockInterface object.public String toString()
toString
toString in class ObjectString object.public void visit(MockVisitor v)
visit
visit in class MockContainerv - a MockVisitor object.public Event createUpEvent()
createUpEvent
createUpEvent in class MockElementEvent object.public Event createDownEvent()
createDownEvent
createDownEvent in class MockElementEvent object.public Event createDownEventWithReason(String reason)
createDownEventWithReason
reason - a String object.
Event object.public Event createNewEvent()
createNewEvent
createNewEvent in class MockElementEvent object.public Event createDeleteEvent()
createDeleteEvent
createDeleteEvent in class MockElementEvent object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||