|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.net.MulticastTest
public class MulticastTest
Test multicast broadcast.
| Nested Class Summary | |
|---|---|
class |
MulticastTest.Listener
|
| Field Summary | |
|---|---|
static String |
COMMAND_ADDR_GROUP
|
static String |
COMMAND_ADDR_LOCAL
|
static String |
COMMAND_DELAY
|
static String |
COMMAND_DISPLAY
|
static String |
COMMAND_HELP
|
static String |
COMMAND_TRANSLATE
|
static String |
COMMAND_TTL
|
static String |
DEFAULT_ADDR_GROUP
|
static String |
DEFAULT_ADDR_LOCAL
|
static int |
DEFAULT_DELAY
|
static int |
DEFAULT_DISPLAY
|
static String |
DEFAULT_IP_GROUP
|
static int |
DEFAULT_PORT
|
static int |
DEFAULT_TTL
|
static String[] |
VALID_COMMANDS
|
| Constructor Summary | |
|---|---|
MulticastTest(InetAddress addrIface,
InetSocketAddress addrGroup,
int nTTL,
int cSecsDelay,
int cbMax,
boolean fTranslate)
Construct the MulticastTest object. |
|
| Method Summary | |
|---|---|
void |
displayPacket(ReadBuffer buf,
InetSocketAddress addr)
|
protected void |
initSocket()
Open the multicast socket. |
static void |
main(String[] asArg)
Parse and validate the command-line parameters and start the test. |
void |
run()
Run the test. |
protected static void |
showInstructions()
Display the command-line instructions. |
protected static InetAddress |
translateAddress(String sAddr)
Convert an address string to an InetAddress. |
protected static InetSocketAddress |
translateSocketAddress(String sAddr)
Convert an address:port string to an InetSocketAddress. |
| Field Detail |
|---|
public static final String COMMAND_HELP
public static final String COMMAND_ADDR_LOCAL
public static final String COMMAND_ADDR_GROUP
public static final String COMMAND_TTL
public static final String COMMAND_DELAY
public static final String COMMAND_DISPLAY
public static final String COMMAND_TRANSLATE
public static final String DEFAULT_ADDR_LOCAL
public static final int DEFAULT_PORT
public static final String DEFAULT_IP_GROUP
public static final String DEFAULT_ADDR_GROUP
public static final int DEFAULT_TTL
public static final int DEFAULT_DELAY
public static final int DEFAULT_DISPLAY
public static final String[] VALID_COMMANDS
| Constructor Detail |
|---|
public MulticastTest(InetAddress addrIface,
InetSocketAddress addrGroup,
int nTTL,
int cSecsDelay,
int cbMax,
boolean fTranslate)
addrIface - address of the interface (NIC)addrGroup - address of the multicast groupnTTL - TTL setting for multicast packetscSecsDelay - number of seconds to delay between pingscbMax - max number of bytes in the packet body to displayfTranslate - true to translate and display cluster traffic| Method Detail |
|---|
public static void main(String[] asArg)
asArg - an array of command line parameters
protected static InetAddress translateAddress(String sAddr)
throws IOException
sAddr - a legal address string
IOException
protected static InetSocketAddress translateSocketAddress(String sAddr)
throws UnknownHostException
sAddr - a legal address string
UnknownHostExceptionprotected static void showInstructions()
public void run()
protected void initSocket()
public void displayPacket(ReadBuffer buf,
InetSocketAddress addr)
throws Exception
Exception
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||