Package gov.nasa.arc.mct.buffer.internal

Examples of gov.nasa.arc.mct.buffer.internal.PartitionMetaData


            LOGGER.error("Exception in loadAllPartitionInformation", e);
        }
    }

    public PartitionMetaData removePartitionMetaData(int bufferPartition) {
        PartitionMetaData pObj = super.removePartitionMetaData(bufferPartition);
        if (pObj == null) { return null; }

        try {
            getMetaStoreIndex().delete(pObj.getPartitionId());
        } catch (Exception e) {
            LOGGER.error("Exception in getData", e);
        } finally {
            if (metaEnv != null) {
                metaEnv.flush();
View Full Code Here


        return pObj;
    }
   
    public Set<String> resetPartitionMetaData(int bufferPartition) {
        Set<String> rowoverFeedIDs = super.resetPartitionMetaData(bufferPartition);
        PartitionMetaData pObj = getPartitionMetaData(bufferPartition);
        if (pObj != null) {
            try {
                getMetaStoreIndex().putNoReturn(pObj);
            } catch (Exception e) {
                LOGGER.error("Exception in getData", e);
View Full Code Here

        return rowoverFeedIDs;
    }

    @Override
    public void writePartitionMetaData(int bufferPartition) {
        PartitionMetaData pObj = getPartitionMetaData(bufferPartition);
        if (pObj == null) {
            return;
        }
       
        try {
View Full Code Here

        }
    }

    @Override
    public void writeCurrentBufferPartition(int newCurrentBufferPartition) {
        PartitionMetaData existingPartitionMetaData = getPartitionMetaData(this.currentPartition);
        PartitionMetaData newPartitionMetaData = getPartitionMetaData(newCurrentBufferPartition);
        if (existingPartitionMetaData != null) {
            existingPartitionMetaData.setCurrentPartition(false);
        }
       
        if (newPartitionMetaData == null) {
            newPartitionMetaData = new PartitionMetaData(newCurrentBufferPartition);
            synchronized(this) {
                this.partitionMetaDatas[newCurrentBufferPartition] = newPartitionMetaData;
            }
        }
        newPartitionMetaData.setCurrentPartition(true);
       
        boolean failed = false;
        try {
            if (existingPartitionMetaData != null) {
                getMetaStoreIndex().putNoReturn(existingPartitionMetaData);
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.buffer.internal.PartitionMetaData

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.