diff options
author | Ryan D. Brooks | 2011-02-24 18:51:08 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2011-02-24 18:51:08 +0000 |
commit | 363cecbc0708c92dcd73659de3a95e92c2196842 (patch) | |
tree | 3cebbc31e8ae75cd17c96bc78a88d57f10e84ffb /plugins/org.eclipse.osee.framework.server.admin | |
parent | 9e9fe5948bb7665baeede0cb076bc5e345467307 (diff) | |
download | org.eclipse.osee-363cecbc0708c92dcd73659de3a95e92c2196842.tar.gz org.eclipse.osee-363cecbc0708c92dcd73659de3a95e92c2196842.tar.xz org.eclipse.osee-363cecbc0708c92dcd73659de3a95e92c2196842.zip |
refactor: Remove redundant osgi GarbageCollectionCommand
Diffstat (limited to 'plugins/org.eclipse.osee.framework.server.admin')
2 files changed, 0 insertions, 36 deletions
diff --git a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java index 5843d1b15cc..abfdf214da4 100644 --- a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java +++ b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java @@ -21,7 +21,6 @@ import org.eclipse.osee.framework.core.operation.Operations; import org.eclipse.osee.framework.server.admin.internal.Activator; import org.eclipse.osee.framework.server.admin.management.AdminCommands; import org.eclipse.osee.framework.server.admin.management.ConsolidateArtifactVersionsCommand; -import org.eclipse.osee.framework.server.admin.management.GarbageCollectionCommand; import org.eclipse.osee.framework.server.admin.management.SchedulingCommand; import org.eclipse.osgi.framework.console.CommandInterpreter; import org.eclipse.osgi.framework.console.CommandProvider; @@ -69,10 +68,6 @@ public class ServerAdminCommandProvider implements CommandProvider { return Operations.executeAsJob(new ConsolidateArtifactVersionsCommand(ci), false); } - public Job _gc(CommandInterpreter ci) { - return Operations.executeAsJob(new GarbageCollectionCommand(ci), false); - } - public Job _schedule(CommandInterpreter ci) { return Operations.executeAsJob(new SchedulingCommand(ci), false); } @@ -107,7 +102,6 @@ public class ServerAdminCommandProvider implements CommandProvider { sb.append(" tx_currents [true | false] - detect and fix tx current and mod types inconsistencies on archive txs or txs\n"); sb.append(" duplicate_attr - detect and fix duplicate attributes\n"); sb.append(" osee_shutdown [-oseeOnly] - immediately release the listening port then waits for all existing operations to finish. \n"); - sb.append(" gc - run java garbage collecction\n"); sb.append(" schedule <delay seconds> <iterations> <command> - runs the command after the specified delay and repeat given number of times\n"); sb.append(String.format(" reload_cache %s? - reloads server caches\n", Arrays.deepToString(OseeCacheEnum.values()).replaceAll(",", " | "))); diff --git a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/management/GarbageCollectionCommand.java b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/management/GarbageCollectionCommand.java deleted file mode 100644 index 2119bf1d15b..00000000000 --- a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/management/GarbageCollectionCommand.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.server.admin.management; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.osee.framework.server.admin.BaseServerCommand; -import org.eclipse.osgi.framework.console.CommandInterpreter; - -/** - * @author Ryan D. Brooks - */ -public class GarbageCollectionCommand extends BaseServerCommand { - - public GarbageCollectionCommand(CommandInterpreter ci) { - super("Run Garbage Collection", ci); - } - - @Override - protected void doCommandWork(IProgressMonitor monitor) throws Exception { - System.gc(); - } -}
\ No newline at end of file |