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
private static final ColumnFamily<String, SeverityComposite> COL_FAMILY
= ColumnFamily.newColumnFamily("AlertsBySeverity",
StringSerializer .get(), serializer, ByteSerializer .get());
private static final ColumnFamilyDefinition<String, SeverityComposite>
CF_DEF = new ColumnFamilyDefinition<String, SeverityComposite>(
COL_FAMILY, BasicType.UTF8, BasicType.BYTES,
new CompositeType(BasicType.UTF8, BasicType.UTF8),
"Alerts By Severity CF");
private static final String ROW_KEY = "AlertsBySeverity";
private static final
Provider<ColumnDecoder<SeverityComposite, ?>,
ColumnName<SeverityComposite, ?>> SEVERITY_DECODER = new Provider
<ColumnDecoder<SeverityComposite, ?>,
ColumnName<SeverityComposite, ?>>() {
@Override
public ColumnDecoder<SeverityComposite, ?>
get(ColumnName<SeverityComposite, ?> entity) {
return ValuelessColumnDecoder.getInstance();
}
};
@Override
public void prepareMutation(CassandraAlert transportable,
DataStoreContext context) throws Exception {
CassandraStorable<String, SeverityComposite> storable = new
CassandraStorable<String, SeverityComposite>(ROW_KEY);
storable.setColumn(new ValuelessColumn<SeverityComposite>(
ColumnName.<SeverityComposite, Void> valueOf(
new SeverityComposite(transportable.getSeverity(),
transportable.getId().getValue()))));
context.getContext().prepareMutation(COL_FAMILY, storable);
}
@Override
public void prepareTransaction(CassandraAlert transportable,
DataStoreContext context) throws Exception {
context.getTransactionContext()
.prepareTransaction(COL_FAMILY.getName(), ROW_KEY);
}
99