com.bigdata.service.proxy
Class RemoteBufferImpl<E>

java.lang.Object
  extended by com.bigdata.service.proxy.RemoteBufferImpl<E>
All Implemented Interfaces:
RemoteBuffer<E>, Remote
Direct Known Subclasses:
RemoteRunnableBufferImpl

public class RemoteBufferImpl<E>
extends Object
implements RemoteBuffer<E>

A helper object that provides the API of IBuffer but whose methods throw IOException and are therefore compatible with Remote and Exporter.

Version:
$Id: RemoteBufferImpl.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
RemoteBufferImpl(IBuffer<E> buffer)
           
 
Method Summary
 void add(E e)
           
 long flush()
           
 boolean isEmpty()
           
 void reset()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteBufferImpl

public RemoteBufferImpl(IBuffer<E> buffer)
Method Detail

add

public void add(E e)
         throws IOException
Specified by:
add in interface RemoteBuffer<E>
Throws:
IOException

flush

public long flush()
           throws IOException
Specified by:
flush in interface RemoteBuffer<E>
Throws:
IOException

isEmpty

public boolean isEmpty()
                throws IOException
Specified by:
isEmpty in interface RemoteBuffer<E>
Throws:
IOException

reset

public void reset()
           throws IOException
Specified by:
reset in interface RemoteBuffer<E>
Throws:
IOException

size

public int size()
         throws IOException
Specified by:
size in interface RemoteBuffer<E>
Throws:
IOException


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.