public interface StorageDriver<I extends Item,O extends IoTask<I>> extends Daemon, com.github.akurilov.commons.io.Input<O>, com.github.akurilov.commons.io.Output<O>, java.rmi.Remote
Daemon.State| Modifier and Type | Field and Description |
|---|---|
static int |
BUFF_SIZE_MAX |
static int |
BUFF_SIZE_MIN |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustIoBuffers(long avgTransferSize,
IoType ioType) |
void |
close() |
default int |
get(java.util.List<O> buff,
int limit) |
int |
getActiveTaskCount() |
long |
getCompletedTaskCount() |
int |
getConcurrencyLevel() |
long |
getScheduledTaskCount() |
boolean |
isIdle() |
java.util.List<I> |
list(ItemFactory<I> itemFactory,
java.lang.String path,
java.lang.String prefix,
int idRadix,
I lastPrevItem,
int count) |
default void |
reset() |
static final int BUFF_SIZE_MIN
static final int BUFF_SIZE_MAX
java.util.List<I> list(ItemFactory<I> itemFactory, java.lang.String path, java.lang.String prefix, int idRadix, I lastPrevItem, int count) throws java.io.IOException
java.io.IOExceptiondefault int get(java.util.List<O> buff, int limit) throws java.rmi.RemoteException
default void reset()
throws java.rmi.RemoteException
int getConcurrencyLevel()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionint getActiveTaskCount()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionlong getScheduledTaskCount()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionlong getCompletedTaskCount()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean isIdle()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid adjustIoBuffers(long avgTransferSize,
IoType ioType)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException