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 actualRrdNioBackend
objects.
-
-
Constructor Summary
Constructors Constructor Description RrdNioByteBufferBackendFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFactoryName()
Returns the name of this factory.protected RrdBackend
open(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:
open
in 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:
getFactoryName
in classRrdFileBackendFactory
- Returns:
- Factory name (equals to string "NIOBB")
-
-