Class UdpStreamProcessor
java.lang.Object
org.codice.alliance.video.stream.mpegts.netty.UdpStreamProcessor
- All Implemented Interfaces:
StreamProcessor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUdpStreamProcessor(StreamMonitor streamMonitor, org.osgi.framework.BundleContext bundleContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidio.netty.channel.ChannelHandler[]Returns an array of ChannelHandler objects used by Netty as the pipeline.voiddoRollover(File tempFile) ddf.catalog.CatalogFrameworkList<ddf.catalog.data.MetacardType>longNumber of seconds to delay updates to metacards.ddf.security.audit.SecurityLoggerddf.security.SubjectgetSecuritySubject(String ipAddress) Get the string that uniquely identifies this stream.Get the URI of the stream associated with this stream processor.ddf.security.Subjectddf.security.SubjectOperationsgetTimer()getTitle()Get the title string to be used for the parent metacard.org.codice.ddf.platform.util.uuidgenerator.UuidGeneratorvoidinit()Initializes the processor.booleanisReady()Returntrueif the processor is ready to run.voidsetAdditionalProperties(Map<String, String> additionalProperties) voidsetCatalogFramework(ddf.catalog.CatalogFramework catalogFramework) voidsetDistanceTolerance(Double distanceTolerance) voidsetElapsedTimeRolloverCondition(Long milliseconds) voidsetFilenameGenerator(FilenameGenerator filenameGenerator) voidsetFilenameTemplate(String filenameTemplate) voidvoidsetMetacardTypeList(List<ddf.catalog.data.MetacardType> metacardTypeList) voidsetMetacardUpdateInitialDelay(Long metacardUpdateInitialDelay) voidsetParentMetacardUpdater(MetacardUpdater parentMetacardUpdater) voidsetRolloverAction(RolloverAction rolloverAction) voidsetRolloverCondition(RolloverCondition rolloverCondition) voidsetSecurityLogger(ddf.security.audit.SecurityLogger securityLogger) voidsetStreamCreationPlugin(StreamCreationPlugin streamCreationPlugin) voidsetStreamEndPlugin(StreamEndPlugin streamEndPlugin) voidsetStreamShutdownPlugin(StreamShutdownPlugin streamShutdownPlugin) voidsetSubject(ddf.security.Subject subject) voidsetSubjectOperations(ddf.security.SubjectOperations subjectOperations) voidvoidsetUuidGenerator(org.codice.ddf.platform.util.uuidgenerator.UuidGenerator uuidGenerator) voidshutdown()Shutdown the stream processor.toString()
-
Field Details
-
MAX_METACARD_UPDATE_INITIAL_DELAY
public static final long MAX_METACARD_UPDATE_INITIAL_DELAY
-
-
Constructor Details
-
UdpStreamProcessor
public UdpStreamProcessor(StreamMonitor streamMonitor, org.osgi.framework.BundleContext bundleContext)
-
-
Method Details
-
getAdditionalProperties
-
setAdditionalProperties
-
getSubject
public ddf.security.Subject getSubject() -
setSubject
public void setSubject(ddf.security.Subject subject) -
getSecuritySubject
public ddf.security.Subject getSecuritySubject(String ipAddress) throws ddf.security.service.SecurityServiceException - Throws:
ddf.security.service.SecurityServiceException
-
setStreamCreationPlugin
- Parameters:
streamCreationPlugin- must be non-null
-
getDistanceTolerance
-
setDistanceTolerance
-
getMetacardUpdateInitialDelay
public long getMetacardUpdateInitialDelay()Description copied from interface:StreamProcessorNumber of seconds to delay updates to metacards.- Specified by:
getMetacardUpdateInitialDelayin interfaceStreamProcessor- Returns:
- seconds
-
setMetacardUpdateInitialDelay
- Parameters:
metacardUpdateInitialDelay- must be non-null and >=0 and <=MAX_METACARD_UPDATE_INITIAL_DELAY
-
getStreamId
Description copied from interface:StreamProcessorGet the string that uniquely identifies this stream.- Specified by:
getStreamIdin interfaceStreamProcessor- Returns:
- a unique identifier for this stream
-
getStreamUri
Description copied from interface:StreamProcessorGet the URI of the stream associated with this stream processor.- Specified by:
getStreamUriin interfaceStreamProcessor- Returns:
- optional uri of the stream
-
getTitle
Description copied from interface:StreamProcessorGet the title string to be used for the parent metacard.- Specified by:
getTitlein interfaceStreamProcessor- Returns:
- optional title of the stream
-
toString
-
setMegabyteCountRolloverCondition
- Parameters:
count- must be non-null and positive
-
setElapsedTimeRolloverCondition
- Parameters:
milliseconds- must be non-null and positive
-
getPacketBuffer
-
shutdown
public void shutdown()Shutdown the stream processor. Attempts to flush and ingest any partial stream data regardless of IDR boundaries. -
setStreamEndPlugin
-
checkForRollover
public void checkForRollover() -
doRollover
-
isReady
public boolean isReady()Returntrueif the processor is ready to run.- Returns:
- ready status
-
setRolloverAction
-
getCatalogFramework
public ddf.catalog.CatalogFramework getCatalogFramework() -
setCatalogFramework
public void setCatalogFramework(ddf.catalog.CatalogFramework catalogFramework) - Parameters:
catalogFramework- must be non-null
-
getFilenameGenerator
-
setFilenameGenerator
- Parameters:
filenameGenerator- must be non-null
-
getFilenameTemplate
-
setFilenameTemplate
- Parameters:
filenameTemplate- must be non-null
-
getMetacardTypeList
-
setMetacardTypeList
- Parameters:
metacardTypeList- must be non-null
-
getTimer
-
setTimer
-
init
public void init()Initializes the processor. Users should callisReady()first to make sure the processor is ready to run. -
setRolloverCondition
- Parameters:
rolloverCondition- must be non-null
-
createChannelHandlers
public io.netty.channel.ChannelHandler[] createChannelHandlers()Returns an array of ChannelHandler objects used by Netty as the pipeline.- Returns:
- non-null array of channel handlers
-
setStreamShutdownPlugin
- Parameters:
streamShutdownPlugin- must be non-null
-
getParentMetacardUpdater
-
setParentMetacardUpdater
-
getUuidGenerator
public org.codice.ddf.platform.util.uuidgenerator.UuidGenerator getUuidGenerator() -
setUuidGenerator
public void setUuidGenerator(org.codice.ddf.platform.util.uuidgenerator.UuidGenerator uuidGenerator) -
getSubjectOperations
public ddf.security.SubjectOperations getSubjectOperations() -
setSubjectOperations
public void setSubjectOperations(ddf.security.SubjectOperations subjectOperations) -
getSecurityLogger
public ddf.security.audit.SecurityLogger getSecurityLogger() -
setSecurityLogger
public void setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
-