Groovy Documentation

org.linkedin.glu.orchestration.engine.system
[Groovy] Class SystemServiceImpl

java.lang.Object
  org.linkedin.glu.orchestration.engine.system.SystemServiceImpl
All Implemented Interfaces:
SystemService

class SystemServiceImpl

Authors:
yan@pongasoft.com


Property Summary
AgentsService agentsService

PluginService pluginService

SystemModelRenderer systemModelRenderer

SystemStorage systemStorage

 
Method Summary
boolean deleteCurrentSystem(java.lang.String fabric)

SystemModel findCurrentSystem(java.lang.String fabric)

SystemModelDetails findDetailsBySystemId(java.lang.String systemId)

java.util.Map findSystems(java.lang.String fabric, boolean includeDetails, java.lang.Object params)

java.util.Collection getMissingAgents(Fabric fabric)

Given a fabric, returns the list of agents that are declared in the system but are not available through ZooKeeper

java.util.Collection getMissingAgents(Fabric fabric, SystemModel system)

Given a system, returns the list of agents that are declared but are not available through ZooKeeper

int getSystemsCount(java.lang.String fabric)

SystemModel parseSystemModel(java.lang.Object source)

boolean saveCurrentSystem(SystemModel newSystemModel)

Saves the new model as the current system.

boolean setAsCurrentSystem(java.lang.String fabric, java.lang.String systemId)

 
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()
 

Property Detail

agentsService

@Initializable(required = true)
AgentsService agentsService


pluginService

@Initializable(required = true)
PluginService pluginService


systemModelRenderer

@Initializable(required = true)
SystemModelRenderer systemModelRenderer


systemStorage

@Initializable(required = true)
SystemStorage systemStorage


 
Method Detail

deleteCurrentSystem

@Override
boolean deleteCurrentSystem(java.lang.String fabric)


findCurrentSystem

@Override
SystemModel findCurrentSystem(java.lang.String fabric)


findDetailsBySystemId

@Override
SystemModelDetails findDetailsBySystemId(java.lang.String systemId)


findSystems

@Override
java.util.Map findSystems(java.lang.String fabric, boolean includeDetails, java.lang.Object params)


getMissingAgents

java.util.Collection getMissingAgents(Fabric fabric)
Given a fabric, returns the list of agents that are declared in the system but are not available through ZooKeeper


getMissingAgents

java.util.Collection getMissingAgents(Fabric fabric, SystemModel system)
Given a system, returns the list of agents that are declared but are not available through ZooKeeper


getSystemsCount

@Override
int getSystemsCount(java.lang.String fabric)


parseSystemModel

@Override
SystemModel parseSystemModel(java.lang.Object source)


saveCurrentSystem

boolean saveCurrentSystem(SystemModel newSystemModel)
Saves the new model as the current system. This method has a side effect in the sense that the id of the provided system will be set (computed) if not set.
Returns:
false if the provided system is already the current system, true otherwise


setAsCurrentSystem

@Override
boolean setAsCurrentSystem(java.lang.String fabric, java.lang.String systemId)


 

Groovy Documentation