diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status')
28 files changed, 0 insertions, 1275 deletions
diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandAdded.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandAdded.java deleted file mode 100644 index 27701767057..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandAdded.java +++ /dev/null @@ -1,44 +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.ote.core.environment.status; - -import java.io.Serializable; -import org.eclipse.osee.ote.core.environment.command.CommandDescription; - -public class CommandAdded implements IServiceStatusDataCommand, Serializable { - - private static final long serialVersionUID = -2555474494093618398L; - - private CommandDescription description; - - public CommandAdded(CommandDescription description) { - this.description = description; - } - - public CommandAdded() { - } - - @Override - public CommandDescription getDescription() { - return description; - } - - public void set(CommandDescription description) { - this.description = description; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - if (visitor != null) { - visitor.asCommandAdded(this); - } - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandEndedStatusEnum.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandEndedStatusEnum.java deleted file mode 100644 index 3be3942b85f..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandEndedStatusEnum.java +++ /dev/null @@ -1,20 +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.ote.core.environment.status; - -public enum CommandEndedStatusEnum { - - UNDEFINED, - ABORTED, - HUNG, - EXCEPTION, - RAN_TO_COMPLETION; -}
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandRemoved.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandRemoved.java deleted file mode 100644 index 536c3a08fdf..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandRemoved.java +++ /dev/null @@ -1,53 +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.ote.core.environment.status; - -import java.io.Serializable; -import org.eclipse.osee.ote.core.environment.command.CommandDescription; - -public class CommandRemoved implements Serializable, IServiceStatusDataCommand { - - private static final long serialVersionUID = -177791874608013281L; - private CommandDescription description; - private CommandEndedStatusEnum reason; - - public CommandRemoved(CommandDescription description, CommandEndedStatusEnum reason) { - this.description = description; - this.reason = reason; - } - - public CommandRemoved() { - } - - @Override - public CommandDescription getDescription() { - return description; - } - - public void setDescription(CommandDescription description) { - this.description = description; - } - - public void setReason(CommandEndedStatusEnum reason) { - this.reason = reason; - } - - public CommandEndedStatusEnum getReason() { - return reason; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - if (visitor != null) { - visitor.asCommandRemoved(this); - } - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandStatusEvent.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandStatusEvent.java deleted file mode 100644 index 27c4fa3c00b..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/CommandStatusEvent.java +++ /dev/null @@ -1,41 +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.ote.core.environment.status; - -import java.io.Serializable; -import org.eclipse.osee.ote.core.environment.command.CommandDescription; - -/** - * @author Ryan D. Brooks - * @author Andrew M. Finkbeiner - */ -public class CommandStatusEvent implements Serializable { - - private static final long serialVersionUID = -567005567921815848L; - private final CommandDescription description; - - /** - * CommandStatusEvent Constructor. - * - * @param description The command description. - */ - public CommandStatusEvent(CommandDescription description) { - super(); - this.description = description; - } - - /** - * @return Returns the description. - */ - public CommandDescription getDescription() { - return description; - } -}
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/EnvironmentError.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/EnvironmentError.java deleted file mode 100644 index e902db4f2c4..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/EnvironmentError.java +++ /dev/null @@ -1,41 +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.ote.core.environment.status; - -import java.io.Serializable; - -public class EnvironmentError implements IServiceStatusData, Serializable { - - private static final long serialVersionUID = -7077313410529981519L; - private Throwable err; - - public EnvironmentError(Throwable err) { - this.err = err; - } - - public EnvironmentError() { - } - - public Throwable getErr() { - return err; - } - - public void set(Throwable err) { - this.err = err; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - if (visitor != null) { - visitor.asEnvironmentError(this); - } - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/ExceptionEvent.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/ExceptionEvent.java deleted file mode 100644 index a5a42fd9758..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/ExceptionEvent.java +++ /dev/null @@ -1,33 +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.ote.core.environment.status; - -import java.io.Serializable; -import org.eclipse.osee.ote.core.environment.command.CommandDescription; - -/** - * @author Ryan D. Brooks - * @author Andrew M. Finkbeiner - */ -public class ExceptionEvent extends CommandStatusEvent implements Serializable { - - private static final long serialVersionUID = -831107014787093973L; - private final Throwable throwable; - - public ExceptionEvent(CommandDescription description, Throwable exception) { - super(description); - this.throwable = exception; - } - - public Throwable getException() { - return this.throwable; - } -}
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusData.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusData.java deleted file mode 100644 index a9006a1c21d..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusData.java +++ /dev/null @@ -1,18 +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.ote.core.environment.status; - -import java.io.Serializable; - -public interface IServiceStatusData extends Serializable { - - public void accept(IServiceStatusDataVisitor visitor); -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusDataCommand.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusDataCommand.java deleted file mode 100644 index e6954373b79..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusDataCommand.java +++ /dev/null @@ -1,21 +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.ote.core.environment.status; - -import org.eclipse.osee.ote.core.environment.command.CommandDescription; - -/** - * @author Roberto E. Escobar - */ -public interface IServiceStatusDataCommand extends IServiceStatusData { - - public CommandDescription getDescription(); -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusDataVisitor.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusDataVisitor.java deleted file mode 100644 index 51fae4c3616..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/IServiceStatusDataVisitor.java +++ /dev/null @@ -1,36 +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.ote.core.environment.status; - -/** - * @author Roberto E. Escobar - */ -public interface IServiceStatusDataVisitor { - - public void asCommandAdded(CommandAdded commandAdded); - - public void asCommandRemoved(CommandRemoved commandRemoved); - - public void asEnvironmentError(EnvironmentError environmentError); - - public void asSequentialCommandBegan(SequentialCommandBegan sequentialCommandBegan); - - public void asSequentialCommandEnded(SequentialCommandEnded sequentialCommandEnded); - - public void asTestPointUpdate(TestPointUpdate testPointUpdate); - - public void asTestServerCommandComplete(TestServerCommandComplete end); - - public void asTestComplete(TestComplete testComplete); - - public void asTestStart(TestStart testStart); - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/OTEStatusBoard.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/OTEStatusBoard.java deleted file mode 100644 index b4704338dfe..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/OTEStatusBoard.java +++ /dev/null @@ -1,46 +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.ote.core.environment.status; - -import java.util.List; - -import org.eclipse.osee.framework.logging.IHealthStatus; -import org.eclipse.osee.ote.core.environment.TestEnvironment; -import org.eclipse.osee.ote.core.environment.command.CommandDescription; -import org.eclipse.osee.ote.core.environment.command.TestEnvironmentCommand; -import org.eclipse.osee.ote.core.framework.command.ICommandHandle; - -/** - * @author Andrew M. Finkbeiner - */ -public interface OTEStatusBoard { - public void onCommandAdded(TestEnvironment env, TestEnvironmentCommand cmd); - - public void onCommandRemoved(TestEnvironment env, CommandDescription cmdDesc, CommandEndedStatusEnum status); - - public void onException(String message, Throwable t); - - public void onCommandBegan(TestEnvironment env, CommandDescription cmdDesc); - - public void onCommandFinished(TestEnvironment env, CommandDescription cmdDesc, CommandEndedStatusEnum status); - - public void onTestPointUpdate(int pass, int fail, String testClassName); - - public void onEnvironmentKilled(TestEnvironment env); - - public void dispose(); - - public void onTestServerCommandFinished(TestEnvironment env, ICommandHandle handle); - - public void onTestComplete(String className, String serverOutfilePath, String clientOutfilePath, CommandEndedStatusEnum status, List<IHealthStatus> healthStatus); - - public void onTestStart(String className, String serverOutfilePath, String clientOutfilePath); -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/SequentialCommandBegan.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/SequentialCommandBegan.java deleted file mode 100644 index b6182124a85..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/SequentialCommandBegan.java +++ /dev/null @@ -1,42 +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.ote.core.environment.status; - -import org.eclipse.osee.ote.core.environment.command.CommandDescription; - -public class SequentialCommandBegan implements IServiceStatusDataCommand { - - private static final long serialVersionUID = -3278399375292593249L; - private CommandDescription description; - - public SequentialCommandBegan(CommandDescription description) { - this.description = description; - } - - public SequentialCommandBegan() { - } - - public void set(CommandDescription description) { - this.description = description; - } - - @Override - public CommandDescription getDescription() { - return description; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - if (visitor != null) { - visitor.asSequentialCommandBegan(this); - } - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/SequentialCommandEnded.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/SequentialCommandEnded.java deleted file mode 100644 index 46ab777b590..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/SequentialCommandEnded.java +++ /dev/null @@ -1,50 +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.ote.core.environment.status; - -import java.io.Serializable; -import org.eclipse.osee.ote.core.environment.command.CommandDescription; - -public class SequentialCommandEnded implements IServiceStatusDataCommand, Serializable { - - private static final long serialVersionUID = 9093713855323793915L; - private CommandDescription description; - private CommandEndedStatusEnum status; - - public SequentialCommandEnded(CommandDescription description, CommandEndedStatusEnum status) { - this.description = description; - this.status = status; - } - - public SequentialCommandEnded() { - } - - @Override - public CommandDescription getDescription() { - return description; - } - - public CommandEndedStatusEnum getStatus() { - return status; - } - - public void set(CommandDescription description, CommandEndedStatusEnum status) { - this.description = description; - this.status = status; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - if (visitor != null) { - visitor.asSequentialCommandEnded(this); - } - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/StatusBoard.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/StatusBoard.java deleted file mode 100644 index 8789d706cde..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/StatusBoard.java +++ /dev/null @@ -1,244 +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.ote.core.environment.status; - -import java.io.IOException; -import java.util.List; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.logging.Level; - -import org.eclipse.osee.framework.logging.IHealthStatus; -import org.eclipse.osee.framework.logging.OseeLog; -import org.eclipse.osee.ote.core.GCHelper; -import org.eclipse.osee.ote.core.environment.TestEnvironment; -import org.eclipse.osee.ote.core.environment.command.CommandDescription; -import org.eclipse.osee.ote.core.environment.command.TestEnvironmentCommand; -import org.eclipse.osee.ote.core.environment.interfaces.ITestEnvironmentListener; -import org.eclipse.osee.ote.core.environment.status.msg.CommandAddedMessage; -import org.eclipse.osee.ote.core.environment.status.msg.CommandRemovedMessage; -import org.eclipse.osee.ote.core.environment.status.msg.EnvErrorMessage; -import org.eclipse.osee.ote.core.environment.status.msg.SequentialCommandBeganMessage; -import org.eclipse.osee.ote.core.environment.status.msg.SequentialCommandEndedMessage; -import org.eclipse.osee.ote.core.environment.status.msg.TestCompleteMessage; -import org.eclipse.osee.ote.core.environment.status.msg.TestPointUpdateMessage; -import org.eclipse.osee.ote.core.environment.status.msg.TestServerCommandCompleteMessage; -import org.eclipse.osee.ote.core.environment.status.msg.TestStartMessage; -import org.eclipse.osee.ote.core.framework.command.ICommandHandle; -import org.eclipse.osee.ote.core.framework.command.ITestCommandResult; -import org.eclipse.osee.ote.core.framework.command.TestCommandStatus; -import org.eclipse.osee.ote.message.event.OteEventMessageUtil; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; -import org.osgi.service.event.EventAdmin; - -/** - * @author Robert A. Fisher - * @author Ryan D. Brooks - */ -public class StatusBoard implements ITestEnvironmentListener, OTEStatusBoard { - private static final long TP_UPDATE_THROTTLE = 5000; - - private long lastTpUpdateTime = 0; - - private final ThreadPoolExecutor executor; - private final ScheduledExecutorService scheduledExecutor; - private final Object testPointLock = new Object(); - private TestPointStatusBoardRunnable latestTestPointUpdate; - private final AtomicBoolean executeLatestTestPointUpdate = new AtomicBoolean(); -private EventAdmin eventAdmin; - - // private Future<?> lastTestPointUpdate; - - /** - * StatusBoard Constructor. This class handles passing status information from the test enviornment to the UI's - * (StatusHandler Class). - */ - public StatusBoard() { - super(); - GCHelper.getGCHelper().addRefWatch(this); - executeLatestTestPointUpdate.set(false); - executor = (ThreadPoolExecutor) Executors.newFixedThreadPool(1); - scheduledExecutor = Executors.newSingleThreadScheduledExecutor(); - scheduledExecutor.scheduleAtFixedRate(new Runnable() { - - @Override - public void run() { - synchronized (testPointLock) { - if (executeLatestTestPointUpdate.get()) { - executeLatestTestPointUpdate.set(false); - lastTpUpdateTime = System.currentTimeMillis(); - executor.submit(latestTestPointUpdate); - } - } - } - - }, TP_UPDATE_THROTTLE, TP_UPDATE_THROTTLE, TimeUnit.MILLISECONDS); - } - - - public void start(){ - - } - - public void stop(){ - dispose(); - } - - public void bindEventAdmin(EventAdmin eventAdmin){ - this.eventAdmin = eventAdmin; - } - - public void unbindEventAdmin(EventAdmin eventAdmin){ - this.eventAdmin = null; - } - - @Override - public void onCommandAdded(TestEnvironment env, TestEnvironmentCommand cmd) { - CommandAdded cmdAdded = new CommandAdded(); - cmdAdded.set(cmd.getDescription()); - try { - CommandAddedMessage msg = new CommandAddedMessage(cmdAdded); - notifyListeners(msg); - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - - @Override - public void onCommandRemoved(TestEnvironment env, CommandDescription cmdDesc, CommandEndedStatusEnum status) { - CommandRemoved cmdRemoved = new CommandRemoved(); - cmdRemoved.setDescription(cmdDesc); - cmdRemoved.setReason(status); - try { - CommandRemovedMessage msg = new CommandRemovedMessage(cmdRemoved); - notifyListeners(msg); - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - - @Override - public void onException(String message, Throwable t) { - EnvironmentError envError = new EnvironmentError(); - envError.set(t); - try { - EnvErrorMessage msg = new EnvErrorMessage(envError); - notifyListeners(msg); - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - - @Override - public void onCommandBegan(TestEnvironment env, CommandDescription cmdDesc) { - SequentialCommandBegan seqCmdBegan = new SequentialCommandBegan(); - seqCmdBegan.set(cmdDesc); - try { - SequentialCommandBeganMessage msg = new SequentialCommandBeganMessage(seqCmdBegan); - notifyListeners(msg); - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - - @Override - public void onCommandFinished(TestEnvironment env, CommandDescription cmdDesc, CommandEndedStatusEnum status) { - OseeLog.log(TestEnvironment.class, Level.INFO, "To End: " + cmdDesc.getGuid()); - - SequentialCommandEnded seqCmdEnded = new SequentialCommandEnded(); - seqCmdEnded.set(cmdDesc, status); - try { - SequentialCommandEndedMessage msg = new SequentialCommandEndedMessage(seqCmdEnded); - notifyListeners(msg); - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - - @Override - public void onTestPointUpdate(int pass, int fail, String testClassName) { - try { - TestPointStatusBoardRunnable runnable = - new TestPointStatusBoardRunnable(new TestPointUpdateMessage(new TestPointUpdate(pass, fail, testClassName)), eventAdmin); - if (System.currentTimeMillis() - lastTpUpdateTime > TP_UPDATE_THROTTLE) { - lastTpUpdateTime = System.currentTimeMillis(); - executor.submit(runnable); - } else { - synchronized (testPointLock) { - latestTestPointUpdate = runnable; - executeLatestTestPointUpdate.set(true); - } - } - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - - @SuppressWarnings("rawtypes") - void notifyListeners(final SerializedClassMessage msg) { - executor.execute(new StatusBoardRunnable(msg) { - @Override - public void run() { - OteEventMessageUtil.sendEvent(msg, eventAdmin); - } - }); - } - - @Override - public void onEnvironmentKilled(TestEnvironment env) { - - } - - @Override - public void dispose() { - } - - @Override - public void onTestServerCommandFinished(TestEnvironment env, ICommandHandle handle) { - try { - ITestCommandResult status = handle.get(); - TestCommandStatus cmdStatus = null; - Throwable th = null; - if(status != null){ - cmdStatus = status.getStatus(); - th = status.getThrowable(); - } - TestServerCommandCompleteMessage msg = new TestServerCommandCompleteMessage(new TestServerCommandComplete(cmdStatus, th)); - notifyListeners(msg); - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - - @Override - public void onTestComplete(String className, String serverOutfilePath, String clientOutfilePath, CommandEndedStatusEnum status, List<IHealthStatus> healthStatus) { - try { - TestCompleteMessage msg = new TestCompleteMessage(new TestComplete(className, serverOutfilePath, clientOutfilePath, status, healthStatus)); - notifyListeners(msg); - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - - @Override - public void onTestStart(String className, String serverOutfilePath, String clientOutfilePath ) { - try { - TestStartMessage msg = new TestStartMessage(new TestStart(className, serverOutfilePath, clientOutfilePath)); - notifyListeners(msg); - } catch (IOException e) { - OseeLog.log(StatusBoard.class, Level.SEVERE, e); - } - } - -}
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/StatusBoardRunnable.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/StatusBoardRunnable.java deleted file mode 100644 index 7cbb6e51cbb..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/StatusBoardRunnable.java +++ /dev/null @@ -1,26 +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.ote.core.environment.status; - -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public abstract class StatusBoardRunnable implements Runnable { - - private final SerializedClassMessage data; - - public StatusBoardRunnable(SerializedClassMessage msg) { - this.data = msg; - } - - protected SerializedClassMessage getData() { - return data; - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestComplete.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestComplete.java deleted file mode 100644 index 1c5083d5c8d..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestComplete.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.ote.core.environment.status; - -import java.io.Serializable; -import java.util.List; -import org.eclipse.osee.framework.logging.IHealthStatus; - -/** - * @author Andrew M. Finkbeiner - */ -public class TestComplete implements Serializable, IServiceStatusData { - private static final long serialVersionUID = -7969548718769021626L; - private final String className; - private final CommandEndedStatusEnum status; - private final String serverOutfilePath; - private final String clientOutfilePath; - private final List<IHealthStatus> healthStatus; - - public TestComplete(String className, String serverOutfilePath, String clientOutfilePath, CommandEndedStatusEnum status, List<IHealthStatus> healthStatus) { - this.className = className; - this.serverOutfilePath = serverOutfilePath; - this.clientOutfilePath = clientOutfilePath; - this.status = status; - this.healthStatus = healthStatus; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - visitor.asTestComplete(this); - } - - public String getClassName() { - return className; - } - - public CommandEndedStatusEnum getStatus() { - return status; - } - - public String getServerOutfilePath() { - return serverOutfilePath; - } - - public String getClientOutfilePath() { - return clientOutfilePath; - } - - public List<IHealthStatus> getHealthStatus() { - return this.healthStatus; - } - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestPointStatusBoardRunnable.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestPointStatusBoardRunnable.java deleted file mode 100644 index 6ced1e169f5..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestPointStatusBoardRunnable.java +++ /dev/null @@ -1,34 +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.ote.core.environment.status; - -import org.eclipse.osee.ote.core.environment.status.msg.TestPointUpdateMessage; -import org.eclipse.osee.ote.message.event.OteEventMessageUtil; -import org.osgi.service.event.EventAdmin; - -/** - * @author Andrew M. Finkbeiner - */ -public class TestPointStatusBoardRunnable extends StatusBoardRunnable { - - private final EventAdmin eventAdmin; - - public TestPointStatusBoardRunnable(TestPointUpdateMessage testPointUpdateMessage, EventAdmin eventAdmin) { - super(testPointUpdateMessage); - this.eventAdmin = eventAdmin; - } - - @Override - public void run() { - OteEventMessageUtil.sendEvent(getData(), eventAdmin); - } - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestPointUpdate.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestPointUpdate.java deleted file mode 100644 index 676e7706a5d..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestPointUpdate.java +++ /dev/null @@ -1,68 +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.ote.core.environment.status; - -import java.io.Serializable; -import org.eclipse.osee.ote.core.environment.command.CommandDescription; - -public class TestPointUpdate implements Serializable, IServiceStatusDataCommand { - - private static final long serialVersionUID = 7157851807444983673L; - private int pass; - private int fail; - private CommandDescription description; - private String testClassName; - - public TestPointUpdate(int pass, int fail, CommandDescription description) { - this.pass = pass; - this.fail = fail; - this.description = description; - } - - public TestPointUpdate(int pass, int fail, String testClassName) { - this.pass = pass; - this.fail = fail; - this.testClassName = testClassName; - } - - public TestPointUpdate() { - } - - public int getFail() { - return fail; - } - - public int getPass() { - return pass; - } - - public String getClassName() { - return testClassName; - } - - @Override - public CommandDescription getDescription() { - return description; - } - - public void set(int pass, int fail, CommandDescription description) { - this.pass = pass; - this.fail = fail; - this.description = description; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - if (visitor != null) { - visitor.asTestPointUpdate(this); - } - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestServerCommandComplete.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestServerCommandComplete.java deleted file mode 100644 index ca2310c903f..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestServerCommandComplete.java +++ /dev/null @@ -1,43 +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.ote.core.environment.status; - -import java.io.Serializable; - -import org.eclipse.osee.ote.core.framework.command.TestCommandStatus; - -/** - * @author Andrew M. Finkbeiner - */ -public class TestServerCommandComplete implements Serializable, IServiceStatusData { - - private static final long serialVersionUID = -2678833105694275416L; - private TestCommandStatus cmdStatus; - private Throwable th; - - public TestServerCommandComplete(TestCommandStatus cmdStatus, Throwable th) { - this.cmdStatus = cmdStatus; - this.th = th; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - visitor.asTestServerCommandComplete(this); - } - - public TestCommandStatus getCmdStatus() { - return cmdStatus; - } - - public Throwable getThrowable() { - return th; - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestStart.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestStart.java deleted file mode 100644 index 0d8f90cb72f..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/TestStart.java +++ /dev/null @@ -1,49 +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.ote.core.environment.status; - -import java.io.Serializable; - -/** - * @author Andrew M. Finkbeiner - */ -public class TestStart implements IServiceStatusData, Serializable { - - private static final long serialVersionUID = -3458459132672153638L; - private final String testClassName; - private final String serverOutfilePath; - private final String clientOutfilePath; - - public TestStart(String testClassName, String serverOutfilePath, String clientOutfilePath) { - this.testClassName = testClassName; - this.serverOutfilePath = serverOutfilePath; - this.clientOutfilePath = clientOutfilePath; - } - - @Override - public void accept(IServiceStatusDataVisitor visitor) { - visitor.asTestStart(this); - } - - public String getTestClassName() { - return testClassName; - } - - public String getServerOutfilePath() { - return serverOutfilePath; - } - - public String getClientOutfilePath() { - return clientOutfilePath; - } - - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/CommandAddedMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/CommandAddedMessage.java deleted file mode 100644 index 893f1885fe4..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/CommandAddedMessage.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.CommandAdded; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class CommandAddedMessage extends SerializedClassMessage<CommandAdded> { - - public static final String EVENT = "ote/status/commandAdded"; - - public CommandAddedMessage() { - super(EVENT); - } - - public CommandAddedMessage(CommandAdded commandAdded) throws IOException { - super(EVENT, commandAdded); - } - - public CommandAddedMessage(byte[] bytes){ - super(bytes); - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/CommandRemovedMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/CommandRemovedMessage.java deleted file mode 100644 index 70c7cd6a5c2..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/CommandRemovedMessage.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.CommandRemoved; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class CommandRemovedMessage extends SerializedClassMessage<CommandRemoved> { - - public static final String EVENT = "ote/status/commandRemoved"; - - public CommandRemovedMessage() { - super(EVENT); - } - - public CommandRemovedMessage(CommandRemoved cmdRemoved) throws IOException { - super("ote/status/commandRemoved", cmdRemoved); - } - - public CommandRemovedMessage(byte[] bytes){ - super(bytes); - } - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/EnvErrorMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/EnvErrorMessage.java deleted file mode 100644 index 344684b661b..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/EnvErrorMessage.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.EnvironmentError; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class EnvErrorMessage extends SerializedClassMessage<EnvironmentError> { - - public static final String EVENT = "ote/status/envError"; - - public EnvErrorMessage() { - super(EVENT); - } - - public EnvErrorMessage(EnvironmentError envError) throws IOException { - super(EVENT, envError); - } - - public EnvErrorMessage(byte[] bytes) { - super(bytes); - } - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/SequentialCommandBeganMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/SequentialCommandBeganMessage.java deleted file mode 100644 index f7363d8f5f7..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/SequentialCommandBeganMessage.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.SequentialCommandBegan; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class SequentialCommandBeganMessage extends SerializedClassMessage<SequentialCommandBegan> { - - public static final String EVENT = "ote/status/sequentialCommandBegan"; - - public SequentialCommandBeganMessage() { - super(EVENT); - } - - public SequentialCommandBeganMessage(SequentialCommandBegan seqCmdBegan) throws IOException { - super(EVENT, seqCmdBegan); - } - - public SequentialCommandBeganMessage(byte[] bytes){ - super(bytes); - } - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/SequentialCommandEndedMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/SequentialCommandEndedMessage.java deleted file mode 100644 index 8e53ca2539e..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/SequentialCommandEndedMessage.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.SequentialCommandEnded; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class SequentialCommandEndedMessage extends SerializedClassMessage<SequentialCommandEnded> { - - public static final String EVENT = "ote/status/sequentialCommandEnded"; - - public SequentialCommandEndedMessage() { - super(EVENT); - } - - public SequentialCommandEndedMessage(SequentialCommandEnded seqCmdEnded) throws IOException { - super(EVENT, seqCmdEnded); - } - - public SequentialCommandEndedMessage(byte[] bytes){ - super(bytes); - } - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestCompleteMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestCompleteMessage.java deleted file mode 100644 index 5efa08a29bb..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestCompleteMessage.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.TestComplete; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class TestCompleteMessage extends SerializedClassMessage<TestComplete> { - - public static final String EVENT = "ote/status/testComplete"; - - public TestCompleteMessage() { - super(EVENT); - } - - public TestCompleteMessage(TestComplete testComplete) throws IOException { - super(EVENT, testComplete); - } - - public TestCompleteMessage(byte[] bytes){ - super(bytes); - } - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestPointUpdateMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestPointUpdateMessage.java deleted file mode 100644 index 82795ccc31b..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestPointUpdateMessage.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.TestPointUpdate; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class TestPointUpdateMessage extends SerializedClassMessage<TestPointUpdate> { - - public static final String EVENT = "ote/status/testPointUpdate"; - - public TestPointUpdateMessage() { - super(EVENT); - } - - public TestPointUpdateMessage(TestPointUpdate testPointUpdate) throws IOException { - super(EVENT, testPointUpdate); - } - - public TestPointUpdateMessage(byte[] bytes){ - super(bytes); - } -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestServerCommandCompleteMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestServerCommandCompleteMessage.java deleted file mode 100644 index ca7306d8a4b..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestServerCommandCompleteMessage.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.TestServerCommandComplete; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class TestServerCommandCompleteMessage extends SerializedClassMessage<TestServerCommandComplete> { - - public static final String EVENT = "ote/status/testServerCommandComplete"; - - public TestServerCommandCompleteMessage() { - super(EVENT); - } - - public TestServerCommandCompleteMessage( - TestServerCommandComplete testServerCommandComplete) throws IOException { - super(EVENT, testServerCommandComplete); - } - - public TestServerCommandCompleteMessage(byte[] bytes){ - super(bytes); - } - -} diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestStartMessage.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestStartMessage.java deleted file mode 100644 index 88dae160352..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/status/msg/TestStartMessage.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 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.ote.core.environment.status.msg; - -import java.io.IOException; - -import org.eclipse.osee.ote.core.environment.status.TestStart; -import org.eclipse.osee.ote.message.event.SerializedClassMessage; - -public class TestStartMessage extends SerializedClassMessage<TestStart> { - - public static final String EVENT = "ote/status/testStart"; - - public TestStartMessage() { - super(EVENT); - } - - public TestStartMessage(TestStart testStart) throws IOException { - super(EVENT, testStart); - } - - public TestStartMessage(byte[] bytes) { - super(bytes); - } - -} |