| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2008, 2010 IBM Corporation and others. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
* |
| 11 |
* Contributors: |
| 12 |
* IBM Corporation - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
package org.eclipse.equinox.internal.p2.operations; |
| 15 |
|
| 16 |
/** |
| 17 |
* IStatusCodes defines codes for common status conditions when |
| 18 |
* performing provisioning operations. |
| 19 |
* |
| 20 |
* This interface is not intended to be implemented |
| 21 |
* |
| 22 |
* @since 2.0 |
| 23 |
* @noimplement This interface is not intended to be implemented by clients. |
| 24 |
*/ |
| 25 |
public interface IStatusCodes { |
| 26 |
|
| 27 |
//Operation status codes [10000-10999] - note these cannot conflict with the core codes |
| 28 |
//in ProvisionException or we'll see strange results. |
| 29 |
|
| 30 |
public static final int NOTHING_TO_UPDATE = 10000; |
| 31 |
|
| 32 |
// Status codes associated with profile change request or plans being altered from the original intent |
| 33 |
public static final int PROFILE_CHANGE_ALTERED = 10001; |
| 34 |
public static final int IU_REQUEST_ALTERED = 10002; |
| 35 |
public static final int ALTERED_IMPLIED_UPDATE = 10003; |
| 36 |
public static final int ALTERED_IGNORED_IMPLIED_DOWNGRADE = 10004; |
| 37 |
public static final int ALTERED_IGNORED_ALREADY_INSTALLED = 10005; |
| 38 |
public static final int ALTERED_PARTIAL_INSTALL = 10006; |
| 39 |
public static final int ALTERED_PARTIAL_UNINSTALL = 10007; |
| 40 |
public static final int ALTERED_SIDE_EFFECT_UPDATE = 10008; |
| 41 |
public static final int ALTERED_SIDE_EFFECT_REMOVE = 10009; |
| 42 |
public static final int ALTERED_SIDE_EFFECT_INSTALL = 10010; |
| 43 |
public static final int ALTERED_IGNORED_INSTALL_REQUEST = 10011; |
| 44 |
public static final int ALTERED_IGNORED_UNINSTALL_REQUEST = 10012; |
| 45 |
public static final int ALTERED_IGNORED_IMPLIED_UPDATE = 10013; |
| 46 |
|
| 47 |
// Status codes associated with inability to perform an operation |
| 48 |
public static final int UNEXPECTED_NOTHING_TO_DO = 10050; |
| 49 |
public static final int EXPECTED_NOTHING_TO_DO = 10051; |
| 50 |
public static final int OPERATION_ALREADY_IN_PROGRESS = 10052; |
| 51 |
public static final int MISSING_REQUIREMENTS = 10053; |
| 52 |
|
| 53 |
// Status codes associated with repositories |
| 54 |
public static final int INVALID_REPOSITORY_LOCATION = 10100; |
| 55 |
} |