com.zeroturnaround.liverebel.api
Interface ServerGroupOperations

All Known Implementing Classes:
ServerGroupOperationsImpl

public interface ServerGroupOperations

Operations that can be performed with server groups are exposed through this interface

Author:
Ats Uiboupin

Method Summary
 void createGroup(String name, String description, Collection<String> serverIds)
          Create server group and move given servers to that group
 void deleteGroup(String groupName)
           
 List<ServerInfo> expandGroup(String groupName)
           
 List<ServerGroup> getAllGroups()
           
 ServerGroup getGroup(String groupName)
           
 List<Long> getGroupAncestorsIds(Long groupId)
           
 List<ServerGroup> getGroups(String groupName)
           
 void moveGroupOutOfParentGroup(String childGroupName)
          Move given server group out of parent server groups it may have
 void moveGroupToGroup(String parentGroupname, String childGroupName)
          Move existing serverGroup childGroupName under existing serverGroup groupName
 void moveServersOutOfParentGroups(Collection<String> serverIds)
          Move given servers out of potential parent groups they may have
 void moveServersOutOfParentGroups(String... serverIds)
           
 void moveServersOutOfParentGroups(String groupName, Collection<String> serverIds)
          Deprecated. - this method must be used when Command Center has older version than 2.6.1 - presence of parent group was checked in version 2.6
 void moveServersToGroup(String groupName, Collection<String> serverIds)
           
 void moveServersToGroup(String groupName, String... serverIds)
           
 

Method Detail

createGroup

void createGroup(String name,
                 String description,
                 Collection<String> serverIds)
Create server group and move given servers to that group


moveServersToGroup

void moveServersToGroup(String groupName,
                        String... serverIds)

moveServersToGroup

void moveServersToGroup(String groupName,
                        Collection<String> serverIds)

moveGroupToGroup

void moveGroupToGroup(String parentGroupname,
                      String childGroupName)
Move existing serverGroup childGroupName under existing serverGroup groupName

Parameters:
parentGroupname - - name of the parent group
childGroupName - - name of the child group

moveServersOutOfParentGroups

void moveServersOutOfParentGroups(String... serverIds)
See Also:
moveServersOutOfParentGroups(Collection)

moveServersOutOfParentGroups

void moveServersOutOfParentGroups(Collection<String> serverIds)
Move given servers out of potential parent groups they may have

Parameters:
serverIds -

moveServersOutOfParentGroups

void moveServersOutOfParentGroups(String groupName,
                                  Collection<String> serverIds)
Deprecated. - this method must be used when Command Center has older version than 2.6.1 - presence of parent group was checked in version 2.6

Parameters:
groupName - - name of a server group (doesn't really matter which, until it exists - that is why it is deprecated)
serverIds -

moveGroupOutOfParentGroup

void moveGroupOutOfParentGroup(String childGroupName)
Move given server group out of parent server groups it may have

Parameters:
childGroupName -

getAllGroups

List<ServerGroup> getAllGroups()
Returns:
all server groups + ungrouped servers "virtual server group"

getGroups

List<ServerGroup> getGroups(String groupName)
Parameters:
groupName -
Returns:
descendant groups under given group (includes group itself)

getGroup

ServerGroup getGroup(String groupName)
Parameters:
groupName - - name of the server group
Returns:
information about server group

getGroupAncestorsIds

List<Long> getGroupAncestorsIds(Long groupId)
Parameters:
groupId -
Returns:
list containing ancestors of given server group (closest ancestors first, topmost is last)

expandGroup

List<ServerInfo> expandGroup(String groupName)

deleteGroup

void deleteGroup(String groupName)


Copyright © 2013. All Rights Reserved.