public class AnalyticsStreamFactory extends AbstractObjectInputStreamFactory
AnalyticsStream. This class is instantiated during initialization of
S3AStore, if fs.s3a.input.stream.type is set to Analytics.ObjectInputStreamFactory.StreamFactoryCallbacks| Constructor and Description |
|---|
AnalyticsStreamFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(FactoryBindingParameters factoryBindingParameters)
Bind to the callbacks.
|
StreamFactoryRequirements |
factoryRequirements()
Calculate Return StreamFactoryRequirements.
|
ObjectInputStream |
readObject(ObjectReadParameters parameters)
Create a new input stream.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStop() |
InputStreamType |
streamType()
Get the input stream type.
|
callbacks, hasCapabilityclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionpublic void bind(FactoryBindingParameters factoryBindingParameters) throws IOException
AbstractObjectInputStreamFactoryThe base class checks service state then stores the callback interface.
bind in interface ObjectInputStreamFactorybind in class AbstractObjectInputStreamFactoryfactoryBindingParameters - parameters for the factory bindingIOException - if IO problems.public ObjectInputStream readObject(ObjectReadParameters parameters) throws IOException
ObjectInputStreamFactoryparameters - parameters.IOException - problem creating the stream.public InputStreamType streamType()
ObjectInputStreamFactorypublic StreamFactoryRequirements factoryRequirements()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.