org.apache.hadoop.hbase.util
Class ChecksumFactory

java.lang.Object
  extended by org.apache.hadoop.hbase.util.ChecksumFactory

@InterfaceAudience.Private
public class ChecksumFactory
extends Object

Utility class that is used to generate a Checksum object. The Checksum implementation is pluggable and an application can specify their own class that implements their own Checksum algorithm.


Constructor Summary
ChecksumFactory()
           
 
Method Summary
static Constructor<?> newConstructor(String className)
          Returns a Constructor that can be used to create a Checksum object.
static Checksum newInstance(String className)
          Create a new instance of a Checksum object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChecksumFactory

public ChecksumFactory()
Method Detail

newInstance

public static Checksum newInstance(String className)
                            throws IOException
Create a new instance of a Checksum object.

Returns:
The newly created Checksum object
Throws:
IOException

newConstructor

public static Constructor<?> newConstructor(String className)
                                     throws IOException
Returns a Constructor that can be used to create a Checksum object.

Parameters:
className - classname for which an constructor is created
Returns:
a new Constructor object
Throws:
IOException


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.