Class E2EViewProvider
- java.lang.Object
-
- com.neotropic.kuwaiba.modules.commercial.business.analytics.views.E2EViewProvider
-
@Service public class E2EViewProvider extends Object
This class implements the functionality corresponding to manage QinQ technology- Author:
- Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS_VIEW
static String
RELATIONSHIP_MPLS_PW_ISRELATEDWITH_PW
Relates two pseudowires that are logical linked inside a MPLS devicestatic 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 portstatic String
RELATIONSHIP_MPLSENDPOINTA
A side in a tributary linkstatic String
RELATIONSHIP_MPLSENDPOINTB
B side in a tributary linkstatic String
VIEW_CLASS
-
Constructor Summary
Constructors Constructor Description E2EViewProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createE2EView(List<String> linkClasses, List<String> linkIds, boolean includePhyscalPaths, boolean includeVlans, boolean includePhyscialLinks, boolean includeBDis)
Calls the methods that creates the end to end viewViewObject
getAsXML()
The XML representation of the view.GenericConnectionDefinition
getLogicalLinkDetail(String linkClass, String linkId)
Gets the details of logical connection (SDHTributaryLink or MPLSLink) it gets the endpoints of the logical connections and the physical path from the end point until it finds continuityObjectLinkObjectDefinition
getPhysicalLinkDetail(String linkClass, String linkId)
Gets the details of physical connection (GenericPhysicalLink) it gets the endpoints of the connection and the physical path from the endpoint until it finds continuityViewObject
validateSavedE2EView(List<String> linkClasses, List<String> linkIds, ViewObject savedView)
/** validates a saved end to end view
-
-
-
Field Detail
-
VIEW_CLASS
public static final String VIEW_CLASS
- See Also:
- Constant Field Values
-
CLASS_VIEW
public static String CLASS_VIEW
-
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
-
-
Method Detail
-
validateSavedE2EView
public ViewObject validateSavedE2EView(List<String> linkClasses, List<String> linkIds, ViewObject savedView) throws InventoryException
/** validates a saved end to end view- Parameters:
linkClasses
- the classes of the links, in the viewlinkIds
- the ids of the links in the viewsavedView
- saved structure, possibly outdated the end to end view- Returns:
- an updated end to end view
- Throws:
InventoryException
-
createE2EView
public void createE2EView(List<String> linkClasses, List<String> linkIds, boolean includePhyscalPaths, boolean includeVlans, boolean includePhyscialLinks, boolean includeBDis) throws InvalidArgumentException, InventoryException
Calls the methods that creates the end to end view- Parameters:
linkClasses
- list of the links classeslinkIds
- list of the links idsincludePhyscalPaths
- include physical path continuity for the logical links in the end to end viewincludeVlans
- include VLANs continuity in the viewincludePhyscialLinks
- include physical links in the viewincludeBDis
- include bridge domains in the end view- Throws:
InvalidArgumentException
- if you can not reach the back endInventoryException
-
getAsXML
public ViewObject getAsXML() throws InventoryException
The XML representation of the view. Typically used to serialize it- Returns:
- a XML representation of request end to end view
- Throws:
InventoryException
-
getLogicalLinkDetail
public GenericConnectionDefinition getLogicalLinkDetail(String linkClass, String linkId) throws InvalidArgumentException, MetadataObjectNotFoundException, BusinessObjectNotFoundException, InvalidArgumentException, ApplicationObjectNotFoundException
Gets the details of logical connection (SDHTributaryLink or MPLSLink) it gets the endpoints of the logical connections and the physical path from the end point until it finds continuity- Parameters:
linkClass
- the logical link classlinkId
- the logical link id- Returns:
- a GenericConnectionDefinition that contains the connection, end points, and their physical paths
- Throws:
BusinessObjectNotFoundException
- If the object to evaluate can not be foundMetadataObjectNotFoundException
- If any of the classes provided could not be foundApplicationObjectNotFoundException
- If the object provided is not in the standard containment hierarchyInvalidArgumentException
- If the oid is null
-
getPhysicalLinkDetail
public ObjectLinkObjectDefinition getPhysicalLinkDetail(String linkClass, String linkId) throws InvalidArgumentException, MetadataObjectNotFoundException, BusinessObjectNotFoundException, InvalidArgumentException, ApplicationObjectNotFoundException
Gets the details of physical connection (GenericPhysicalLink) it gets the endpoints of the connection and the physical path from the endpoint until it finds continuity- Parameters:
linkClass
- the physical link classlinkId
- the physical link id- Returns:
- a GenericConnectionDefinition that contains the connection, end points, and their physical paths
- Throws:
BusinessObjectNotFoundException
- If the object to evaluate can not be foundMetadataObjectNotFoundException
- If any of the classes provided could not be foundApplicationObjectNotFoundException
- If the object provided is not in the standard containment hierarchyInvalidArgumentException
- If the oid is null
-
-