Groovy Documentation

org.linkedin.glu.orchestration.engine.system
[Groovy] Interface SystemService


interface SystemService

Authors:
yan@pongasoft.com


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

Deletes the current system associated to a fabric

SystemModel findCurrentSystem(java.lang.String fabric)

Find the current system associated to the fabric.

SystemModelDetails findDetailsBySystemId(java.lang.String systemId)

@return null if not found

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

params can be what grails accept for paginating queries: max, offset, sort, order

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)

@return the number of systems in the fabric

SystemModel parseSystemModel(java.lang.Object source)

The source can be a URI or a String or an InputStream

boolean saveCurrentSystem(SystemModel newSystemModel)

Saves the new model as the current system.

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

Sets the system provided its id as the current system

 

Method Detail

deleteCurrentSystem

boolean deleteCurrentSystem(java.lang.String fabric)
Deletes the current system associated to a fabric


findCurrentSystem

SystemModel findCurrentSystem(java.lang.String fabric)
Find the current system associated to the fabric.
Parameters:
fabric
Returns:


findDetailsBySystemId

SystemModelDetails findDetailsBySystemId(java.lang.String systemId)
Returns:
null if not found


findSystems

java.util.Map findSystems(java.lang.String fabric, boolean includeDetails, java.lang.Object params)
params can be what grails accept for paginating queries: max, offset, sort, order
Returns:
a map with systems: the list of systems (SystemModelDetails) and count: the total number of systems


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

int getSystemsCount(java.lang.String fabric)
Returns:
the number of systems in the fabric


parseSystemModel

SystemModel parseSystemModel(java.lang.Object source)
The source can be a URI or a String or an InputStream
Returns:
the model


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

boolean setAsCurrentSystem(java.lang.String fabric, java.lang.String systemId)
Sets the system provided its id as the current system
Returns:
false if the provided system is already the current system, true otherwise


 

Groovy Documentation