Class SourceControlManager
- Object
- 
- com.wowza.wms.sourcecontrol.SourceControlLogging
- 
- com.wowza.wms.sourcecontrol.manager.SourceControlManager
 
 
- 
 public class SourceControlManager extends com.wowza.wms.sourcecontrol.SourceControlLoggingClass for the management and construction of Source Control devices
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ISourceControlSessioncreateSourceControlSession(String streamName, IApplicationInstance appInstance)Creates a SourceControlSession for the indicated stream and application instance.java.util.List<String>getDriverList()Get a list of the Source Control Driversstatic SourceControlManagergetInstance()Static method to reference a single instance of the Source Control Manager.ISourceControlgetSourceControlInstance(com.wowza.wms.sourcecontrol.drivers.SourceControlContext context)Gets the ISourceControl implemenation for the provided SourceControlContextstatic StringgetXMLConfigPath()For testing purposes onlybooleanisDriverListLoaded()Returns true if the list of Source Control Drivers was successfully loaded.com.wowza.wms.sourcecontrol.drivers.SourceControlContextloadContext(com.wowza.util.JSON jsonData)Get a SourceControlContext for the source control device described by the provided JSON datastatic voidreset()Static method to clear the Source Control Manager, you will need to get a new reference via the getInstance() method.
 
- 
- 
- 
Method Detail- 
getInstancepublic static SourceControlManager 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
 
 - 
resetpublic static void reset() Static method to clear the Source Control Manager, you will need to get a new reference via the getInstance() method.
 - 
getXMLConfigPathpublic static String getXMLConfigPath() For testing purposes only
 - 
isDriverListLoadedpublic 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
 
 - 
getDriverListpublic java.util.List<String> getDriverList() Get a list of the Source Control Drivers- Returns:
- a list of the Source Control Drivers
 
 - 
loadContextpublic 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
 
 - 
getSourceControlInstancepublic 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
 
 - 
createSourceControlSessionpublic 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 with
- appInstance- the application instance to associate it with
- Returns:
- ISourceControlSession
 
 
- 
 
-