Package org.jscsi.exception

Examples of org.jscsi.exception.NoSuchSessionException


        final Session session = sessions.get(targetName);

        if (session != null) {
            return session;
        } else {
            throw new NoSuchSessionException("Session " + targetName + " not found!");
        }
    }
View Full Code Here


        final Session session = sessions.get(sessionReq.getTargetName());

        if (session != null) {
            sessions.remove(sessionReq.getTargetName());
        } else {
            throw new NoSuchSessionException("Session " + sessionReq.getTargetName() + " not found!");
        }
    }
View Full Code Here

     */
    public final InetSocketAddress getTargetAddress (final String targetName) throws NoSuchSessionException {

        final SessionConfiguration sc = sessionConfigs.get(targetName);

        if (sc == null) { throw new NoSuchSessionException("A session with the ID '" + targetName + "' does not exist."); }

        return sc.getInetSocketAddress();
    }
View Full Code Here

        final SessionConfiguration sc;
        synchronized (sessionConfigs) {
            sc = sessionConfigs.get(targetName);

            synchronized (sc) {
                if (sc == null) { throw new NoSuchSessionException("A session with the ID '" + targetName + "' does not exist."); }

                synchronized (response) {
                    SettingEntry se;
                    for (Map.Entry<OperationalTextKey , String> e : response.entrySet()) {
                        synchronized (globalConfig) {
View Full Code Here

TOP

Related Classes of org.jscsi.exception.NoSuchSessionException

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.