本文整理汇总了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
}
};
}
示例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
}
};
}
示例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";
}
};
}
示例4: transport
import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public Transport transport() {
return new Transport() {
public String name() {
return ts.name();
}
};
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例10: F3Transport
import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public F3Transport(Transport underlying) {
this.underlying = underlying;
}
示例11: underlying
import com.sun.jdi.connect.Transport; //导入依赖的package包/类
protected Transport underlying() {
return underlying;
}
示例12: transport
import com.sun.jdi.connect.Transport; //导入依赖的package包/类
public Transport transport() {
return new F3Transport(underlying().transport());
}
示例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;
}
示例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);
}