use of com.emc.storageos.db.client.model.GlobalLock in project coprhd-controller by CoprHD.
the class GlobalLockType method deserialize.
public GlobalLock deserialize(Row<String, String> row) {
if (row == null) {
return null;
}
ColumnList<String> columnList = row.getColumns();
if (columnList == null || columnList.isEmpty()) {
return null;
}
Column<String> mode = columnList.getColumnByName(GlobalLock.GL_MODE_COLUMN);
Column<String> owner = columnList.getColumnByName(GlobalLock.GL_OWNER_COLUMN);
Column<String> expiration = columnList.getColumnByName(GlobalLock.GL_EXPIRATION_COLUMN);
GlobalLock glock = new GlobalLock();
glock.setName(row.getKey());
glock.setMode(mode.getStringValue());
glock.setOwner(owner.getStringValue());
glock.setExpirationTime(expiration.getStringValue());
return glock;
}
Aggregations