Bug 188252 [enhancement] remove cube cache when server is shutdown
steps to reproduce: - create a report design using cube and xtab - deploy it to tomcat BIRT viewer - preview it note that one folder named temp29330913 was created under tomcat home folder, there are three files (Customer Cubedata, Customer CubeOat, Customer Cubeobj) within this folder. these won't be removed even after tomcat is shutdown. is it appropriate if these are some kind of cache for the cube data?
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/document/FileDocumentManager.java
/*******************************************************************************
 * Copyright (c) 2004, 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.data.engine.olap.data.document;
import java.io.EOFException;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.olap.data.util.BufferedRandomAccessFile;
import org.eclipse.birt.data.engine.i18n.ResourceConstants;
/**
 * An implementation of the <tt>IDocumentManager</tt> interface. This class 
 * use three files to save any number of document objects.
 */
public class FileDocumentManager implements IDocumentManager, IObjectAllocTable