|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.linkedin.glu.orchestration.engine.fabric.FabricServiceImpl
class FabricServiceImpl
This service will manage fabrics
Field Summary | |
---|---|
static java.lang.String |
MODULE
|
static java.lang.Object |
log
|
Property Summary | |
---|---|
ConfigurableFactory |
configurableFactory
|
FabricStorage |
fabricStorage
|
java.lang.String |
prefix
|
Timespan |
zkClientWaitForStartTimeout
|
java.lang.String |
zookeeperAgentsFabricRoot
|
Method Summary | |
---|---|
protected java.lang.String
|
computeZKAgentsFabricPath(java.lang.String agentName)
|
void
|
destroy()
|
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)
|
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 and configure the agent as well. |
java.lang.Object
|
withZkClient(java.lang.String fabricName, groovy.lang.Closure closure)
Executes the closure with the ZooKeeper connection (instance of IZKClient) associated to the fabric |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String MODULE
public static final java.lang.Object log
Property Detail |
---|
@Initializable ConfigurableFactory configurableFactory
@Initializable(required = true) FabricStorage fabricStorage
@Initializable java.lang.String prefix
@Initializable Timespan zkClientWaitForStartTimeout
@Initializable java.lang.String zookeeperAgentsFabricRoot
Method Detail |
---|
protected java.lang.String computeZKAgentsFabricPath(java.lang.String agentName)
void destroy()
Fabric findFabric(java.lang.String fabricName)
null
java.util.Map getAgents()
java.util.Collection getFabrics()
@Override boolean isConnected(java.lang.String fabricName)
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