Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'rms/org.eclipse.ptp.rm.smoa.core/src/org/eclipse/ptp/rm/smoa/core/rmsystem/SMOAResourceManagerControl.java')
-rw-r--r--rms/org.eclipse.ptp.rm.smoa.core/src/org/eclipse/ptp/rm/smoa/core/rmsystem/SMOAResourceManagerControl.java63
1 files changed, 0 insertions, 63 deletions
diff --git a/rms/org.eclipse.ptp.rm.smoa.core/src/org/eclipse/ptp/rm/smoa/core/rmsystem/SMOAResourceManagerControl.java b/rms/org.eclipse.ptp.rm.smoa.core/src/org/eclipse/ptp/rm/smoa/core/rmsystem/SMOAResourceManagerControl.java
deleted file mode 100644
index a00bdd542..000000000
--- a/rms/org.eclipse.ptp.rm.smoa.core/src/org/eclipse/ptp/rm/smoa/core/rmsystem/SMOAResourceManagerControl.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Poznan Supercomputing and Networking Center
- * 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:
- * Jan Konczak (PSNC) - initial implementation
- ******************************************************************************/
-
-package org.eclipse.ptp.rm.smoa.core.rmsystem;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.ptp.rm.smoa.core.SMOAConfiguration;
-import org.eclipse.ptp.rm.smoa.core.rtsystem.SMOARuntimeSystem;
-import org.eclipse.ptp.rtsystem.AbstractRuntimeResourceManagerControl;
-import org.eclipse.ptp.rtsystem.IRuntimeSystem;
-
-public class SMOAResourceManagerControl extends AbstractRuntimeResourceManagerControl {
- /** Current configuration of this RM */
- /* package access */SMOAConfiguration configuration;
-
- public SMOAResourceManagerControl(SMOAResourceManagerConfiguration config) {
- super(config);
- configuration = config;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.ptp.rtsystem.AbstractRuntimeResourceManagerControl#doControlJob
- * (java.lang.String, java.lang.String,
- * org.eclipse.core.runtime.IProgressMonitor)
- */
- @Override
- protected void doControlJob(String jobId, String operation, IProgressMonitor monitor) throws CoreException {
- if (operation.equals(TERMINATE_OPERATION)) {
- JobThread job = getResourceManager().getJobThread(jobId);
- if (job != null) {
- job.terminate();
- }
- }
- super.doControlJob(jobId, operation, monitor);
- }
-
- @Override
- protected SMOAResourceManager getResourceManager() {
- return (SMOAResourceManager) super.getResourceManager();
- }
-
- @Override
- protected SMOARuntimeSystem getRuntimeSystem() {
- final IRuntimeSystem rs = super.getRuntimeSystem();
- if (rs instanceof SMOARuntimeSystem) {
- return (SMOARuntimeSystem) rs;
- }
- throw new RuntimeException();
- }
-
-} \ No newline at end of file

Back to the top