Package org.jrobin.core
Class RrdNioByteBufferBackendFactory
- java.lang.Object
-
- org.jrobin.core.RrdBackendFactory
-
- org.jrobin.core.RrdFileBackendFactory
-
- org.jrobin.core.RrdNioByteBufferBackendFactory
-
public class RrdNioByteBufferBackendFactory extends RrdFileBackendFactory
Factory class which creates actualRrdNioBackendobjects.
-
-
Constructor Summary
Constructors Constructor Description RrdNioByteBufferBackendFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFactoryName()Returns the name of this factory.protected RrdBackendopen(String path, boolean readOnly)Creates RrdNioByteBufferBackend object for the given file path.-
Methods inherited from class org.jrobin.core.RrdFileBackendFactory
exists
-
Methods inherited from class org.jrobin.core.RrdBackendFactory
getDefaultFactory, getFactory, isInstanceCreated, registerAndSetAsDefaultFactory, registerFactory, setDefaultFactory, toString
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
open
protected RrdBackend open(String path, boolean readOnly) throws IOException
Creates RrdNioByteBufferBackend object for the given file path.- Overrides:
openin classRrdFileBackendFactory- Parameters:
path- File pathreadOnly- True, if the file should be accessed in read/only mode. False otherwise.- Returns:
- RrdNioBackend object which handles all I/O operations for the given file path
- Throws:
IOException- Thrown in case of I/O error.
-
getFactoryName
public String getFactoryName()
Returns the name of this factory.- Overrides:
getFactoryNamein classRrdFileBackendFactory- Returns:
- Factory name (equals to string "NIOBB")
-
-