Package com.mobixess.jodb.core.io

Examples of com.mobixess.jodb.core.io.IOTicket.lock()


        return _activeObjects.size();
    }
   
    public JODBQueryList getAllObjects() throws IOException{
        IOTicket ioTicket = _base.getIOTicket(true, false);
        ioTicket.lock(false);
        long[] offsets;
        try {
            offsets = _base.getForAllObjects(ioTicket);
        } finally {
            ioTicket.unlock();
View Full Code Here


        PersistentObjectHandle handle = getHandleForActiveObject(obj);
        if(handle == null){
            return;
        }
        IOTicket ioTicket = _base.getIOTicket(true, false);
        ioTicket.lock(false);
        try {
            TransactionUtils.launchObject(this, handle.getObjectEntryOffset(), obj, depth);
        }catch (Exception e) {
            ioTicket.unlock();
        }
View Full Code Here

            instance = activationInstance;
        }
        OperationContextTicketCache contextTicketCache = _threadLocalTicketCacheHolder.get();
        IOTicket ioTicket = contextTicketCache.getTicketForRead(base);//base.getIOTicket(true, false);
        try{
            ioTicket.lock(false);
            DataContainersCache dataContainersCache = getObjectDataContainerCache();
            ObjectDataContainer objectDataContainer = dataContainersCache.pullObjectDataContainer();
            FieldsIterator fieldsIterator = objectDataContainer.readObject(ioTicket.getRandomAccessBuffer(),base, session, offset, true);
            ClassDescriptor classDescriptor = objectDataContainer.getClassDescriptorForPersistedObject();
            if (classDescriptor == null || fieldsIterator == null) {
View Full Code Here

        }
       
        IOTicket writeTicket = _base.getIOTicket(true, true);
        try{
            JODBOperationContext context = new JODBOperationContext(_session, writeTicket, null, _transactionContainer, indexingRootAgent);
            writeTicket.lock(true);
           
            if(!enable){
                indexingRootAgent.removeAgent(field, context);
                return;
            }
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.