Class StreamMonitorHelper
java.lang.Object
org.codice.alliance.video.ui.service.StreamMonitorHelper
- All Implemented Interfaces:
StreamMonitorHelperMBean
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallStartMonitoringStreamByServicePid(String servicePid) CallsStreamMonitor#startMonitoring()on the monitor with the given servicePidvoidcallStopMonitoringStreamByServicePid(String servicePid) CallsStreamMonitor#stopMonitoring()on the monitor with the given servicePidvoiddestroy()org.osgi.framework.BundleContextprotected Enumeration<NetworkInterface>This method exists so unit tests can mock the network interfaces.voidinit()Get the existing network interfaces.voidsetContext(org.osgi.framework.BundleContext context) Gets all the existingUdpStreamMonitors and their properties
-
Field Details
-
SERVICE_PID
- See Also:
-
-
Constructor Details
-
StreamMonitorHelper
public StreamMonitorHelper()
-
-
Method Details
-
callStartMonitoringStreamByServicePid
Description copied from interface:StreamMonitorHelperMBeanCallsStreamMonitor#startMonitoring()on the monitor with the given servicePid- Specified by:
callStartMonitoringStreamByServicePidin interfaceStreamMonitorHelperMBean- Parameters:
servicePid- the servicePid of the monitor
-
callStopMonitoringStreamByServicePid
Description copied from interface:StreamMonitorHelperMBeanCallsStreamMonitor#stopMonitoring()on the monitor with the given servicePid- Specified by:
callStopMonitoringStreamByServicePidin interfaceStreamMonitorHelperMBean- Parameters:
servicePid- the servicePid of the monitor
-
udpStreamMonitors
Description copied from interface:StreamMonitorHelperMBeanGets all the existingUdpStreamMonitors and their properties- Specified by:
udpStreamMonitorsin interfaceStreamMonitorHelperMBean- Returns:
- a list of
UdpStreamMonitors
-
networkInterfaces
Description copied from interface:StreamMonitorHelperMBeanGet the existing network interfaces. The map key is the interface name (eg. eth0) and the map value is the interface display name (eg. Network 2) and IP address.- Specified by:
networkInterfacesin interfaceStreamMonitorHelperMBean- Returns:
- map of interface names to interface display name and IP address.
-
getNetworkInterfaces
This method exists so unit tests can mock the network interfaces.- Throws:
SocketException
-
init
public void init() -
getContext
public org.osgi.framework.BundleContext getContext() -
setContext
public void setContext(org.osgi.framework.BundleContext context) -
destroy
public void destroy()
-