public class NetworkInterfaceManager extends Object implements ResourceServer
There is only one instance of the network interface manager in a receiver and this can be retrieved using the getInstance method.
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceStatusEventListener(ResourceStatusListener listener)
Registers a resource status listener to receive resource status events
|
static NetworkInterfaceManager |
getInstance()
Returns the instance of the NetworkInterfaceManager
|
NetworkInterface |
getNetworkInterface(TransportStream ts)
Returns the NetworkInterface with which the specified
TransportStream object is associated.
|
NetworkInterface[] |
getNetworkInterfaces()
Returns all network interfaces.
|
void |
removeResourceStatusEventListener(ResourceStatusListener listener)
Removes the registration of a registered listener so that
it will not receive resource status events any more
|
public static NetworkInterfaceManager getInstance()
public NetworkInterface[] getNetworkInterfaces()
If there are no network interfaces, returns an array with the length of zero.
public NetworkInterface getNetworkInterface(TransportStream ts)
ts - Transport stream objectpublic void addResourceStatusEventListener(ResourceStatusListener listener)
addResourceStatusEventListener in interface ResourceServerlistener - listener to be registeredpublic void removeResourceStatusEventListener(ResourceStatusListener listener)
removeResourceStatusEventListener in interface ResourceServerlistener - listener whose registration is to be removedCopyright © 2012 code4tv.com. All Rights Reserved.