Package com.volantis.mcs.repository.impl.jdbc.lock

Examples of com.volantis.mcs.repository.impl.jdbc.lock.JDBCPrincipal


            if (args.length != 3) {
                usage("lock <principal> <resource>");
            }

            String principalName = args[1];
            Principal principal = new JDBCPrincipal(principalName);
            String resource = args[2];

            Lock lock = manager.getLock(resource);
            lock.acquire(principal);
        } else if (command.equals("unlock")) {

            if (args.length != 3) {
                usage("lock <principal> <resource>");
            }

            String principalName = args[1];
            Principal principal = new JDBCPrincipal(principalName);
            String resource = args[2];
           
            Lock lock = manager.getLock(resource);
            lock.release(principal);
        } else if (command.equals("list")) {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.repository.impl.jdbc.lock.JDBCPrincipal

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.