KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdi > connect > spi > TransportService


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package com.sun.jdi.connect.spi;
12
13 import java.io.IOException JavaDoc;
14
15
16 public abstract class TransportService {
17     public abstract static class Capabilities {
18         public abstract boolean supportsAcceptTimeout();
19         public abstract boolean supportsAttachTimeout();
20         public abstract boolean supportsHandshakeTimeout();
21         public abstract boolean supportsMultipleConnections();
22     }
23     public abstract static class ListenKey {
24         public abstract String JavaDoc address();
25     }
26     public abstract Connection accept(ListenKey listenKey, long attachTimeout, long handshakeTimeout) throws IOException JavaDoc;
27     public abstract Connection attach(String JavaDoc address, long attachTimeout, long handshakeTimeout) throws IOException JavaDoc;
28     public abstract TransportService.Capabilities capabilities();
29     public abstract String JavaDoc description();
30     public abstract String JavaDoc name();
31     public abstract TransportService.ListenKey startListening() throws IOException JavaDoc;
32     public abstract TransportService.ListenKey startListening(String JavaDoc arg1) throws IOException JavaDoc;
33     public abstract void stopListening(TransportService.ListenKey arg1) throws IOException JavaDoc;
34 }
35
Popular Tags