本文整理了Java中hudson.remoting.Channel.export()
方法的一些代码示例,展示了Channel.export()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Channel.export()
方法的具体详情如下:
包路径:hudson.remoting.Channel
类名称:Channel
方法名:export
暂无
代码示例来源:origin: jenkinsci/jenkins
public Remote(ProcessTree proxy, Channel ch, boolean vetoersExist) {
super(vetoersExist);
this.proxy = ch.export(IProcessTree.class,proxy);
for (Entry<Integer,OSProcess> e : proxy.processes.entrySet())
processes.put(e.getKey(),new RemoteProcess(e.getValue(),ch));
}
代码示例来源:origin: jenkinsci/jenkins
@Deprecated
public Remote(ProcessTree proxy, Channel ch) {
this.proxy = ch.export(IProcessTree.class,proxy);
for (Entry<Integer,OSProcess> e : proxy.processes.entrySet())
processes.put(e.getKey(),new RemoteProcess(e.getValue(),ch));
}
代码示例来源:origin: jenkinsci/jenkins
RemoteProcess(OSProcess proxy, Channel ch) {
super(proxy.getPid());
this.proxy = ch.export(IOSProcess.class,proxy);
}
代码示例来源:origin: jenkinsci/jenkins
private Object writeReplace() {
return Channel.current().export(CliEntryPoint.class,this);
}
代码示例来源:origin: jenkinsci/jenkins
return channel.export(RemoteProcess.class,new RemoteProcess() {
public int join() throws InterruptedException, IOException {
try {
代码示例来源:origin: hudson/hudson-2.x
/**
* {@inheritDoc}
*/
public <T> T export(Class<T> type, T instance) {
return export(type, instance, true);
}
代码示例来源:origin: org.hudsonci.plugins/subversion
/**
* When sent to the remote node, send a proxy.
*/
private Object writeReplace() {
return Channel.current().export(RemotableSVNAuthenticationProvider.class, this);
}
}
代码示例来源:origin: org.jvnet.hudson.main/maven3-plugin
/**
* Converts to a proxy for use on remote node.
*/
private Object writeReplace() {
return Channel.current().export(Invoker.class, this);
}
}
代码示例来源:origin: hudson/hudson-2.x
/**
* When sent to the remote node, send a proxy.
*/
private Object writeReplace() {
return Channel.current().export(Forwarder.class, this);
}
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Exports and just returns the object ID, instead of obtaining the proxy.
*/
static int exportId(ClassLoader cl, Channel local) {
return local.export(new ClassLoaderProxy(cl,local), false);
}
代码示例来源:origin: jenkinsci/subversion-plugin
/**
* When sent to the remote node, send a proxy.
*/
private Object writeReplace() {
return Channel.current().export(SVNAuthenticationBuilderProvider.class, this);
}
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
/**
* When sent to the remote node, send a proxy.
*/
private Object writeReplace() {
return Channel.current().export(Forwarder.class, this);
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-plugin-utils
/**
* Executed on remote, returns a proxy.
*/
private Object writeReplace() {
return Channel.current().export(Acceptor.class, this);
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public Remote(ProcessTree proxy, Channel ch) {
this.proxy = ch.export(IProcessTree.class,proxy);
for (Entry<Integer,OSProcess> e : proxy.processes.entrySet())
processes.put(e.getKey(),new RemoteProcess(e.getValue(),ch));
}
代码示例来源:origin: org.jvnet.hudson.plugins/subversion
/**
* When sent to the remote node, send a proxy.
*/
private Object writeReplace() {
if (IS_SAVING.get() != null) {
return this;
}
Channel c = Channel.current();
return c == null ? this : c.export(RemotableSVNAuthenticationProvider.class, this);
}
代码示例来源:origin: org.jenkins-ci.plugins/ssh-agent
/**
* {@inheritDoc}
*/
public RemoteAgent call() throws Throwable {
final MinaRemoteAgent instance = new MinaRemoteAgent(listener);
final Channel channel = Channel.current();
return channel == null ? instance : channel.export(RemoteAgent.class, instance);
}
代码示例来源:origin: jenkinsci/git-client-plugin
/**
* When sent to remote, switch to the proxy.
*
* @return a {@link java.lang.Object} object.
* @throws java.io.ObjectStreamException if current channel is null
*/
protected Object writeReplace() throws java.io.ObjectStreamException {
Channel currentChannel = Channel.current();
if (currentChannel == null)
throw new java.io.WriteAbortedException("No current channel", new java.lang.NullPointerException());
return remoteProxyFor(currentChannel.export(GitClient.class, this));
}
代码示例来源:origin: org.jenkins-ci.plugins/ivy
private Object writeReplace() {
// when called from remote, methods need to be executed in the
// proper Executor's context.
return Channel.current().export(IvyBuildProxy2.class, Executor.currentExecutor().newImpersonatingProxy(IvyBuildProxy2.class, this));
}
}
代码示例来源:origin: org.jvnet.hudson.main/maven-plugin
private Object writeReplace() {
// when called from remote, methods need to be executed in the proper Executor's context.
return Channel.current().export(MavenBuildProxy2.class,
Executor.currentExecutor().newImpersonatingProxy(MavenBuildProxy2.class,this));
}
}
代码示例来源:origin: jenkinsci/maven-plugin
private Object writeReplace() {
// when called from remote, methods need to be executed in the proper Executor's context.
return Channel.current().export(MavenBuildProxy2.class,
Executor.currentExecutor().newImpersonatingProxy(MavenBuildProxy2.class,this));
}
内容来源于网络,如有侵权,请联系作者删除!