SDN Controller Programming Guide

116
If the application workspace was created manually, the application modules are probably empty;
thus a class that acts as a seed has to be created on each application module. The class can be
as simple as the one shown in the following listing. However, even though the seed classes are
temporal and is later replaced by real code, it is convenient using the correct java packages;
Table 5 lists suggestions.
Application Module Seed Java Class:
package com.hp.hm.api;
/**
* Place holder to allow the module to be properly compiled and packaged.
* TODO: Remove this class when real code is added to the module.
*/
public class Seed {
}
Table 5 Suggested Java Packages
Module
Recommended Package
Example
Model
com.[COMPANY_SHORT_NAME].[APPLICATION_SHORT_NAME].model
com.hp.hm.model
API
com.[COMPANY_SHORT_NAME].[APPLICATION_SHORT_NAME].api
com.hp.hm.api
Business Logic
com.[COMPANY_SHORT_NAME].[APPLICATION_SHORT_NAME].impl
com.hp.hm.impl
REST API
com.[COMPANY_SHORT_NAME].[APPLICATION_SHORT_NAME].rs
com.hp.hm.rs
UI
com.[COMPANY_SHORT_NAME].[APPLICATION_SHORT_NAME].ui
com.hp.hm.ui
DAO API
com.[COMPANY_SHORT_NAME].[APPLICATION_SHORT_NAME].dao.api
com.hp.hm.dao.api
DAO Model
com.[COMPANY_SHORT_NAME].[APPLICATION_SHORT_NAME].dao.model
com.hp.hm.dao.model
DAO
com.[COMPANY_SHORT_NAME].[APPLICATION_SHORT_NAME].dao.impl
com.hp.hm.dao.impl
Installing Application
For this example the SDN Controller GUI will be used to deploy the application. It is assumed a
test machine was already created, for more information see Test Environment on page 7.
1. Login to the SDN controller as
sdn
user using the following URL
https://
SDN_CONTROLLER_ADDRESS]
:8443/sdn/ui/” as shown in Figure 40. See
Authentication Configuration on page 7 to determine the right credentials.