/** * Creates a new processing time histogram monitor entry from the provided * entry. * * @param entry The entry to be parsed as a processing time histogram * monitor entry. It must not be {@code null}. */ public PerApplicationProcessingTimeHistogramMonitorEntry(final Entry entry) { super(entry); applicationName = entry.getAttributeValue(ATTR_APPLICATION_NAME); }
/** * Creates a new alert entry from the provided entry. * * @param entry The entry from which to create this alert entry. */ public AlertEntry(final Entry entry) { super(entry); alertGeneratorClass = entry.getAttributeValue(ATTR_ALERT_GENERATOR); alertID = entry.getAttributeValue(ATTR_ALERT_ID); alertMessage = entry.getAttributeValue(ATTR_ALERT_MESSAGE); alertType = entry.getAttributeValue(ATTR_ALERT_TYPE); alertTypeOID = entry.getAttributeValue(ATTR_ALERT_TYPE_OID); alertTime = entry.getAttributeValueAsDate(ATTR_ALERT_TIME); final String severityStr = entry.getAttributeValue(ATTR_ALERT_SEVERITY); if (severityStr == null) { alertSeverity = null; } else { alertSeverity = AlertSeverity.forName(severityStr); } }
/** * Creates a new audit data security task from the provided entry. * * @param entry The entry to use to create this audit data security task. * * @throws TaskException If the provided entry cannot be parsed as an audit * data security task entry. */ public AuditDataSecurityTask(final Entry entry) throws TaskException { super(entry); includeAuditors = Collections.unmodifiableList(StaticUtils.toNonNullList( entry.getAttributeValues(ATTR_INCLUDE_AUDITOR))); excludeAuditors = Collections.unmodifiableList(StaticUtils.toNonNullList( entry.getAttributeValues(ATTR_EXCLUDE_AUDITOR))); backendIDs = Collections.unmodifiableList(StaticUtils.toNonNullList( entry.getAttributeValues(ATTR_BACKEND_ID))); reportFilters = Collections.unmodifiableList(StaticUtils.toNonNullList( entry.getAttributeValues(ATTR_REPORT_FILTER))); outputDirectory = entry.getAttributeValue(ATTR_OUTPUT_DIRECTORY); }
baseDN = entry.getAttributeValue(ATTR_BASE_DN); if (baseDN == null)
final String requestType = entry.getAttributeValue(ATTR_OPERATION_TYPE); final String lowerRequestType = StaticUtils.toLowerCase(requestType); if (lowerRequestType.startsWith("extended") &&
taskClassName = entry.getAttributeValue(ATTR_THIRD_PARTY_TASK_CLASS); if (taskClassName == null)
/** * Creates a new enter lockdown mode task from the provided entry. * * @param entry The entry to use to create this enter lockdown mode task. * * @throws TaskException If the provided entry cannot be parsed as an enter * lockdown mode task entry. */ public EnterLockdownModeTask(final Entry entry) throws TaskException { super(entry); // Get the "reason" string if it is present. reason = entry.getAttributeValue(ATTR_ENTER_LOCKDOWN_REASON); }
softDeleteFromDN = entry.getAttributeValue(ATTR_SOFT_DELETE_FROM_DN); softDeleteTimestamp = entry.getAttributeValueAsDate(ATTR_SOFT_DELETE_TIMESTAMP); softDeleteRequesterDN = entry.getAttributeValue(ATTR_SOFT_DELETE_REQUESTER_DN); softDeleteRequesterIPAddress = entry.getAttributeValue(ATTR_SOFT_DELETE_REQUESTER_IP_ADDRESS);
taskClassName = entry.getAttributeValue(ATTR_GROOVY_SCRIPTED_TASK_CLASS); if (taskClassName == null)
/** * Creates a new leave lockdown mode task from the provided entry. * * @param entry The entry to use to create this leave lockdown mode task. * * @throws TaskException If the provided entry cannot be parsed as a leave * lockdown mode task entry. */ public LeaveLockdownModeTask(final Entry entry) throws TaskException { super(entry); // Get the "reason" string if it is present. reason = entry.getAttributeValue(ATTR_LEAVE_LOCKDOWN_REASON); }
/** * Creates a new shutdown task from the provided entry. * * @param entry The entry to use to create this shutdown task. * * @throws TaskException If the provided entry cannot be parsed as a * shutdown task entry. */ public ShutdownTask(final Entry entry) throws TaskException { super(entry); // Get the shutdown message. It may be absent. shutdownMessage = entry.getAttributeValue(ATTR_SHUTDOWN_MESSAGE); // Get the restart server flag. It may be absent. restartServer = parseBooleanValue(entry, ATTR_RESTART_SERVER, false); }
/** * Creates a new restore task from the provided entry. * * @param entry The entry to use to create this restore task. * * @throws TaskException If the provided entry cannot be parsed as a restore * task entry. */ public RestoreTask(final Entry entry) throws TaskException { super(entry); // Get the backup directory. It must be present. backupDirectory = entry.getAttributeValue(ATTR_BACKUP_DIRECTORY); if (backupDirectory == null) { throw new TaskException(ERR_RESTORE_NO_BACKUP_DIRECTORY.get( getTaskEntryDN())); } // Get the backup ID. It may be absent. backupID = entry.getAttributeValue(ATTR_BACKUP_ID); // Get the verifyOnly flag. It may be absent. verifyOnly = parseBooleanValue(entry, ATTR_VERIFY_ONLY, false); }
throws TaskException final String valueString = taskEntry.getAttributeValue(attributeName); if (valueString == null)
/** * Creates a new dump DB details task from the provided entry. * * @param entry The entry to use to create this dump DB details task. * * @throws TaskException If the provided entry cannot be parsed as a dump DB * details task entry. */ public DumpDBDetailsTask(final Entry entry) throws TaskException { super(entry); // Get the backend ID. It must be present. backendID = entry.getAttributeValue(ATTR_BACKEND_ID); if (backendID == null) { throw new TaskException(ERR_DUMP_DB_ENTRY_MISSING_BACKEND_ID.get( getTaskEntryDN(), ATTR_BACKEND_ID)); } }
alertType = entry.getAttributeValue(ATTR_ALERT_TYPE); alertMessage = entry.getAttributeValue(ATTR_ALERT_MESSAGE);
return e.getAttributeValue(ATTR_SUBSCHEMA_SUBENTRY);
backupDirectory = entry.getAttributeValue(ATTR_BACKUP_DIRECTORY); if (backupDirectory == null) backupID = entry.getAttributeValue(ATTR_BACKUP_ID); incrementalBaseID = entry.getAttributeValue(ATTR_INCREMENTAL_BASE_ID);
return e.getAttributeValue(ATTR_SUBSCHEMA_SUBENTRY);
final String idStr = entry.getAttributeValue(ATTR_CONNECTION_ID); if (idStr == null) disconnectMessage = entry.getAttributeValue(ATTR_DISCONNECT_MESSAGE);
final String idString = entry.getAttributeValue(ATTR_ID_TO_ABANDON); if (idString == null)