| | |
| | | import org.opends.guitools.controlpanel.datamodel.BackendDescriptor; |
| | | import org.opends.guitools.controlpanel.datamodel.BackupDescriptor; |
| | | import org.opends.guitools.controlpanel.datamodel.ControlPanelInfo; |
| | | import org.opends.guitools.controlpanel.datamodel.ScheduleType; |
| | | import org.opends.guitools.controlpanel.datamodel.ServerDescriptor; |
| | | import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent; |
| | | import org.opends.guitools.controlpanel.task.Task; |
| | | import org.opends.guitools.controlpanel.ui.components.ScheduleSummaryPanel; |
| | | import org.opends.guitools.controlpanel.util.BackgroundTask; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.opends.messages.Message; |
| | |
| | | |
| | | private boolean backupIDInitialized = false; |
| | | |
| | | private ScheduleSummaryPanel schedulePanel; |
| | | |
| | | private static final Logger LOG = |
| | | Logger.getLogger(BackupPanel.class.getName()); |
| | | |
| | |
| | | INFO_CTRL_PANEL_BACKUP_OPTIONS_LABEL.get()); |
| | | add(lBackupOptions, gbc); |
| | | |
| | | compressData = Utilities.createCheckBox( |
| | | INFO_CTRL_PANEL_COMPRESS_DATA_LABEL.get()); |
| | | compressData.setSelected(false); |
| | | schedulePanel = new ScheduleSummaryPanel( |
| | | INFO_CTRL_PANEL_BACKUP_TASK_NAME.get().toString()); |
| | | schedulePanel.setSchedule(ScheduleType.createLaunchNow()); |
| | | |
| | | gbc.insets.left = 10; |
| | | gbc.gridx = 1; |
| | | gbc.gridwidth = 2; |
| | | add(schedulePanel, gbc); |
| | | |
| | | compressData = Utilities.createCheckBox( |
| | | INFO_CTRL_PANEL_COMPRESS_DATA_LABEL.get()); |
| | | compressData.setSelected(false); |
| | | |
| | | gbc.gridy ++; |
| | | gbc.insets.top = 5; |
| | | add(compressData, gbc); |
| | | |
| | | encryptData = Utilities.createCheckBox( |
| | | INFO_CTRL_PANEL_ENCRYPT_DATA_LABEL.get()); |
| | | |
| | | gbc.gridy ++; |
| | | gbc.insets.top = 5; |
| | | add(encryptData, gbc); |
| | | encryptData.setSelected(false); |
| | | generateMessageDigest = Utilities.createCheckBox( |
| | |
| | | setPrimaryValid(lPath); |
| | | setPrimaryValid(lAvailableBackups); |
| | | setPrimaryValid(lParentID); |
| | | setPrimaryValid(lBackupOptions); |
| | | backupIDInitialized = false; |
| | | |
| | | final LinkedHashSet<Message> errors = new LinkedHashSet<Message>(); |
| | |
| | | } |
| | | } |
| | | |
| | | addScheduleErrors(getSchedule(), errors, lBackupOptions); |
| | | |
| | | // Check that there is not a backup with the provided ID |
| | | final JComponent[] components = |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | private ScheduleType getSchedule() |
| | | { |
| | | return schedulePanel.getSchedule(); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | |
| | | setPrimaryValid(lBackend); |
| | | setPrimaryValid(lPath); |
| | | setPrimaryValid(lAvailableBackups); |
| | | setPrimaryValid(lBackupOptions); |
| | | |
| | | super.cancelClicked(); |
| | | } |
| | |
| | | |
| | | args.addAll(getConnectionCommandLineArguments()); |
| | | |
| | | args.addAll(getScheduleArgs(getSchedule())); |
| | | |
| | | if (isServerRunning()) |
| | | { |
| | | args.addAll(getConfigCommandLineArguments()); |