com.atlassian.confluence.util
Class MulticastRouteTester

java.lang.Object
  extended by com.atlassian.confluence.util.MulticastRouteTester
All Implemented Interfaces:
java.lang.Runnable

public class MulticastRouteTester
extends java.lang.Object
implements java.lang.Runnable

A class for performing diagnostics on the multicast routing table of the current host


Nested Class Summary
static class MulticastRouteTester.Log4JReporter
          Log4J reporting strategy
static interface MulticastRouteTester.TestReporter
          Reporting strategy interface for reporting problems encountered during the test
 
Constructor Summary
MulticastRouteTester(java.net.InetAddress multicastGroup, java.net.NetworkInterface iface, int port)
          Construct a multicast test for the specified network address, interface and port
MulticastRouteTester(java.net.InetAddress multicastGroup, java.net.NetworkInterface iface, int port, MulticastRouteTester.TestReporter testReporter)
          Allows the test to be conducted and reported via the provided reporter delegate.
 
Method Summary
 boolean isSuccessful()
           
 void run()
           
 boolean test(java.net.InetAddress multicastGroup, java.net.NetworkInterface iface, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MulticastRouteTester

public MulticastRouteTester(java.net.InetAddress multicastGroup,
                            java.net.NetworkInterface iface,
                            int port)
Construct a multicast test for the specified network address, interface and port

Parameters:
multicastGroup - Multicast group to perform testing with
iface - Interface to bind multicast test port
port - UDP port for multicast test

MulticastRouteTester

public MulticastRouteTester(java.net.InetAddress multicastGroup,
                            java.net.NetworkInterface iface,
                            int port,
                            MulticastRouteTester.TestReporter testReporter)
Allows the test to be conducted and reported via the provided reporter delegate. Useful for reporting results via UI.

Parameters:
multicastGroup - Multicast group to perform testing with
iface - Interface to bind multicast test port
port - UDP port for multicast test
testReporter - Reporter for collecting problems encountered during the test
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

test

public boolean test(java.net.InetAddress multicastGroup,
                    java.net.NetworkInterface iface,
                    int port)
             throws java.io.IOException
Throws:
java.io.IOException

isSuccessful

public boolean isSuccessful()


Copyright © 2003-2014 Atlassian. All Rights Reserved.