public abstract class NetManager extends Object
The NetManager may be used to retrieve list of NetModule and
Device in the network. The application can filter the list by specifying
a name or by applying filtering rules. For example,
"modelNumber = h6315, location = LivingRoom". Application can monitor
availability of NetModules by registering as a listener to NetManager
instance.
| Constructor and Description |
|---|
NetManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addDeviceEventListener(DeviceEventListener listener)
Adds a Device event listener to NetManager.
|
abstract void |
addNetModuleEventListener(NetModuleEventListener listener)
Adds a NetModule event listener to NetManager.
|
abstract Device |
getDevice(String name)
Returns device by name, for example, "BallRoom:DVD_PLAYER1".
|
abstract NetList |
getDeviceList(PropertyFilter filter)
Returns devices that match all properties set by a given filter.
|
abstract NetList |
getDeviceList(String name)
Returns all devices that match the specified device name.
|
static NetManager |
getInstance()
Returns the singleton NetManager.
|
abstract NetModule |
getNetModule(String deviceName,
String moduleID)
Returns NetModule by device and module ID.
|
abstract NetList |
getNetModuleList(PropertyFilter filter)
Returns NetModules that match all properties set by a given filter.
|
abstract NetList |
getNetModuleList(String deviceName,
String moduleID)
Returns all NetModules that match the specified device name and module identifier.
|
abstract void |
removeDeviceEventListener(DeviceEventListener listener)
Removes a Device event listener from NetManager.
|
abstract void |
removeNetModuleEventListener(NetModuleEventListener listener)
Removes a NetModule event listener from NetManager.
|
abstract void |
updateDeviceList()
Requests that the NetManager proactively refresh its local database of
connected devices.
|
public static NetManager getInstance()
public abstract NetList getNetModuleList(PropertyFilter filter)
filter - Filter to select out NetModules from all
available NetModulespublic abstract NetList getNetModuleList(String deviceName, String moduleID)
NetList
containing all NetModules whose module ids match the non-null module identifier.
Passing a null or empty module identifier with a non-null device name will result in a NetList
containing all NetModules whose devices match the non-null device name.
Passing a null or empty module identifer and null or empty device name will return a
NetList containing all known NetModules.deviceName - name of the device hosting the module to retrievemoduleID - module identifierpublic abstract NetModule getNetModule(String deviceName, String moduleID)
deviceName - name of the device hosting the module to retrievemoduleID - module identifierpublic abstract NetList getDeviceList(PropertyFilter filter)
NetList with all
known devices and sub-devices.filter - Filter to select out devices from all
connected devicespublic abstract NetList getDeviceList(String name)
NetList.name - Device name.public abstract Device getDevice(String name)
name - Device namepublic abstract void addNetModuleEventListener(NetModuleEventListener listener)
listener - Listener which listens to NetModule change events on
home networkremoveNetModuleEventListener(org.ocap.hn.NetModuleEventListener)public abstract void removeNetModuleEventListener(NetModuleEventListener listener)
listener - Listener which listens to NetModule change events on
home networkaddNetModuleEventListener(org.ocap.hn.NetModuleEventListener)public abstract void addDeviceEventListener(DeviceEventListener listener)
listener - Listener which listens to Device change events on the
home networkremoveDeviceEventListener(org.ocap.hn.DeviceEventListener)public abstract void removeDeviceEventListener(DeviceEventListener listener)
listener - Listener which listens to Device change events on
home networkaddDeviceEventListener(org.ocap.hn.DeviceEventListener)public abstract void updateDeviceList()
Copyright © 2013 CableLabs. All rights reserved.