Package org.jscsi.exception

Examples of org.jscsi.exception.TaskExecutionException


            return returnVal;
        } else {
            try {
                task.call();
            } catch (final Exception exc) {
                throw new TaskExecutionException(new ExecutionException(exc));
            }
            return null;
        }
        // LOGGER.info("Added a " + task + " to the TaskQueue");
    }
View Full Code Here


     */
    public final void read (final String targetName, final ByteBuffer dst, final int logicalBlockAddress, final long transferLength) throws NoSuchSessionException , TaskExecutionException {
        try {
            multiThreadedRead(targetName, dst, logicalBlockAddress, transferLength).get();
        } catch (final InterruptedException exc) {
            throw new TaskExecutionException(exc);
        } catch (final ExecutionException exc) {
            throw new TaskExecutionException(exc);
        }
    }
View Full Code Here

    public final void write (final String targetName, final ByteBuffer src, final int logicalBlockAddress, final long transferLength) throws NoSuchSessionException , TaskExecutionException {

        try {
            multiThreadedWrite(targetName, src, logicalBlockAddress, transferLength).get();
        } catch (final InterruptedException exc) {
            throw new TaskExecutionException(exc);
        } catch (final ExecutionException exc) {
            throw new TaskExecutionException(exc);
        }
    }
View Full Code Here

TOP

Related Classes of org.jscsi.exception.TaskExecutionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.