Examples of incRefCount()


Examples of framework.beans.security.entities.CollaboratorSessionActive.incRefCount()

            ses = new CollaboratorSessionActive();
            ses.setSessionId(sd);
            ses.setCollaborator(colEntity);
            ses.setLastCallMoment(new Date());
            ses.setAdmin(isSuperUser);
            ses.incRefCount();
            try {
                manager.persist(ses);
                manager.flush();
                newSessionId = sd;
            } catch (Throwable e) {
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.DataObject.incRefCount()

    public DataObject createCacheObject(DataObject data, DataStore store) {
        DataObjectInStore obj = objectInStoreMgr.findObject(data, store);
        if (obj != null && obj.getState() == ObjectInDataStoreStateMachine.State.Ready) {
            s_logger.debug("there is already one in the cache store");
            DataObject dataObj = objectInStoreMgr.get(data, store);
            dataObj.incRefCount();
            return dataObj;
        }

        DataObject objOnCacheStore = store.create(data);
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.DataObject.incRefCount()

            if (result.isFailed()) {
                objOnCacheStore.processEvent(Event.OperationFailed);
            } else {
                objOnCacheStore.processEvent(Event.OperationSuccessed, result.getAnswer());
                objOnCacheStore.incRefCount();
                return objOnCacheStore;
            }
        } catch (InterruptedException e) {
            s_logger.debug("create cache storage failed: " + e.toString());
            throw new CloudRuntimeException(e);
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.DataObject.incRefCount()

    @Override
    public DataObject getCacheObject(DataObject data, Scope scope) {
        DataStore cacheStore = getCacheStorage(scope);
        DataObject objOnCacheStore = cacheStore.create(data);
        objOnCacheStore.incRefCount();
        return objOnCacheStore;
    }

    @Override
    public boolean releaseCacheObject(DataObject data) {
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.DataObject.incRefCount()

    public DataObject createCacheObject(DataObject data, DataStore store) {
        DataObjectInStore obj = objectInStoreMgr.findObject(data, store);
        if (obj != null && obj.getState() == ObjectInDataStoreStateMachine.State.Ready) {
            s_logger.debug("there is already one in the cache store");
            DataObject dataObj = objectInStoreMgr.get(data, store);
            dataObj.incRefCount();
            return dataObj;
        }

        DataObject objOnCacheStore = store.create(data);
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.DataObject.incRefCount()

            if (result.isFailed()) {
                objOnCacheStore.processEvent(Event.OperationFailed);
            } else {
                objOnCacheStore.processEvent(Event.OperationSuccessed, result.getAnswer());
                objOnCacheStore.incRefCount();
                return objOnCacheStore;
            }
        } catch (InterruptedException e) {
            s_logger.debug("create cache storage failed: " + e.toString());
            throw new CloudRuntimeException(e);
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.DataObject.incRefCount()

    @Override
    public DataObject getCacheObject(DataObject data, Scope scope) {
        DataStore cacheStore = getCacheStorage(scope);
        DataObject objOnCacheStore = cacheStore.create(data);
        objOnCacheStore.incRefCount();
        return objOnCacheStore;
    }

    @Override
    public boolean releaseCacheObject(DataObject data) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.