|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zeroturnaround.liverebel.api.impl.ServerGroupOperationsImpl
public class ServerGroupOperationsImpl
Implements operations that can be performed with server groups
| Constructor Summary | |
|---|---|
ServerGroupOperationsImpl(RestConnection con,
JsonParser parser)
|
|
| Method Summary | |
|---|---|
void |
createGroup(String name,
String description,
Collection<String> serverIds)
Create server group and move given servers to that group |
void |
deleteGroup(String name)
|
List<ServerInfo> |
expandGroup(String groupName)
|
List<ServerGroup> |
getAllGroups()
|
ServerGroup |
getGroup(String groupName)
|
List<Long> |
getGroupAncestorsIds(Long groupId)
|
List<ServerGroup> |
getGroups(String name)
|
void |
moveGroupOutOfParentGroup(String childGroupName)
Move given server group out of parent server groups it may have |
void |
moveGroupToGroup(String groupName,
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)
|
void |
moveServersToGroup(String groupName,
Collection<String> serverIds)
|
void |
moveServersToGroup(String groupName,
String... serverIds)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerGroupOperationsImpl(RestConnection con,
JsonParser parser)
| Method Detail |
|---|
public void createGroup(String name,
String description,
Collection<String> serverIds)
ServerGroupOperations
createGroup in interface ServerGroupOperations
public void moveServersToGroup(String groupName,
String... serverIds)
moveServersToGroup in interface ServerGroupOperations
public void moveServersToGroup(String groupName,
Collection<String> serverIds)
moveServersToGroup in interface ServerGroupOperationspublic void moveServersOutOfParentGroups(String... serverIds)
moveServersOutOfParentGroups in interface ServerGroupOperationsServerGroupOperations.moveServersOutOfParentGroups(Collection)public void moveServersOutOfParentGroups(Collection<String> serverIds)
ServerGroupOperations
moveServersOutOfParentGroups in interface ServerGroupOperations
public void moveServersOutOfParentGroups(String groupName,
Collection<String> serverIds)
moveServersOutOfParentGroups in interface ServerGroupOperationsgroupName - - name of a server group (doesn't really matter which, until it exists - that is why it is deprecated)public List<ServerGroup> getAllGroups()
getAllGroups in interface ServerGroupOperationspublic List<ServerGroup> getGroups(String name)
getGroups in interface ServerGroupOperationspublic ServerGroup getGroup(String groupName)
getGroup in interface ServerGroupOperationsgroupName - - name of the server group
public List<Long> getGroupAncestorsIds(Long groupId)
getGroupAncestorsIds in interface ServerGroupOperationspublic List<ServerInfo> expandGroup(String groupName)
expandGroup in interface ServerGroupOperationspublic void deleteGroup(String name)
deleteGroup in interface ServerGroupOperations
public void moveGroupToGroup(String groupName,
String childGroupName)
ServerGroupOperationschildGroupName under existing serverGroup groupName
moveGroupToGroup in interface ServerGroupOperationsgroupName - - name of the parent groupchildGroupName - - name of the child grouppublic void moveGroupOutOfParentGroup(String childGroupName)
ServerGroupOperations
moveGroupOutOfParentGroup in interface ServerGroupOperations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||