summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn F. Cook2011-08-02 16:05:24 (EDT)
committerRyan D. Brooks2011-08-02 16:05:24 (EDT)
commit474342f7da1a38858ce54010a396146ef0149722 (patch)
tree059425fe03ae57a6444a07645d702127b7bc7197
parenteb412acf58fe388b586f07357f6b175a8bb6b4b8 (diff)
downloadorg.eclipse.osee-474342f7da1a38858ce54010a396146ef0149722.zip
org.eclipse.osee-474342f7da1a38858ce54010a396146ef0149722.tar.gz
org.eclipse.osee-474342f7da1a38858ce54010a396146ef0149722.tar.bz2
refinement[bgz_350331]: Delete the DatastoreStatistics BLAM class
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml8
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatastoreStatistics.java61
2 files changed, 0 insertions, 69 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml b/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
index 643976d..8436cc3 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
@@ -1412,14 +1412,6 @@
</command>
</extension>
<extension
- id="DatastoreStatistics"
- name="DatastoreStatistics"
- point="org.eclipse.osee.framework.ui.skynet.BlamOperation">
- <Operation
- className="org.eclipse.osee.framework.ui.skynet.blam.operation.DatastoreStatistics">
- </Operation>
- </extension>
- <extension
id="DeleteUnneededUnspecifiedAttributes"
name="DeleteUnneededUnspecifiedAttributes"
point="org.eclipse.osee.framework.ui.skynet.BlamOperation">
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatastoreStatistics.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatastoreStatistics.java
deleted file mode 100644
index 3bcd90e..0000000
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/DatastoreStatistics.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.ui.skynet.blam.operation;
-
-import java.util.Arrays;
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.database.core.ConnectionHandler;
-import org.eclipse.osee.framework.database.core.IOseeStatement;
-import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
-import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
-
-/**
- * @author Ryan D. Brooks
- */
-public class DatastoreStatistics extends AbstractBlam {
- private static final String SELECT_ARTIFACT_COUNTS =
- "select count(1) as total, name FROM osee_artifact_type ary, osee_artifact art where ary.art_type_id = art.art_type_id group by art_id, name order by total desc";
-
- @Override
- public String getName() {
- return "Datastore Statistics";
- }
-
- @Override
- public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {
- IOseeStatement chStmt = ConnectionHandler.getStatement();
-
- try {
- chStmt.runPreparedQuery(1000, SELECT_ARTIFACT_COUNTS);
- while (chStmt.next()) {
- report(chStmt.getString("name") + ": " + chStmt.getInt("total"));
- }
- } finally {
- chStmt.close();
- }
- }
-
- @Override
- public String getXWidgetsXml() {
- return AbstractBlam.emptyXWidgetsXml;
- }
-
- @Override
- public String getDescriptionUsage() {
- return "Reports statistics about the datastore including artifact counts by type.";
- }
-
- @Override
- public Collection<String> getCategories() {
- return Arrays.asList("Admin.Health");
- }
-} \ No newline at end of file