| | |
| | | import org.opends.admin.ads.ADSContextException; |
| | | import org.opends.admin.ads.ADSContext.ServerGroupProperty; |
| | | import org.opends.admin.ads.ADSContext.ServerProperty; |
| | | import org.opends.admin.ads.ADSContextException.ErrorType; |
| | | import org.opends.server.admin.client.cli.DsFrameworkCliReturnCode.ReturnCode; |
| | | import org.opends.server.util.args.ArgumentException; |
| | | import org.opends.server.util.args.BooleanArgument; |
| | |
| | | } |
| | | if ( !found ) |
| | | { |
| | | return ReturnCode.SERVER_NOT_REGISTERED; |
| | | throw new ADSContextException (ErrorType.NOT_YET_REGISTERED) ; |
| | | } |
| | | |
| | | // Add the server inside the group |
| | |
| | | { |
| | | } |
| | | |
| | | return ReturnCode.SUCCESSFUL; |
| | | returnCode = ReturnCode.SUCCESSFUL; |
| | | } |
| | | // ----------------------- |
| | | // list-membership subcommand |
| | |
| | | * If there is a problem with any of the parameters used |
| | | * to create this argument. |
| | | */ |
| | | private ReturnCode removeServerFromGroup(ADSContext adsCtx, String groupId, |
| | | static ReturnCode removeServerFromGroup(ADSContext adsCtx, String groupId, |
| | | String serverId) |
| | | throws ADSContextException |
| | | { |