|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface FabricService
This service will manage fabrics
Method Summary | |
---|---|
boolean
|
clearAgentFabric(java.lang.String agentName, java.lang.String fabricName)
Clears the fabric for the given agent (from ZooKeeper) |
void
|
configureAgent(java.net.InetAddress host, java.lang.String fabricName)
Configures the agent on the given host (builds a default config url) |
void
|
configureAgent(java.net.URI agentConfigURI, java.lang.String fabricName)
Configures the agent given its configuration URI |
Fabric
|
findFabric(java.lang.String fabricName)
@return the fabric or |
java.util.Map
|
getAgents()
@return a map where the key is the agent name and the value is the fabric name the agent belongs (as defined in ZooKeeper) |
java.util.Collection
|
getFabrics()
@return a collection of all the fabrics known by the service (cached list) |
boolean
|
isConnected(java.lang.String fabricName)
@return |
java.util.Collection
|
listFabricNames()
@return the list of fabric names |
void
|
resetCache()
resets the fabrics cache which will force the connection to ZooKeeper to be dropped. |
void
|
setAgentFabric(java.lang.String agentName, java.lang.String fabricName)
Sets the fabric for the given agent: write it in ZooKeeper |
java.lang.Object
|
withZkClient(java.lang.String fabricName, groovy.lang.Closure closure)
Executes the closure with the ZooKeeper connection (instance of org.linkedin.zookeeper.client.IZKClient) associated to the fabric |
Method Detail |
---|
boolean clearAgentFabric(java.lang.String agentName, java.lang.String fabricName)
true
if cleared, false
if already cleared
void configureAgent(java.net.InetAddress host, java.lang.String fabricName)
void configureAgent(java.net.URI agentConfigURI, java.lang.String fabricName)
Fabric findFabric(java.lang.String fabricName)
null
java.util.Map getAgents()
java.util.Collection getFabrics()
boolean isConnected(java.lang.String fabricName)
true
if the fabric is connected
java.util.Collection listFabricNames()
void resetCache()
void setAgentFabric(java.lang.String agentName, java.lang.String fabricName)
java.lang.Object withZkClient(java.lang.String fabricName, groovy.lang.Closure closure)
Groovy Documentation