- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Extending FlowTrk class
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2016 03:43 PM
11-10-2016 03:43 PM
Extending FlowTrk class
Hello,
is there a way I can extendcom.hp.of.ctl.flow.impl.FlowTrk?
My HP-specific dependencies are: com.hp.sdn.sdn-of-lib, com.hp.sdn.sdn-of-ctl, com.hp.sdn.sdn-ctl-api
com.hp.of.ctl.flow.impl.FlowTrk is included in dependency com.hp.sdn.sdn-of-ctl
But whenever I do something like this: public class MyFlowTrk extends FlowTrk { ... }
I get the following error: An Import-Package could not be resolved. Resolver error data <Import-Package: com.hp.of.ctl.flow.impl; version="0.0.0">. Caused by missing constraint in bundle
What am I doing wrong?
Thanks for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2016 12:50 PM
11-15-2016 12:50 PM
Re: Extending FlowTrk class
Hi HansChristian,
You're hitting this issue because FlowTrk is in a .impl package and those packages are not exposed via OSGI. Such classes can be extended if your implementation were within the same bundle (com.hp.sdn.sdn-of-ctl), but unfortunately it is outside of the bundle and therefore cannot reference any classes in a .impl package.
If you were aiming to provide a different FlowTracker implementation, then you could still do that and have it get used by OSGI, but you couldn't extend the HPE implementation (yours would need to start from scratch).
If you can let us know a little more about what you're trying to accomplish, maybe we could offer some other options?
Shaun