All Classes Functions Pages
Static Public Member Functions
libHamCast.HamcastUtility Class Reference

List of all members.

Static Public Member Functions

static Runnable getExceptionHandler ()
static void setExceptionHandler (Runnable eh)
static List< URI > parentSet (NetworkMInterface nmi, String uri) throws IOException, URISyntaxException
static List< URI > parentSet (NetworkMInterface nmi, URI uri) throws IOException
static List< URI > childrenSet (NetworkMInterface nmi, String uri) throws IOException, URISyntaxException
static List< URI > childrenSet (NetworkMInterface nmi, URI uri) throws IOException
static List< URI > neighborSet (NetworkMInterface nmi) throws IOException
static List< GroupSetgroupSet (NetworkMInterface nmi) throws IOException
static List< NetworkMInterfacegetAllInterfaces () throws IOException
static boolean designatedHost (NetworkMInterface nmi, String uri) throws IOException, URISyntaxException
static boolean designatedHost (NetworkMInterface nmi, URI uri) throws IOException

Detailed Description

This class provides some tools for getting general information from the middleware, when no socket object is needed.


Member Function Documentation

static List<URI> libHamCast.HamcastUtility.childrenSet ( NetworkMInterface  nmi,
String  uri 
) throws IOException, URISyntaxException
static
Parameters:
nmi
uri
Returns:
the set of child nodes that receive multicast Data from a specific interface (nmi) for a given group(uri)
Exceptions:
IOException
URISyntaxException
static List<URI> libHamCast.HamcastUtility.childrenSet ( NetworkMInterface  nmi,
URI  uri 
) throws IOException
static
Parameters:
nmi
uri
Returns:
List all group Members who joined nmi
Exceptions:
IOException
See also:
MulticastSocket#childrenSet(NetworkMInterface, String)
static boolean libHamCast.HamcastUtility.designatedHost ( NetworkMInterface  nmi,
String  uri 
) throws IOException, URISyntaxException
static
Parameters:
nmi
uri
Returns:
true, if this host is an forwarder or querier
Exceptions:
IOException
URISyntaxException
static boolean libHamCast.HamcastUtility.designatedHost ( NetworkMInterface  nmi,
URI  uri 
) throws IOException
static
Parameters:
nmi
uri
Returns:
true, if nmi is a forwarder resp. querier
Exceptions:
IOException
See also:
MulticastSocket#designatedHost(NetworkMInterface, String)
static List<NetworkMInterface> libHamCast.HamcastUtility.getAllInterfaces ( ) throws IOException
static
Returns:
List over all Interfaces which are available and active
Exceptions:
IOException
static Runnable libHamCast.HamcastUtility.getExceptionHandler ( )
static

This Runnable will be invoked if an unexpected Exception occurs in the thread which receives data. For example, this will be invoked if the connection to the HAMcast middleware is closed. Default is DefaultExceptionHandling. The thread will write this runnable to the event queue to invoke later.

Returns:
the current exceptionHandler
static List<GroupSet> libHamCast.HamcastUtility.groupSet ( NetworkMInterface  nmi) throws IOException
static
Parameters:
nmi
Returns:
List over all active, registered multicast adresses
Exceptions:
IOException
static List<URI> libHamCast.HamcastUtility.neighborSet ( NetworkMInterface  nmi) throws IOException
static
Parameters:
nmi
Returns:
List<URI> over all known neighbors
Exceptions:
IOException
static List<URI> libHamCast.HamcastUtility.parentSet ( NetworkMInterface  nmi,
String  uri 
) throws IOException, URISyntaxException
static
Parameters:
nmi
uri
Returns:
List over all neighbors from which multicast data at a given interface (nmi) for the specified group (uri) are received.
Exceptions:
IOException
URISyntaxException
static List<URI> libHamCast.HamcastUtility.parentSet ( NetworkMInterface  nmi,
URI  uri 
) throws IOException
static
Parameters:
nmi
uri
Returns:
Exceptions:
IOException
static void libHamCast.HamcastUtility.setExceptionHandler ( Runnable  eh)
static

setting your own exceptionHandler for the receiving thread.

See also:
getExceptionHandler
Parameters:
eh

The documentation for this class was generated from the following file: