@Override public void checkCapacity(final String target, final long size) throws NoSuchSessionException { /* Initiator.getCapacity() == last block address */ final long capacity = initiator.getCapacity(target); final long blockSize = initiator.getBlockSize(target); Assert.assertEquals( "Error: capacity=" + capacity + ", blockSize=" + blockSize, size, (capacity + 1) * blockSize); }
public Future<Void> multiThreadedWrite( final String targetName, final ByteBuffer src, final int logicalBlockAddress, final long transferLength, final int blockSize) throws NoSuchSessionException, TaskExecutionException { return initiator.multiThreadedWrite(targetName, src, logicalBlockAddress, transferLength); }
@Override public void read( final String targetName, final ByteBuffer dst, final int logicalBlockAddress, final long transferLength, final int blockSize) throws NoSuchSessionException, TaskExecutionException { // blockSize parameter is useless for jScsi initiator.read(targetName, dst, logicalBlockAddress, transferLength); }
@Override public void closeSession(final String targetName) throws NoSuchSessionException, TaskExecutionException { initiator.closeSession(targetName); }
@Override public void createSession(final String targetName) throws NoSuchSessionException { initiator.createSession(targetName); }