Reference Guide

Table Of Contents
.getValue());
return new MarkPage<String>(pageRequest1, id);
}
return null;
}
compareRows()
Compares two rows. This method is used for sorting the result set.
CassandraAlertDao.java:
@Override
protected int compareRows(CassandraStorable<String, String> row1,
CassandraStorable<String, String> row2,
SortSpecification
.SortComponent<CassandraAlertSortAttribute> s) {
if (s.getSortOrder() == SortOrder.ASCENDING) {
return AlertColumnFamily.compareColumns(row1, row2, s.getSortBy());
} else {
return AlertColumnFamily.compareColumns(row2, row1, s.getSortBy());
}
}
Storable
A storable is a format of data that the south bound side of the persistence layer operates on.
Every DTO is converted to a storable on its journey to the database and gets converted back to
DTO on its way back to the application. We define a generic storable called CassandraStorable
and is used by all DAOs for all DTOs.
The convert routine has been described in the previous section. The CassandraStorable stores data
in the form of a map very similar to the underlying database. The application only uses the
storable and need not write one for itself.
Backup and Restore
The SDN controller provides a framework to backup and restore controller and application state in
a backup file. Backup operation starts with the admin issuing a REST command to backup the
controller and applications. Once the operation is completed, the backup file can be copied and
stored for later use. In the event of a disaster recovery situation, the stored backup file can be
uploaded and restored via REST API. This section provides a brief description for the application
developers to enable backup/restore functionality on the new applications.
Backup
A controller backup takes a snapshot of the controller state, and includes the following in a
single file:
111