Reference Guide
Table Of Contents
- 1 Introduction
- 2 Establishing Your Test and Development Environments
- 3 Developing Applications
- Introduction
- Authentication
- REST API
- Audit Logging
- Alert Logging
- Configuration
- High Availability
- OpenFlow
- Metrics Framework
- GUI
- SKI Framework - Overview
- SKI Framework - Navigation Tree
- SKI Framework - Hash Navigation
- SKI Framework - View Life-Cycle
- SKI Framework - Live Reference Application
- UI Extension
- Introduction
- Controller Teaming
- Distributed Coordination Service
- Persistence
- Backup and Restore
- Device Driver Framework
- 4 Application Security
- 5 Including Debian Packages with Applications
- 6 Sample Application
- Application Description
- Creating Application Development Workspace
- Application Generator (Automatic Workspace Creation)
- Creating Eclipse Projects
- Updating Project Dependencies
- Building the Application
- Installing the Application
- Application Code
- 7 Testing Applications
- 8 Built-In Applications
- Appendix A
- Appendix B
- Bibliography
}
// Convert the pageRequest
CassandraStorable<String, String> convertMark =
(CassandraStorable<String, String>) pageRequest.getMark();
final MarkPageRequest<String> convertedPageRequest =
pageRequest.convert((convertMark != null)
? convertMark.getId() : null);
Procedure<MarkPage<Column<String, ?>>> procedure =
new Procedure<MarkPage<Column<String, ?>>>() {
@Override
public MarkPage<Column<String, ?>> execute() throws Exception {
return context.getContext().get(AlertsCount.COL_FAMILY,
AlertsCount.ROW_KEY,
convertedPageRequest,
AlertsCount.COUNT_DECODER);
}
};
try {
context.getTransactionContext()
.prepareTransaction(AlertsCount.COL_FAMILY.getName(),
AlertsCount.ROW_KEY);
} catch (PersistenceException e) {
throw new RuntimeException(e);
}
MarkPage<Column<String, ?>> result = null;
try {
result = context
.getTransactionContext()
.executeCriticalSection(procedure);
} catch (Exception e) {
throw new PersistenceException(e);
}
// Get the list of Ids from the page
List<String> id = new ArrayList<String>();
for (Column<String, ?> c : result.getData()) {
id.add(c.getName().getValue());
}
MarkPageRequest<String> pageRequest1 =
result.getRequest().convert(result
.getRequest()
.getMark()
.getName()
110