/** * Get common storage fields. * Should be overloaded if additional fields need to be get. * * @param props properties * @throws IOException on error */ protected void setFieldsFromProperties( Properties props, StorageDirectory sd) throws IOException { if (props == null) { return; } setLayoutVersion(props, sd); setNamespaceID(props, sd); setcTime(props, sd); setClusterId(props, layoutVersion, sd); checkStorageType(props, sd); }
/** * Get common storage fields. * Should be overloaded if additional fields need to be get. * * @param props properties * @throws IOException on error */ protected void setFieldsFromProperties( Properties props, StorageDirectory sd) throws IOException { setLayoutVersion(props, sd); setNamespaceID(props, sd); setcTime(props, sd); setClusterId(props, layoutVersion, sd); checkStorageType(props, sd); }
/** * Get common storage fields. * Should be overloaded if additional fields need to be get. * * @param props properties * @throws IOException on error */ protected void setFieldsFromProperties( Properties props, StorageDirectory sd) throws IOException { setLayoutVersion(props, sd); setNamespaceID(props, sd); setcTime(props, sd); setClusterId(props, layoutVersion, sd); checkStorageType(props, sd); }