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
Figure 43 Application Management
Application Code
The following information walks through the code and shows how to implement the application.
This is useful as it illustrates different services in action.
Space doesn’t permit implementing the entire application, however this shows the major parts,
and finishing the implementation is a matter of creating a variation of what is shown. Javadocs
will be omitted to save space, however they are important and must be provided in production
code. Some code samples will contain comments (in green color) to assist illustrations; these
comments are not meant to remain in a real application though. Some lines of code are
highlighted (in yellow color) to denote an important difference with previous illustrations of the
same code. You can get the complete sample application source code from the HP VAN SDN
Controller SDK [18].
NOTE
When the
Application Generator (Automatic Workspace Creation) is used to create an
application, the
application modules already contain source files that follow practices described in the following
information. Thus, the generated application can be used as a starting point.
It’s important to note that some parts of the illustrated code are just suggestions (like the way
model objects are implemented); you are free to apply any technique and style you prefer,
however, the code illustrated follows the same philosophy as the controller’s so it helps to
understand the way the controller’s services are structured.
149