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
package com.hp.demo.cassandra.model.alert;
import com.hp.api.Id;
import com.hp.demo.cassandra.model.AbstractTransportable;
...
public class CassandraAlert extends
AbstractTransportable<CassandraAlert, String> {
...
private Severity severity;
private Date timestamp;
private String description;
private boolean state;
private String origin;
private String topicId;
public CassandraAlert(String sysId, boolean state, String topicId,
String origin, Date timestamp, Severity severity, String description) {
super(sysId);
init(topicId, origin, timestamp, severity, state, description);
}
public CassandraAlert(String uid, String sysId, boolean state,
String topicId, String origin, Date timestamp,
Severity severity, String description) {
super(uid, sysId);
init(topicId, origin, timestamp, severity, state, description);
}
public CassandraAlert(String uid) {
super(uid, null);
}
@Override
public Id<CassandraAlert, String> getId() {
return Id.<CassandraAlert, String>valueOf(this.uid());
}
// Implement getters for immutable fields.
// Implement setters and getters for mutable fields.
// Good practice to override the following methods on transport objects:
// equals(Object), hashCode() and toString()
...
}
90