Package org.globus.workspace.service

Examples of org.globus.workspace.service.CoschedResource


    // default configuration has this provided on the fly via IoC
    protected abstract CoschedResource newEmptyResource();

    public CoschedResource newCosched(String creatorID) throws ManageException {
       
        final CoschedResource resource = this.newEmptyResource();

        final String idStr = this.uuidGen.generateRandomBasedUUID().toString();

        final Lock lock = this.lockManager.getLock(idStr);
        try {
            lock.lockInterruptibly();
        } catch (InterruptedException e) {
            throw new ManageException(e.getMessage(), e);
        }

        try {

            resource.setID(idStr);
            resource.setCreatorID(creatorID);
            this.persistence.addEnsemble(resource);

            final Element el = this.cache.get(idStr);
            if (el == null) {
                this.cache.put(new Element(idStr, resource));
View Full Code Here


        if (coschedid == null) {
            throw new ManageException("coschedid may not be null");
        }

        final CoschedResource resource;

        final Lock lock = this.lockManager.getLock(coschedid);
        try {
            lock.lockInterruptibly();
        } catch (InterruptedException e) {
View Full Code Here

        } catch (InterruptedException e) {
            throw new ManageException(e.getMessage(), e);
        }

        try {
            final CoschedResource resource = this.find(coschedid);
            resource.remove();
            this.cache.remove(coschedid);
            this.persistence.removeEnsemble(coschedid);

        } finally {
            lock.unlock();
View Full Code Here

TOP

Related Classes of org.globus.workspace.service.CoschedResource

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.