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
if (listener != null) {
distMap.unregister(listener);
}
}
}
SimpleEntryListener.java
package com.hp.dcord_test.impl;
import com.hp.util.dcord.EntryEvent;
import com.hp.util.dcord.EntryListener;
public class SimpleEntryListener implements EntryListener<String, String> {
@Override
public void added(EntryEvent<String, String> entry) {
// Any action to be taken on receipt of a message notification.
// In this example, there is a simple print
String string = "Added notification recieved";
System.out.println(string);
}
@Override
public void updated(EntryEvent<String, String> entry) {
// Any action to be taken on receipt of a message notification.
// In this example, there is a simple print
String string = "Updated notification recieved";
System.out.println(string);
}
@Override
public void removed(EntryEvent<String, String> entry) {
// Any action to be taken on receipt of a message notification.
// In this example, there is a simple print
String string = "Removed notification recieved";
System.out.println(string);
}
}
Performance Considerations
Keep in mind the following when using the distributed coordination services:
1. Java objects can be written directly to distributed coordination services.
- There is no need to serialize the data before it is written to these structures.
Thecoordination service will serialize/deserialize the data as it is distributed in the team
using the serializer you have registered.
2. Minimize other in-memory local caches for distributed map data.
74