Groovy Documentation

org.linkedin.glu.agent.rest.client
[Groovy] Interface AgentFactory


interface AgentFactory

Defines the agent factory

Authors:
ypujante@linkedin.com


Method Summary
java.lang.Object withRemoteAgent(java.net.URI agentURI, groovy.lang.Closure closure)

Calls the closure with an agent object pointing to the URI provided.

java.lang.Object withRemoteAgent(java.lang.String agentHost, groovy.lang.Closure closure)

Calls the closure with an agent object pointing to the host provided.

 

Method Detail

withRemoteAgent

java.lang.Object withRemoteAgent(java.net.URI agentURI, groovy.lang.Closure closure)
Calls the closure with an agent object pointing to the URI provided.


withRemoteAgent

java.lang.Object withRemoteAgent(java.lang.String agentHost, groovy.lang.Closure closure)
Calls the closure with an agent object pointing to the host provided. It uses the fabric settings to construct the proper URI


 

Groovy Documentation