Class SourceControlManager
Object
com.wowza.wms.sourcecontrol.SourceControlLogging
com.wowza.wms.sourcecontrol.manager.SourceControlManager
public class SourceControlManager
extends com.wowza.wms.sourcecontrol.SourceControlLogging
Class for the management and construction of Source Control devices
-
Method Summary
Modifier and TypeMethodDescriptioncreateSourceControlSession
(String streamName, IApplicationInstance appInstance) Creates a SourceControlSession for the indicated stream and application instance.Get a list of the Source Control Driversstatic SourceControlManager
Static method to reference a single instance of the Source Control Manager.getSourceControlInstance
(com.wowza.wms.sourcecontrol.drivers.SourceControlContext context) Gets the ISourceControl implemenation for the provided SourceControlContextstatic String
For testing purposes onlyboolean
Returns true if the list of Source Control Drivers was successfully loaded.com.wowza.wms.sourcecontrol.drivers.SourceControlContext
loadContext
(com.wowza.util.JSON jsonData) Get a SourceControlContext for the source control device described by the provided JSON datastatic void
reset()
Static method to clear the Source Control Manager, you will need to get a new reference via the getInstance() method.Methods inherited from class com.wowza.wms.sourcecontrol.SourceControlLogging
enableDebug, logDebug, logError, logError, logInfo, logWarn
-
Method Details
-
getInstance
Static method to reference a single instance of the Source Control Manager.- Returns:
- a reference to the single instance of the source control manager
-
reset
public static void reset()Static method to clear the Source Control Manager, you will need to get a new reference via the getInstance() method. -
getXMLConfigPath
For testing purposes only -
isDriverListLoaded
public boolean isDriverListLoaded()Returns true if the list of Source Control Drivers was successfully loaded.- Returns:
- true if the list of Source Control Drivers was successfully loaded
-
getDriverList
Get a list of the Source Control Drivers- Returns:
- a list of the Source Control Drivers
-
loadContext
public com.wowza.wms.sourcecontrol.drivers.SourceControlContext loadContext(com.wowza.util.JSON jsonData) Get a SourceControlContext for the source control device described by the provided JSON data- Parameters:
jsonData
- JSON class that contains the key value pairs that describe a source control device- Returns:
- SourceControlContext for the device if the JSON data describes one, otherwise returns NULL
-
getSourceControlInstance
public ISourceControl getSourceControlInstance(com.wowza.wms.sourcecontrol.drivers.SourceControlContext context) Gets the ISourceControl implemenation for the provided SourceControlContext- Parameters:
context
- that contains the information to instantiate an ISourceControl device- Returns:
- ISourceContorl if the context properly describes a source Control Device, otherwise NULL
-
createSourceControlSession
public ISourceControlSession createSourceControlSession(String streamName, IApplicationInstance appInstance) Creates a SourceControlSession for the indicated stream and application instance. This will create the session, underlying ISourceControl instance as well and associate them in the returned ISourceControlSession.- Parameters:
streamName
- the stream name to associate it withappInstance
- the application instance to associate it with- Returns:
- ISourceControlSession
-