Class AbstractObjectInputStreamFactory
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.fs.s3a.impl.streams.AbstractObjectInputStreamFactory
- All Implemented Interfaces:
Closeable,AutoCloseable,ObjectInputStreamFactory,org.apache.hadoop.fs.StreamCapabilities,org.apache.hadoop.service.Service
- Direct Known Subclasses:
AnalyticsStreamFactory,ClassicObjectInputStreamFactory,PrefetchingInputStreamFactory
public abstract class AbstractObjectInputStreamFactory
extends org.apache.hadoop.service.AbstractService
implements ObjectInputStreamFactory
Base implementation of
ObjectInputStreamFactory.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.fs.s3a.impl.streams.ObjectInputStreamFactory
ObjectInputStreamFactory.StreamFactoryCallbacksNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATENested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilities
org.apache.hadoop.fs.StreamCapabilities.StreamCapability -
Field Summary
Fields inherited from interface org.apache.hadoop.fs.StreamCapabilities
ABORTABLE_STREAM, DROPBEHIND, HFLUSH, HSYNC, IOSTATISTICS, IOSTATISTICS_CONTEXT, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER, VECTOREDIO, VECTOREDIO_BUFFERS_SLICED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(FactoryBindingParameters factoryBindingParameters) Bind to the callbacks.Get the factory callbacks.booleanhasCapability(String capability) Return base capabilities of all stream factories, defining what the base ObjectInputStream class does.Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.fs.s3a.impl.streams.ObjectInputStreamFactory
factoryRequirements, readObject, streamTypeMethods inherited from interface org.apache.hadoop.service.Service
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
AbstractObjectInputStreamFactory
Constructor.- Parameters:
name- service name.
-
-
Method Details
-
bind
Bind to the callbacks.The base class checks service state then stores the callback interface.
- Specified by:
bindin interfaceObjectInputStreamFactory- Parameters:
factoryBindingParameters- parameters for the factory binding- Throws:
IOException- if IO problems.
-
hasCapability
Return base capabilities of all stream factories, defining what the base ObjectInputStream class does. This also includes the probe for stream type capability.- Specified by:
hasCapabilityin interfaceorg.apache.hadoop.fs.StreamCapabilities- Parameters:
capability- string to query the stream support for.- Returns:
- true if implemented
-
callbacks
Get the factory callbacks.- Returns:
- callbacks.
-