Package com.wowza.wms.mediacache.impl
Interface IMediaCacheItemHTTPReaderFactory
- 
- All Superinterfaces:
- com.wowza.util.IGenericPoolFactory<IMediaCacheHTTPByteReader>
 - All Known Subinterfaces:
- IMediaCacheItemHTTPReaderFactory2
 
 public interface IMediaCacheItemHTTPReaderFactory extends com.wowza.util.IGenericPoolFactory<IMediaCacheHTTPByteReader> Interface for HTTP byte reader factory implementations You need to have a IMediaCacehHTTPByteReader implementation available to use with your factory implementation. In order to make implementation simpler and safer you should extend the factory base with MediaCacheItemHTTPCustomFactory extends MediaCacheItemHTTPReaderFactoryBase To use your own implementation you should add the following property to the HTTP media cache source entry <Property> <Name>httpReaderFactoryClass</Name> <Value>com.wowza.streamschool.mediacache.ExampleHTTPReaderFactory</Value> <Type>String</Type> </Property> The value points to the class name of your implementation. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProperties(WMSProperties properties)Add properties to this specific factory, these could be passed fromIMediaCacheHTTPByteReadercreateInstance()Create a HTTP byte reader suited to this factory.voiddestroyInstance(IMediaCacheHTTPByteReader instance)Destroy the HTTP Byte reader associated with this factory implementationintgetConnectionTimeout()Get the current connection timeout set.IMediaCacheItemgetMediaCacheItem()Get the Media Cache item associated with this instance.intgetPort()Get the port to be used for connecting to the remote source.intgetReadRetries()Get the retries set for this instanceintgetReadTimeout()Get the current read time out set.intgetReceiveBufferSize()Get the receive buffer size set.intgetSendBufferSize()Get the send buffer size set.voidinit()Initialize the HTTP Reader Factory.booleanisRequestFullURL()Set if the request should contain the full URL.voidsetConnectionTimeout(int connectionTimeout)Set the connection timeout, milliseconds.voidsetDestinationAddress(String host, int port)Set the destination host and port where to retrieve data.voidsetMediaCacheItem(IMediaCacheItem mediaCacheItem)Set the Media Cache item associated to this instance.voidsetPort(int port)Set the port to be used for connecting to the remote source.voidsetProxyAddress(String host, int port)Set the proxy host and port.voidsetReadRetries(int readRetries)Set the maximum number retries.voidsetReadTimeout(int readTimeout)Set the read timeout for data, milliseconds.voidsetReceiveBufferSize(int receiveBufferSize)Set the receive buffer size, byte size.voidsetRequestFullURL(boolean requestFullURL)Flag to set if a full URL is required as part of the head/read request.voidsetSendBufferSize(int sendBufferSize)Set the send buffer size, byte size.
 
- 
- 
- 
Method Detail- 
initvoid init() Initialize the HTTP Reader Factory.
 - 
addPropertiesvoid addProperties(WMSProperties properties) Add properties to this specific factory, these could be passed from- Parameters:
- WMSProperties- properties
 
 - 
createInstanceIMediaCacheHTTPByteReader createInstance() Create a HTTP byte reader suited to this factory.- Specified by:
- createInstancein interface- com.wowza.util.IGenericPoolFactory<IMediaCacheHTTPByteReader>
- Returns:
- IMediaCacheHTTPByteReader
 
 - 
destroyInstancevoid destroyInstance(IMediaCacheHTTPByteReader instance) Destroy the HTTP Byte reader associated with this factory implementation- Specified by:
- destroyInstancein interface- com.wowza.util.IGenericPoolFactory<IMediaCacheHTTPByteReader>
- Parameters:
- IMediaCacheHTTPByteReader- instance
 
 - 
setMediaCacheItemvoid setMediaCacheItem(IMediaCacheItem mediaCacheItem) Set the Media Cache item associated to this instance.- Parameters:
- IMediaCacheItem- mediaCacheItem
 
 - 
getMediaCacheItemIMediaCacheItem getMediaCacheItem() Get the Media Cache item associated with this instance.- Returns:
- IMediaCacheItem
 
 - 
setDestinationAddressvoid setDestinationAddress(String host, int port)Set the destination host and port where to retrieve data. It is up to the specific implementation to use these or not.- Parameters:
- String- host
- int- port
 
 - 
setProxyAddressvoid setProxyAddress(String host, int port)Set the proxy host and port. It is up to the specific byte reader implementation to implement support for proxy connections.- Parameters:
- String- host
- int- port
 
 - 
isRequestFullURLboolean isRequestFullURL() Set if the request should contain the full URL. It is up to the specific implementation to use this.- Returns:
- boolean
 
 - 
setRequestFullURLvoid setRequestFullURL(boolean requestFullURL) Flag to set if a full URL is required as part of the head/read request.- Parameters:
- boolean- requestFullURL
 
 - 
getReadTimeoutint getReadTimeout() Get the current read time out set.- Returns:
- int
 
 - 
setReadTimeoutvoid setReadTimeout(int readTimeout) Set the read timeout for data, milliseconds. It is up to the specific byte reader implementation to use this setting.- Parameters:
- int- readTimeout
 
 - 
getConnectionTimeoutint getConnectionTimeout() Get the current connection timeout set.- Returns:
- int
 
 - 
setConnectionTimeoutvoid setConnectionTimeout(int connectionTimeout) Set the connection timeout, milliseconds. It is up to the specific byte reader implementation to use this setting.- Parameters:
- int- connectionTimeout
 
 - 
getPortint getPort() Get the port to be used for connecting to the remote source.- Returns:
- int
 
 - 
setPortvoid setPort(int port) Set the port to be used for connecting to the remote source. It is up to the specific byte reader implementation to use this setting.- Parameters:
- int- port
 
 - 
getReadRetriesint getReadRetries() Get the retries set for this instance- Returns:
- int
 
 - 
setReadRetriesvoid setReadRetries(int readRetries) Set the maximum number retries. It is up to the specific byte reader implementation to use this setting.- Parameters:
- int- maxRetries
 
 - 
getSendBufferSizeint getSendBufferSize() Get the send buffer size set.- Returns:
- int
 
 - 
setSendBufferSizevoid setSendBufferSize(int sendBufferSize) Set the send buffer size, byte size. It is up to the specific byte reader implementation to use this setting.- Parameters:
- sendBufferSize-
 
 - 
getReceiveBufferSizeint getReceiveBufferSize() Get the receive buffer size set.- Returns:
- int
 
 - 
setReceiveBufferSizevoid setReceiveBufferSize(int receiveBufferSize) Set the receive buffer size, byte size. It is up to the specific byte reader implementation to use this setting.- Parameters:
- receiveBufferSize-
 
 
- 
 
-