Skip to main content
summaryrefslogtreecommitdiffstats
blob: 780d186b0a29be429c7d19daafa82821b1483d78 (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
/*******************************************************************************
 * Copyright (c) 2003, 2005 IBM Corporation 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:
 *     IBM Corporation - Initial API and implementation
 *******************************************************************************/
package org.eclipse.wst.server.core.internal;
/**
 * An interface to a TCP/IP monitor.
 * 
 * <p>This interface is not intended to be implemented by clients.</p>
 */
public interface IServerMonitor {
	/**
	 * Returns the id of the monitor.
	 *
	 * @return java.lang.String
	 */
	public String getId();

	/**
	 * Returns the label (name) of this monitor.
	 * 
	 * @return java.lang.String
	 */
	public String getName();

	/**
	 * Returns the description of this monitor.
	 * 
	 * @return java.lang.String
	 */
	public String getDescription();

	/**
	 * Start monitoring the given port, and return the port number to
	 * tunnel requests through. The monitorPort is the new port to use, or
	 * -1 to pick a random port.
	 * 
	 * @param port
	 * @return
	 */
	//public int startMonitoring(IServer server, ServerPort port, int monitorPort) throws CoreException;

	/**
	 * Stop monitoring the given port.
	 * 
	 * @param port
	 */
	//public void stopMonitoring(IServer server, ServerPort port);
}

Back to the top