| 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jini.discovery.OutgoingMulticastRequest
public class OutgoingMulticastRequest
Encapsulate the details of marshaling a multicast request into one or more packets.
IncomingMulticastRequest| Field Summary | |
|---|---|
protected static int | 
minMaxPacketSize
The minimum size we allow for an outgoing packet.  | 
protected static int | 
protocolVersion
The current version of the multicast announcement protocol.  | 
| Constructor Summary | |
|---|---|
OutgoingMulticastRequest()
 | 
|
| Method Summary | |
|---|---|
static DatagramPacket[] | 
marshal(int responsePort,
        String[] groups,
        ServiceID[] heard)
Using the default maximum packet size, marshal a multicast request into one or more datagram packets.  | 
static DatagramPacket[] | 
marshal(int responsePort,
        String[] groups,
        ServiceID[] heard,
        int maxPacketSize)
Using the given maximum packet size, marshal a multicast request into one or more datagram packets.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final int minMaxPacketSize
protected static final int protocolVersion
| Constructor Detail | 
|---|
public OutgoingMulticastRequest()
| Method Detail | 
|---|
public static DatagramPacket[] marshal(int responsePort,
                                       String[] groups,
                                       ServiceID[] heard)
                                throws IOException
The datagram packets returned will have been initialized for sending to the appropriate multicast address and UDP port.
responsePort - the port to which respondents should
                      connect in order to start unicast discoverygroups - the set of groups in which the requestor is
                      interestedheard - the set of ServiceIDs from which the requestor has
                      already heard
IOException - an error occurred during marshalling.
IllegalArgumentException - when the number and length of the
                                     group names to marshal, relative
                                     to the value of the default packet
                                     size maximum, is too large.
public static DatagramPacket[] marshal(int responsePort,
                                       String[] groups,
                                       ServiceID[] heard,
                                       int maxPacketSize)
                                throws IOException
The datagram packets returned will have been initialized for sending to the appropriate multicast address and UDP port.
responsePort - the port to which respondents should
                      connect in order to start unicast discoverygroups - the set of groups in which the requestor is
                      interestedheard - the set of ServiceIDs from which the requestor has
                      already heardmaxPacketSize - the maximum size to allow for an outgoing packet
IOException - an error occurred during marshalling
IllegalArgumentException - when the value of the 
                                     maxPacketSize argument
                                     is less than the default packet
                                     size maximum; or when the number
                                     and length of the group names to
                                     marshal, relative to the value of
                                     the maxPacketSize
                                     argument, is too large.
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||