Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMengxin Zhu2012-02-27 08:47:36 +0000
committerMengxin Zhu2012-03-01 07:11:36 +0000
commita927f26f8308300acb803be667733da7795c3fe1 (patch)
treebb563d2860ad1692d067315fea9bdaa7dc57e0db /bundles/org.eclipse.equinox.p2.repository
parentdac2766583d7f0d27dd1c8692af7c9346cbac92c (diff)
downloadrt.equinox.p2-a927f26f8308300acb803be667733da7795c3fe1.tar.gz
rt.equinox.p2-a927f26f8308300acb803be667733da7795c3fe1.tar.xz
rt.equinox.p2-a927f26f8308300acb803be667733da7795c3fe1.zip
Bug 358842 pausing/resuming a p2 operation.v20120301-1523v20120301-0711
Introduce new test cases that will download artifacts from Internet, so add vm arguments to make downloading more stable. Signed-off-by: Mengxin Zhu <kane.zhu@windriver.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF3
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/DownloadPauseResumeEvent.java38
2 files changed, 40 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF
index d681c08be..10912e08c 100644
--- a/bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.p2.repository/META-INF/MANIFEST.MF
@@ -17,7 +17,8 @@ Export-Package: org.eclipse.equinox.internal.p2.persistence;
org.eclipse.equinox.p2.metadata.repository,
org.eclipse.equinox.p2.updatesite,
org.eclipse.equinox.p2.repository.tools,
- org.eclipse.equinox.p2.transport.ecf",
+ org.eclipse.equinox.p2.transport.ecf,
+ org.eclipse.equinox.p2.engine",
org.eclipse.equinox.internal.p2.repository.helpers;
x-friends:="org.eclipse.equinox.p2.artifact.repository,
org.eclipse.equinox.p2.exemplarysetup,
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/DownloadPauseResumeEvent.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/DownloadPauseResumeEvent.java
new file mode 100644
index 000000000..679d01601
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/DownloadPauseResumeEvent.java
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Wind River and others.
+ * 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:
+ * Wind River - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.equinox.internal.p2.repository;
+
+import java.util.EventObject;
+
+public class DownloadPauseResumeEvent extends EventObject {
+
+ private static final long serialVersionUID = 5782796765127875200L;
+ /**
+ * It means downloading job should be paused.
+ */
+ public static final int TYPE_PAUSE = 1;
+ /**
+ * It means downloading job should be resumed.
+ */
+ public static final int TYPE_RESUME = 2;
+
+ private int type;
+
+ public DownloadPauseResumeEvent(int type) {
+ super(type);
+ this.type = type;
+ }
+
+ public int getType() {
+ return type;
+ }
+
+}

Back to the top