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
context.getTransactionContext()
.prepareTransaction(AlertsByOrigin.COL_FAMILY.getName(),
AlertsByOrigin.ROW_KEY);
CassandraStorable<String, Origin> rows = context
.getTransactionContext().
executeCriticalSection(procedure);
Collection<String> id = new ArrayList<String>();
for (Column<Origin, ?> orig : rows.getColumns()) {
id.add(orig.getName().getValue().getId());
}
// Add row Id's to the final Id set
rowsSet.retainAll(id);
}
// Severity Condition. Only IN is supported for now.
if (filter.getSeverityCondition() != null) {
switch(filter.getSeverityCondition().getMode()) {
case IN:
for (Severity sev : filter.getSeverityCondition().
getValues()) {
final ByteBufferRange range = AlertsBySeverity.serializer
.buildRange().withPrefix(sev.name()).
greaterThan(" ").lessThanEquals("~");
Procedure<CassandraStorable<String, SeverityComposite>>
procedure = new Procedure<CassandraStorable<String,
SeverityComposite>>() {
@Override
public CassandraStorable<String,
SeverityComposite> execute()
throws Exception {
return context.getContext()
.get(AlertsBySeverity.COL_FAMILY,
AlertsBySeverity.ROW_KEY, range,
AlertsBySeverity.SEVERITY_DECODER);
}
};
context.getTransactionContext()
.prepareTransaction(
AlertsBySeverity.COL_FAMILY.getName(),
AlertsBySeverity.ROW_KEY);
CassandraStorable<String, SeverityComposite> rows =
context.getTransactionContext().
106