|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface SystemService
Method Summary | |
---|---|
SystemModel
|
findCurrentSystem(java.lang.String fabric)
Find the current system associated to the fabric. |
SystemModelDetails
|
findDetailsBySystemId(java.lang.String systemId)
@return |
java.util.Map
|
findSystems(java.lang.String fabric, boolean includeDetails, java.lang.Object params)
params can be what grails accept for paginating queries: |
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 |
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 |
---|
SystemModel findCurrentSystem(java.lang.String fabric)
SystemModelDetails findDetailsBySystemId(java.lang.String systemId)
null
if not found
java.util.Map findSystems(java.lang.String fabric, boolean includeDetails, java.lang.Object params)
max
,
offset
, sort
, order
java.util.Collection getMissingAgents(Fabric fabric)
java.util.Collection getMissingAgents(Fabric fabric, SystemModel system)
int getSystemsCount(java.lang.String fabric)
SystemModel parseSystemModel(java.lang.Object source)
URI
or a String
or an InputStream
boolean saveCurrentSystem(SystemModel newSystemModel)
false
if the provided system is already the current system,
true
otherwise
boolean setAsCurrentSystem(java.lang.String fabric, java.lang.String systemId)
false
if the provided system is already the current system,
true
otherwise
Groovy Documentation