当前位置: 首页>>代码示例>>Java>>正文


Java Transport类代码示例

本文整理汇总了Java中com.sun.jdi.connect.Transport的典型用法代码示例。如果您正苦于以下问题:Java Transport类的具体用法?Java Transport怎么用?Java Transport使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Transport类属于com.sun.jdi.connect包,在下文中一共展示了Transport类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SocketListeningConnector

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public SocketListeningConnector() {
    super(new SocketTransportService());

    addIntegerArgument(
        ARG_PORT,
        getString("socket_listening.port.label"),
        getString("socket_listening.port"),
        "",
        false,
        0, Integer.MAX_VALUE);

    addStringArgument(
        ARG_LOCALADDR,
        getString("socket_listening.localaddr.label"),
        getString("socket_listening.localaddr"),
        "",                                         // default is wildcard
        false);

    transport = new Transport() {
        public String name() {
            return "dt_socket";     // for compatibility reasons
        }
    };
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:25,代码来源:SocketListeningConnector.java

示例2: SocketAttachingConnector

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public SocketAttachingConnector() {
    super(new SocketTransportService());

    String defaultHostName = "localhost";

    addStringArgument(
        ARG_HOST,
        getString("socket_attaching.host.label"),
        getString("socket_attaching.host"),
        defaultHostName,
        false);

    addIntegerArgument(
        ARG_PORT,
        getString("socket_attaching.port.label"),
        getString("socket_attaching.port"),
        "",
        true,
        0, Integer.MAX_VALUE);

    transport = new Transport() {
        public String name() {
            return "dt_socket";     // for compatibility reasons
        }
    };
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:27,代码来源:SocketAttachingConnector.java

示例3: ProcessAttachingConnector

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public ProcessAttachingConnector() {
    addStringArgument(
        ARG_PID,
        getString("process_attaching.pid.label"),
        getString("process_attaching.pid"),
        "",
        true);

    addIntegerArgument(
        ARG_TIMEOUT,
        getString("generic_attaching.timeout.label"),       // use generic keys to keep
        getString("generic_attaching.timeout"),             // resource bundle small
        "",
        false,
        0, Integer.MAX_VALUE);

    transport = new Transport() {
        public String name() {
            return "local";
        }
    };
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:23,代码来源:ProcessAttachingConnector.java

示例4: transport

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public Transport transport() {
    return new Transport() {
        public String name() {
            return ts.name();
        }
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:8,代码来源:SimpleLaunchingConnector.java

示例5: GenericListeningConnector

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
/**
 * Initialize a new instance of this connector. The connector
 * encapsulates a transport service, has a "timeout" connector argument,
 * and optionally an "address" connector argument.
 */
private GenericListeningConnector(TransportService ts,
                                  boolean addAddressArgument)
{
    transportService = ts;
    transport = new Transport() {
            public String name() {
                return transportService.name();
            }
        };

    if (addAddressArgument) {
        addStringArgument(
            ARG_ADDRESS,
            getString("generic_listening.address.label"),
            getString("generic_listening.address"),
            "",
            false);
    }

    addIntegerArgument(
            ARG_TIMEOUT,
            getString("generic_listening.timeout.label"),
            getString("generic_listening.timeout"),
            "",
            false,
            0, Integer.MAX_VALUE);

    listenMap = new HashMap<Map<String, ? extends Connector.Argument>, TransportService.ListenKey>(10);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:35,代码来源:GenericListeningConnector.java

示例6: transport

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public Transport transport() {
    if (transport == null) {
        return new Transport() {
            public String name() {
                return "local";
            }
        };
    }
    return transport;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:11,代码来源:ProcessAttachingConnector.java

示例7: GenericAttachingConnector

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
private GenericAttachingConnector(TransportService ts,
                                  boolean addAddressArgument)
{
    transportService = ts;
    transport = new Transport() {
        public String name() {
            // delegate name to the transport service
            return transportService.name();
        }
    };

    if (addAddressArgument) {
        addStringArgument(
            ARG_ADDRESS,
            getString("generic_attaching.address.label"),
            getString("generic_attaching.address"),
            "",
            true);
    }

    addIntegerArgument(
            ARG_TIMEOUT,
            getString("generic_attaching.timeout.label"),
            getString("generic_attaching.timeout"),
            "",
            false,
            0, Integer.MAX_VALUE);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:29,代码来源:GenericAttachingConnector.java

示例8: internalSetTransport

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
private void internalSetTransport(Transport transport) {
	try {
		Method setter = ConnectorImpl.class.getDeclaredMethod("setTransport", Transport.class);
		setter.setAccessible(true);
		setter.invoke(this, transport);
	} catch (Exception ex) {
		// probably should log this
		ex.printStackTrace();
	}
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:11,代码来源:SocketListeningMultiConnectorImpl.java

示例9: transport

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public Transport transport() {
    return transport;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:4,代码来源:RawCommandLineLauncher.java

示例10: F3Transport

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public F3Transport(Transport underlying) {
    this.underlying = underlying;
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:4,代码来源:F3Transport.java

示例11: underlying

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
protected Transport underlying() {
    return underlying;
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:4,代码来源:F3Transport.java

示例12: transport

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public Transport transport() {
    return new F3Transport(underlying().transport());
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:4,代码来源:F3Connector.java

示例13: TransportServiceWrapper

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
/**
 * Applicable if IDEA is run on JDK 1.4.2.x only!
 * @param transportObj
 */
private TransportServiceWrapper(Transport transportObj) {
  myDelegateClass = transportObj.getClass();
  myDelegateObject = transportObj;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:TransportServiceWrapper.java

示例14: getTransportService

import com.sun.jdi.connect.Transport; //导入依赖的package包/类
/**
 * Applicable if IDEA is run on JDK 1.4.2.x only!
 * @param transportObject
 * @return transport service wrapper
 */
public static TransportServiceWrapper getTransportService(Transport transportObject){
  return new TransportServiceWrapper(transportObject);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:TransportServiceWrapper.java


注:本文中的com.sun.jdi.connect.Transport类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。