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.StreamFactoryCallbacks

    Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service

    org.apache.hadoop.service.Service.STATE

    Nested 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bind(FactoryBindingParameters factoryBindingParameters)
    Bind to the callbacks.
    Get the factory callbacks.
    boolean
    hasCapability(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, waitForServiceToStop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.fs.s3a.impl.streams.ObjectInputStreamFactory

    factoryRequirements, readObject, streamType

    Methods 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

      protected AbstractObjectInputStreamFactory(String name)
      Constructor.
      Parameters:
      name - service name.
  • Method Details

    • bind

      public void bind(FactoryBindingParameters factoryBindingParameters) throws IOException
      Bind to the callbacks.

      The base class checks service state then stores the callback interface.

      Specified by:
      bind in interface ObjectInputStreamFactory
      Parameters:
      factoryBindingParameters - parameters for the factory binding
      Throws:
      IOException - if IO problems.
    • hasCapability

      public boolean hasCapability(String capability)
      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:
      hasCapability in interface org.apache.hadoop.fs.StreamCapabilities
      Parameters:
      capability - string to query the stream support for.
      Returns:
      true if implemented
    • callbacks

      Get the factory callbacks.
      Returns:
      callbacks.