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
AlertColumnFamily.DESC_COL_NAME,transportable.getDescription()));
storable.setColumn(new EnumColumn<String, Severity>(
AlertColumnFamily.SEVERITY_COL_NAME,
transportable.getSeverity()));
storable.setColumn(new DateColumn<String>(
AlertColumnFamily.TIMESTAMP_COL_NAME,
transportable.getTimestamp()));
storable.setColumn(new BooleanColumn<String>(
AlertColumnFamily.STATE_COL_NAME,
transportable.getState()));
storable.setColumn(new StringColumn<String>(
AlertColumnFamily.ORIGIN_COL_NAME, transportable.getOrigin()));
storable.setColumn(new StringColumn<String>(
AlertColumnFamily.TOPIC_COL_NAME, transportable.getTopicId()));
return storable;
}
conform()
This method is used during an update operation.
CassandraAlertDao.java:
@Override
protected CassandraAlert conform(
CassandraAlert alert, CassandraAlert alert2) {
if (alert2 == null) {
throw new NullPointerException(...);
}
if (alert == null) {
return alert2;
}
if (alert.getState() != alert2.getState()) {
alert.setState(alert2.getState());
}
return alert;
}
getColumnFamilyDefinitions()
The abstraction layer calls this method to perform operations on secondary column families.
CassandraAlertDao.java:
@Override
protected Collection<ColumnFamilyDefinition<?, ?>>
getColumnFamilyDefinitions() {
Collection<ColumnFamilyDefinition<?, ?>> colFamilies = new
ArrayList<ColumnFamilyDefinition<?, ?>>();
103