org.neo4j.kernel.impl.transaction.xaframework
Class NullLogBuffer

java.lang.Object
  extended by org.neo4j.kernel.impl.transaction.xaframework.NullLogBuffer
All Implemented Interfaces:
LogBuffer

public class NullLogBuffer
extends Object
implements LogBuffer


Field Summary
static LogBuffer INSTANCE
           
 
Method Summary
 void force()
          Makes sure the data added to this buffer is written out to the underlying file and forced.
 FileChannel getFileChannel()
           
 long getFileChannelPosition()
           
 LogBuffer put(byte b)
           
 LogBuffer put(byte[] bytes)
           
 LogBuffer put(char[] chars)
           
 LogBuffer putDouble(double d)
           
 LogBuffer putFloat(float f)
           
 LogBuffer putInt(int i)
           
 LogBuffer putLong(long l)
           
 LogBuffer putShort(short b)
           
 void writeOut()
          Makes sure the data added to this buffer is written out to the underlying file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final LogBuffer INSTANCE
Method Detail

put

public LogBuffer put(byte b)
              throws IOException
Specified by:
put in interface LogBuffer
Throws:
IOException

putShort

public LogBuffer putShort(short b)
                   throws IOException
Specified by:
putShort in interface LogBuffer
Throws:
IOException

putInt

public LogBuffer putInt(int i)
                 throws IOException
Specified by:
putInt in interface LogBuffer
Throws:
IOException

putLong

public LogBuffer putLong(long l)
                  throws IOException
Specified by:
putLong in interface LogBuffer
Throws:
IOException

putFloat

public LogBuffer putFloat(float f)
                   throws IOException
Specified by:
putFloat in interface LogBuffer
Throws:
IOException

putDouble

public LogBuffer putDouble(double d)
                    throws IOException
Specified by:
putDouble in interface LogBuffer
Throws:
IOException

put

public LogBuffer put(byte[] bytes)
              throws IOException
Specified by:
put in interface LogBuffer
Throws:
IOException

put

public LogBuffer put(char[] chars)
              throws IOException
Specified by:
put in interface LogBuffer
Throws:
IOException

writeOut

public void writeOut()
              throws IOException
Description copied from interface: LogBuffer
Makes sure the data added to this buffer is written out to the underlying file.

Specified by:
writeOut in interface LogBuffer
Throws:
IOException - if the data couldn't be written.

force

public void force()
           throws IOException
Description copied from interface: LogBuffer
Makes sure the data added to this buffer is written out to the underlying file and forced.

Specified by:
force in interface LogBuffer
Throws:
IOException - if the data couldn't be written.

getFileChannelPosition

public long getFileChannelPosition()
                            throws IOException
Specified by:
getFileChannelPosition in interface LogBuffer
Throws:
IOException

getFileChannel

public FileChannel getFileChannel()
Specified by:
getFileChannel in interface LogBuffer


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.