Examples of ObjectInDataStoreVO


Examples of org.apache.cloudstack.storage.db.ObjectInDataStoreVO

    protected Void copyCallback(
            AsyncCallbackDispatcher<DataObjectManagerImpl, CopyCommandResult> callback,
            CopyContext<CreateCmdResult> context) {
        CopyCommandResult result = callback.getResult();
        DataObject destObj = context.destObj;
        ObjectInDataStoreVO obj = objectInDataStoreMgr.findObject(
                destObj.getId(), destObj
                        .getType(), destObj.getDataStore()
                        .getId(), destObj.getDataStore()
                        .getRole());
        if (result.isFailed()) {
            try {
                objectInDataStoreMgr.update(obj, Event.OperationFailed);
            } catch (NoTransitionException e) {
                s_logger.debug("Failed to update copying state", e);
            }
            CreateCmdResult res = new CreateCmdResult(
                    null, null);
            res.setResult(result.getResult());
            context.getParentCallback().complete(res);
        }

        obj.setInstallPath(result.getPath());

        try {
            objectInDataStoreMgr.update(obj,
                    ObjectInDataStoreStateMachine.Event.OperationSuccessed);
        } catch (NoTransitionException e) {
View Full Code Here

Examples of org.apache.cloudstack.storage.db.ObjectInDataStoreVO

       
    }
    @Override
    public void deleteAsync(DataObject data,
            AsyncCompletionCallback<CommandResult> callback) {
        ObjectInDataStoreVO obj = objectInDataStoreMgr.findObject(
                data.getId(), data.getType(), data.getDataStore().getId(),
                data.getDataStore().getRole());
        try {
            objectInDataStoreMgr.update(obj, Event.DestroyRequested);
        } catch (NoTransitionException e) {
View Full Code Here

Examples of org.apache.cloudstack.storage.db.ObjectInDataStoreVO

    }
   
    protected Void deleteAsynCallback(AsyncCallbackDispatcher<DataObjectManagerImpl, CommandResult> callback,
            DeleteContext<CommandResult> context) {
        DataObject destObj = context.obj;
        ObjectInDataStoreVO obj = objectInDataStoreMgr.findObject(
                destObj.getId(), destObj
                        .getType(), destObj.getDataStore()
                        .getId(), destObj.getDataStore()
                        .getRole());
       
View Full Code Here

Examples of org.apache.cloudstack.storage.db.ObjectInDataStoreVO

        return null;
    }

    @Override
    public DataObject createInternalStateOnly(DataObject data, DataStore store) {
        ObjectInDataStoreVO obj = objectInDataStoreMgr.findObject(
                data.getId(), data.getType(), store.getId(),
                store.getRole());
        DataObject objInStore = null;
        if (obj == null) {
            objInStore = objectInDataStoreMgr.create(
View Full Code Here

Examples of org.apache.cloudstack.storage.db.ObjectInDataStoreVO

        return objInStore;
    }

    @Override
    public void update(DataObject data, String path, Long size) {
        ObjectInDataStoreVO obj = objectInDataStoreMgr.findObject(
                data.getId(), data.getType(), data.getDataStore().getId(),
                data.getDataStore().getRole());
       
        obj.setInstallPath(path);
        obj.setSize(size);
        objectInDataStoreMgr.update(obj);
    }
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.