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


Java GoApplicationAccessor类代码示例

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


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

示例1: settingsParsing

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Test
public void settingsParsing() throws Exception {
	ArtifactoryScmPlugin plugin = new ArtifactoryScmPlugin();
	plugin.initializeGoApplicationAccessor(new GoApplicationAccessor(){
		
		@Override
		public GoApiResponse submit(GoApiRequest request)
		{
			String json = "{"
					+ "\"connectTimeout\": \"1\","
					+ "\"socketTimeout\": \"2\","
					+ "\"connectionRequestTimeout\": \"3\","
					+ "\"proxyUrl\": \"http://proxy.example.com:1234\","
					+ "\"connPoolSize\": \"3\""
					+ "}";
			DefaultGoApiResponse response = new DefaultGoApiResponse(200);
			response.setResponseBody(json);
			return response;
		}
	});

	// just make sure there is no exception
}
 
开发者ID:cnenning,项目名称:go-artifactory-scm-plugin,代码行数:24,代码来源:IntegrationTests.java

示例2: setUp

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Before
public void setUp() throws IOException {
    plugin = new YamlConfigPlugin();
    goAccessor = mock(GoApplicationAccessor.class);
    plugin.initializeGoApplicationAccessor(goAccessor);
    GoApiResponse settingsResponse = DefaultGoApiResponse.success("{}");
    when(goAccessor.submit(any(GoApiRequest.class))).thenReturn(settingsResponse);
    parser = new JsonParser();
}
 
开发者ID:tomzo,项目名称:gocd-yaml-config-plugin,代码行数:10,代码来源:YamlConfigPluginIntegrationTest.java

示例3: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor goApplicationAccessor) {
	logger.debug("initializeGoApplicationAccessor()");

	GoApiRequest request = new DefaultGoApiRequest(REQUEST_SETTINGS_GET_THEM, GO_API_VERSION, pluginIdentifier());
	GoApiResponse response = goApplicationAccessor.submit(request);

	String json = response.responseBody();

	httpClient = createHttpClient(json);
}
 
开发者ID:cnenning,项目名称:go-artifactory-scm-plugin,代码行数:12,代码来源:AbstractArtifactoryPlugin.java

示例4: createPluginScm

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
protected ArtifactoryScmPlugin createPluginScm() {
	ArtifactoryScmPlugin plugin = new ArtifactoryScmPlugin();
	plugin.initializeGoApplicationAccessor(new GoApplicationAccessor(){
		
		@Override
		public GoApiResponse submit(GoApiRequest request)
		{
			return new DefaultGoApiResponse(200);
		}
	});
	return plugin;
}
 
开发者ID:cnenning,项目名称:go-artifactory-scm-plugin,代码行数:13,代码来源:IntegrationTests.java

示例5: createPluginPkg

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
protected ArtifactoryPkgPlugin createPluginPkg() {
	ArtifactoryPkgPlugin plugin = new ArtifactoryPkgPlugin();
	plugin.initializeGoApplicationAccessor(new GoApplicationAccessor(){
		
		@Override
		public GoApiResponse submit(GoApiRequest request)
		{
			return new DefaultGoApiResponse(200);
		}
	});
	return plugin;
}
 
开发者ID:cnenning,项目名称:go-artifactory-scm-plugin,代码行数:13,代码来源:IntegrationTests.java

示例6: PluginRequest

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
public PluginRequest(GoApplicationAccessor accessor) {
    this.accessor = accessor;
}
 
开发者ID:gocd,项目名称:kubernetes-elastic-agents,代码行数:4,代码来源:PluginRequest.java

示例7: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor accessor) {
    pluginRequest = new PluginRequest(accessor);
    agentInstances = new KubernetesAgentInstances();
}
 
开发者ID:gocd,项目名称:kubernetes-elastic-agents,代码行数:6,代码来源:KubernetesPlugin.java

示例8: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor accessor) {
    this.accessor = accessor;
}
 
开发者ID:gocd-contrib,项目名称:google-oauth-authorization-plugin,代码行数:5,代码来源:GooglePlugin.java

示例9: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor accessor) {
    pluginRequest = new PluginRequest(accessor);
    agentInstances = new MarathonAgentInstances(marathonClientFactory);
}
 
开发者ID:pikselpalette,项目名称:gocd-elastic-agent-marathon,代码行数:6,代码来源:MarathonPlugin.java

示例10: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor goApplicationAccessor) {
    this.goApplicationAccessor = goApplicationAccessor;
}
 
开发者ID:tomzo,项目名称:gocd-yaml-config-plugin,代码行数:5,代码来源:YamlConfigPlugin.java

示例11: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor accessor) {
    pluginRequest = new PluginRequest(accessor);
    agentInstances = new DockerContainers();
}
 
开发者ID:gocd-contrib,项目名称:docker-elastic-agents,代码行数:6,代码来源:DockerPlugin.java

示例12: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor accessor) {
    this.accessor = accessor;
    this.pluginRequest = new PluginRequest(accessor);
}
 
开发者ID:gocd-contrib,项目名称:notification-skeleton-plugin,代码行数:6,代码来源:ExamplePlugin.java

示例13: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor accessor) {
    pluginRequest = new PluginRequest(accessor);
    agentInstances = new DockerServices();
}
 
开发者ID:gocd-contrib,项目名称:docker-swarm-elastic-agents,代码行数:6,代码来源:DockerPlugin.java

示例14: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor accessor) {
    pluginRequest = new PluginRequest(accessor);
    agentInstances = new OpenStackInstances();
}
 
开发者ID:gocd-contrib,项目名称:openstack-elastic-agent,代码行数:6,代码来源:OpenStackPlugin.java

示例15: initializeGoApplicationAccessor

import com.thoughtworks.go.plugin.api.GoApplicationAccessor; //导入依赖的package包/类
@Override
public void initializeGoApplicationAccessor(GoApplicationAccessor accessor) {
    pluginRequest = new PluginRequest(accessor);
    agentInstances = new ExampleAgentInstances();
}
 
开发者ID:gocd-contrib,项目名称:elastic-agent-skeleton-plugin,代码行数:6,代码来源:ExamplePlugin.java


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