Appendix B

Blacklist Application

The source code included in this appendix may be downloaded from: www.tallac.com/SDN/get-started/.

B.1 MessageListener

//================================================================

// from Floodlight controller.

//================================================================

public class MessageListener implements IOFMessageListener

{

 private static final MessageListener INSTANCE =

 new MessageListener();

 private static IFloodlightProviderService mProvider;

 private MessageListener() {} // private constructor

 public static MessageListener getInstance() {

 return INSTANCE;

 }

 //-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ...

Get Software Defined Networks, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.