
com.intel.jndn.management.enums.LocalControlHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jndn-management Show documentation
Show all versions of jndn-management Show documentation
Tools for managing an NDN forwarding daemon
/*
* jndn-management
* Copyright (c) 2015, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 3, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*/
package com.intel.jndn.management.enums;
/**
* Define constants for local control header options.
*
* @author Andrew Brown
* @see Face Management
*/
public enum LocalControlHeader {
INCOMING_FACE_ID(1),
NEXT_HOP_FACE_ID(2),
CACHING_POLICY(3);
private final int value;
/////////////////////////////////////////////////////////////////////////////
/**
* Create enum using NFD's LocalControlHeader code.
*
* @param value NFD's LocalControlHeader code
*/
LocalControlHeader(final int value) {
this.value = value;
}
/**
* Convert LocalControlHeader to the NFD code.
*
* @return NFD's LocalControlHeader code
*/
public final int toInteger() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy