01: /*******************************************************************************
02: * Copyright (c) 2004, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package com.sun.jdi.connect.spi;
11:
12: import java.io.IOException;
13:
14: public abstract class TransportService {
15: public abstract static class Capabilities {
16: public abstract boolean supportsAcceptTimeout();
17:
18: public abstract boolean supportsAttachTimeout();
19:
20: public abstract boolean supportsHandshakeTimeout();
21:
22: public abstract boolean supportsMultipleConnections();
23: }
24:
25: public abstract static class ListenKey {
26: public abstract String address();
27: }
28:
29: public abstract Connection accept(ListenKey listenKey,
30: long attachTimeout, long handshakeTimeout)
31: throws IOException;
32:
33: public abstract Connection attach(String address,
34: long attachTimeout, long handshakeTimeout)
35: throws IOException;
36:
37: public abstract TransportService.Capabilities capabilities();
38:
39: public abstract String description();
40:
41: public abstract String name();
42:
43: public abstract TransportService.ListenKey startListening()
44: throws IOException;
45:
46: public abstract TransportService.ListenKey startListening(
47: String arg1) throws IOException;
48:
49: public abstract void stopListening(TransportService.ListenKey arg1)
50: throws IOException;
51: }
|