|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.io.ParallelIO
Multi-threaded implementation of InputStream
and OutputStream
Nested Class Summary | |
static class |
ParallelIO.Exception
Exception thrown in case of errors in ParallelIO |
class |
ParallelIO.GatherInputStream
Class for gathring buffered writes from multiple threads. |
class |
ParallelIO.GatherOutputStream
Class for gathring buffered writes from multiple threads. |
protected class |
ParallelIO.IOProcessor
Abstraction for processors which actually do the job |
class |
ParallelIO.ScatterInputStream
Class for scattering buffered reads accross multiple threads. |
class |
ParallelIO.ScatterOutputStream
Class for scattering buffered writes accross multiple threads. |
Constructor Summary | |
ParallelIO()
|
Method Summary | |
static ParallelIO.IOProcessor |
getCurrentProcessor()
Gets the current IOProcessor |
protected void |
grantToken(long token)
|
static void |
main(java.lang.String[] args)
|
static void |
register(ParallelIO.IOProcessor ioprocessor)
Registers specified IOProcessor as the current one |
protected void |
requestToken(long token)
Waits for specified token be ready to be processed |
static int |
split(int n,
int p)
Splits n bytes into p parts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParallelIO()
Method Detail |
public static void register(ParallelIO.IOProcessor ioprocessor) throws ParallelIO.Exception
IOProcessor
as the current one
ParallelIO.Exception
public static ParallelIO.IOProcessor getCurrentProcessor() throws ParallelIO.Exception
IOProcessor
ParallelIO.Exception
protected void requestToken(long token) throws ParallelIO.Exception
ParallelIO.Exception
protected void grantToken(long token) throws ParallelIO.Exception
ParallelIO.Exception
public static int split(int n, int p) throws ParallelIO.Exception
n
bytes into p
parts
ParallelIO.Exception
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |