org.apache.flume.tools
Class DirectMemoryUtils

java.lang.Object
  extended by org.apache.flume.tools.DirectMemoryUtils

public class DirectMemoryUtils
extends Object


Constructor Summary
DirectMemoryUtils()
           
 
Method Summary
static ByteBuffer allocate(int size)
           
static void clean(ByteBuffer buffer)
           
static long getDirectMemorySize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectMemoryUtils

public DirectMemoryUtils()
Method Detail

allocate

public static ByteBuffer allocate(int size)

clean

public static void clean(ByteBuffer buffer)
                  throws Exception
Throws:
Exception

getDirectMemorySize

public static long getDirectMemorySize()


Copyright © 2009-2013 Apache Software Foundation. All Rights Reserved.