Class MockComponentLibraryCatalogService
java.lang.Object
org.apache.skywalking.oap.server.tool.profile.core.mock.MockComponentLibraryCatalogService
- All Implemented Interfaces:
IComponentLibraryCatalogService,org.apache.skywalking.oap.server.library.module.Service
public class MockComponentLibraryCatalogService
extends Object
implements IComponentLibraryCatalogService
Mock from
IComponentLibraryCatalogService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(int componentA, int componentB) intgetComponentId(String componentName) getComponentName(int componentId) intgetServerIdBasedOnComponent(int componentId) getServerNameBasedOnComponent(int componentId)
-
Constructor Details
-
MockComponentLibraryCatalogService
public MockComponentLibraryCatalogService()
-
-
Method Details
-
getComponentId
- Specified by:
getComponentIdin interfaceIComponentLibraryCatalogService
-
getServerIdBasedOnComponent
public int getServerIdBasedOnComponent(int componentId) - Specified by:
getServerIdBasedOnComponentin interfaceIComponentLibraryCatalogService
-
getComponentName
- Specified by:
getComponentNamein interfaceIComponentLibraryCatalogService
-
getServerNameBasedOnComponent
- Specified by:
getServerNameBasedOnComponentin interfaceIComponentLibraryCatalogService
-
compare
public boolean compare(int componentA, int componentB) - Specified by:
comparein interfaceIComponentLibraryCatalogService
-