Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 04bce780dde7c33c83333b2bd437869685fa6e6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*******************************************************************************
 * Copyright (c) 2011, 2012 Wind River Systems, Inc. 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 Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.tcf.locator.interfaces.nodes;

import org.eclipse.tcf.protocol.IPeer;

/**
 * Default set of custom peer properties.
 */
public interface IPeerModelProperties {

	/**
	 * Property: The peer instance. Object stored here must be
	 *           castable to {@link IPeer}.
	 */
	public static final String PROP_INSTANCE = "instance"; //$NON-NLS-1$

	/**
	 * Property: The list of known local service names.
	 */
	public static final String PROP_LOCAL_SERVICES = "services.local"; //$NON-NLS-1$

	/**
	 * Property: The list of known remote service names.
	 */
	public static final String PROP_REMOTE_SERVICES = "services.remote"; //$NON-NLS-1$

	/**
	 * Property: The redirection proxy peer id.
	 */
	public static final String PROP_REDIRECT_PROXY = "redirect.proxy"; //$NON-NLS-1$

	/**
	 * Property: The peer state.
	 */
	public static final String PROP_STATE = "state"; //$NON-NLS-1$

	/**
	 * Peer state: Not determined yet (unknown).
	 */
	public static final int STATE_UNKNOWN = -1;

	/**
	 * Peer state: Peer is reachable, no active communication channel is open.
	 */
	public static final int STATE_REACHABLE = 0;

	/**
	 * Peer state: Peer is reachable and an active communication channel is opened.
	 */
	public static final int STATE_CONNECTED = 1;

	/**
	 * Peer state: Peer is not reachable. Connection attempt timed out.
	 */
	public static final int STATE_NOT_REACHABLE = 2;

	/**
	 * Peer state: Peer is not reachable. Connection attempt terminated with error.
	 */
	public static final int STATE_ERROR = 3;

	/**
	 * Property: The peer type.
	 */
	public static final String PROP_TYPE = "Type"; //$NON-NLS-1$

	/**
	 * Property: Reference counter tracking the active channels for this peer.
	 */
	public static String PROP_CHANNEL_REF_COUNTER = "channelRefCounter.silent"; //$NON-NLS-1$

	/**
	 * Property: The last error the scanner encounter trying to open a channel to this peer.
	 */
	public static String PROP_LAST_SCANNER_ERROR = "lastScannerError"; //$NON-NLS-1$
}

Back to the top