|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectseda.sandStorm.core.SimpleSink
seda.sandStorm.lib.aDisk.AFileImpl
abstract class AFileImpl
Package-access only abstract class representing an implementation of the AFile interface. By creating a subclass of AFileImpl and tying it into the implementation-selection code in AFile, you can introduce new implementations of AFile behind this interface.
AFile| Constructor Summary | |
|---|---|
AFileImpl()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Close the file after all enqueued requests have completed. |
abstract boolean |
enqueue_lossy(QueueElementIF req)
Enqueues the given request (which must be an AFileRequest) to the file. |
abstract void |
enqueue_many(QueueElementIF[] elements)
Enqueues the given requests (which must be AFileRequests) to the file. |
abstract void |
enqueue(QueueElementIF req)
Enqueues the given request (which must be an AFileRequest) to the file. |
abstract void |
flush()
Causes a SinkFlushedEvent to be posted on the file's completion queue when all pending requests have completed. |
(package private) abstract AFileStat |
stat()
Return information on the properties of the file. |
| Methods inherited from class seda.sandStorm.core.SimpleSink |
|---|
enqueue_abort, enqueue_commit, enqueue_prepare, getEnqueuePredicate, profileSize, setEnqueuePredicate, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
AFileImpl()
| Method Detail |
|---|
public abstract void enqueue(QueueElementIF req)
throws SinkException
enqueue in interface SinkIFenqueue in class SimpleSinkreq - The QueueElementIF to enqueue
SinkFullException - Indicates that the sink is temporarily full.
SinkClosedException - Indicates that the sink is
no longer being serviced.
SinkExceptionpublic abstract boolean enqueue_lossy(QueueElementIF req)
enqueue_lossy in interface SinkIFenqueue_lossy in class SimpleSinkreq - The QueueElementIF to enqueue
public abstract void enqueue_many(QueueElementIF[] elements)
throws SinkException
enqueue_many in interface SinkIFenqueue_many in class SimpleSinkelements - The element array to enqueue
SinkFullException - Indicates that the sink is temporarily full.
SinkClosedException - Indicates that the sink is
no longer being serviced.
SinkExceptionabstract AFileStat stat()
public abstract void close()
public abstract void flush()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||