Class MplsModule
- java.lang.Object
-
- org.neotropic.kuwaiba.core.apis.integration.modules.AbstractModule
-
- org.neotropic.kuwaiba.core.apis.integration.modules.AbstractCommercialModule
-
- com.neotropic.kuwaiba.modules.commercial.mpls.MplsModule
-
@Component public class MplsModule extends AbstractCommercialModule
This class implements the functionality corresponding to the MPLS module.- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.AbstractModule
AbstractModule.ModuleType
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASS_VIEWClass to identify all views made using the MPLS modulestatic StringMODULE_IDModule id.static StringRELATIONSHIP_MPLS_PW_ISRELATEDWITH_PWRelates two pseudowires that are logical linked inside a MPLS devicestatic StringRELATIONSHIP_MPLS_PW_ISRELATEDWITH_VFIRelates a pseudowire and its output interface, the output interface is the endpoint of a MPLS link if is a portstatic StringRELATIONSHIP_MPLSENDPOINTAA side in a tributary linkstatic StringRELATIONSHIP_MPLSENDPOINTBB side in a tributary linkstatic StringRELATIONSHIP_MPLSLINKRelates the MPLS link directly with the GenericNetworkElements parents of the end points of the MPLS link, it is used to explore the MPLS links in a MPLS device or the routing between devices-
Fields inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.AbstractModule
aem, bem, CATEGORY_ADMINISTRATION, CATEGORY_BUSINESS, CATEGORY_INTEGRATION, CATEGORY_LOGICAL, CATEGORY_NAVIGATION, CATEGORY_OTHER, CATEGORY_PHYSICAL, CATEGORY_PLANNING, CATEGORY_SETTINGS, CATEGORY_VIRTUALIZATION, enabled, mem
-
-
Constructor Summary
Constructors Constructor Description MplsModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCategory()Assigns the module a category, so it can be placed in menus and context actions.StringgetDescription()Gets the module descriptionStringgetId()A simple unique string that identifies the module so it is easier to refer to it in automated processes such as defining if a user can user certain functionality based on his/her privileges.AbstractModule.ModuleTypegetModuleType()Gets the module's type.StringgetName()Gets the module's name.StringgetVendor()Gets the module's vendorStringgetVersion()Gets the module's versionvoidinit()voidvalidate()Says if the module can be used or not (for example, if the license has expired or not) or if there are unmet dependencies.-
Methods inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.AbstractModule
configureModule, isEnabled, setEnabled
-
-
-
-
Field Detail
-
MODULE_ID
public static final String MODULE_ID
Module id.- See Also:
- Constant Field Values
-
CLASS_VIEW
public static String CLASS_VIEW
Class to identify all views made using the MPLS module
-
RELATIONSHIP_MPLSENDPOINTA
public static String RELATIONSHIP_MPLSENDPOINTA
A side in a tributary link
-
RELATIONSHIP_MPLSENDPOINTB
public static String RELATIONSHIP_MPLSENDPOINTB
B side in a tributary link
-
RELATIONSHIP_MPLS_PW_ISRELATEDWITH_VFI
public static String RELATIONSHIP_MPLS_PW_ISRELATEDWITH_VFI
Relates a pseudowire and its output interface, the output interface is the endpoint of a MPLS link if is a port
-
RELATIONSHIP_MPLS_PW_ISRELATEDWITH_PW
public static String RELATIONSHIP_MPLS_PW_ISRELATEDWITH_PW
Relates two pseudowires that are logical linked inside a MPLS device
-
RELATIONSHIP_MPLSLINK
public static String RELATIONSHIP_MPLSLINK
Relates the MPLS link directly with the GenericNetworkElements parents of the end points of the MPLS link, it is used to explore the MPLS links in a MPLS device or the routing between devices
-
-
Method Detail
-
getName
public String getName()
Description copied from class:AbstractModuleGets the module's name. Must be unique, otherwise, the system will only take last one loaded at application's startup- Specified by:
getNamein classAbstractModule- Returns:
- The module's name
-
getDescription
public String getDescription()
Description copied from class:AbstractModuleGets the module description- Specified by:
getDescriptionin classAbstractModule- Returns:
- he module's description
-
getVersion
public String getVersion()
Description copied from class:AbstractModuleGets the module's version- Specified by:
getVersionin classAbstractModule- Returns:
- The module's version
-
getVendor
public String getVendor()
Description copied from class:AbstractModuleGets the module's vendor- Specified by:
getVendorin classAbstractModule- Returns:
- The module's vendor
-
getCategory
public int getCategory()
Description copied from class:AbstractModuleAssigns the module a category, so it can be placed in menus and context actions. See CATEGORY_XXX for valid values.- Specified by:
getCategoryin classAbstractModule- Returns:
- The category.
-
init
@PostConstruct public void init()
-
getModuleType
public AbstractModule.ModuleType getModuleType()
Description copied from class:AbstractModuleGets the module's type. For valid values #ModuleTypes- Specified by:
getModuleTypein classAbstractModule- Returns:
- The module's types
-
validate
public void validate() throws OperationNotPermittedExceptionDescription copied from class:AbstractCommercialModuleSays if the module can be used or not (for example, if the license has expired or not) or if there are unmet dependencies.- Specified by:
validatein classAbstractCommercialModule- Throws:
OperationNotPermittedException- The reason why the module could not be started.
-
getId
public String getId()
Description copied from class:AbstractModuleA simple unique string that identifies the module so it is easier to refer to it in automated processes such as defining if a user can user certain functionality based on his/her privileges.- Specified by:
getIdin classAbstractModule- Returns:
-
-