|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.comp.Contract
drcl.inet.contract.McastHostEvent
The McastHostEvent contract. This contract defines the message format in a multicast host event (a join or leave event). The event is delivered to a multicast routing protocol component to handle the event when a host joins or leaves a multicast group.
The event object is a message consisting of:
JOIN or LEAVE),
This class provides a set of static methods to faciliate constructing
the event object (createJoinEvent()s and
createLeaveEvent()s).
| Nested Class Summary | |
static class |
McastHostEvent.Message
|
| Field Summary | |
static McastHostEvent |
INSTANCE
|
static int |
JOIN
|
static int |
LEAVE
|
| Fields inherited from class drcl.comp.Contract |
Role_INITIATOR, Role_PEER, Role_REACTOR |
| Constructor Summary | |
McastHostEvent()
|
|
McastHostEvent(int role_)
|
|
| Method Summary | |
static McastHostEvent.Message |
createJoinEvent(long group_,
int ifindex_)
Returns the JOIN event message. |
static McastHostEvent.Message |
createJoinEvent(long src_,
long group_,
int ifindex_)
Returns the JOIN event message. |
static McastHostEvent.Message |
createJoinEvent(long src_,
long srcmask_,
long group_,
int ifindex_)
Returns the JOIN event message. |
static McastHostEvent.Message |
createLeaveEvent(long group_,
int ifindex_)
Returns the LEAVE event message. |
static McastHostEvent.Message |
createLeaveEvent(long src_,
long group_,
int ifindex_)
Returns the LEAVE event message. |
static McastHostEvent.Message |
createLeaveEvent(long src_,
long srcmask_,
long group_,
int ifindex_)
Returns the LEAVE event message. |
java.lang.Object |
getContractContent()
Returns the content of this contract (format?). |
java.lang.String |
getName()
|
| Methods inherited from class drcl.comp.Contract |
getRole, match, setRole |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final McastHostEvent INSTANCE
public static final int JOIN
public static final int LEAVE
| Constructor Detail |
public McastHostEvent()
public McastHostEvent(int role_)
| Method Detail |
public java.lang.String getName()
getName in class Contractpublic java.lang.Object getContractContent()
Contract
getContractContent in class Contract
public static McastHostEvent.Message createJoinEvent(long group_,
int ifindex_)
public static McastHostEvent.Message createJoinEvent(long src_,
long group_,
int ifindex_)
public static McastHostEvent.Message createJoinEvent(long src_,
long srcmask_,
long group_,
int ifindex_)
public static McastHostEvent.Message createLeaveEvent(long group_,
int ifindex_)
public static McastHostEvent.Message createLeaveEvent(long src_,
long group_,
int ifindex_)
public static McastHostEvent.Message createLeaveEvent(long src_,
long srcmask_,
long group_,
int ifindex_)
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||