public class ComponentQueryImpl extends Object implements ComponentQuery
| Constructor and Description |
|---|
ComponentQueryImpl(Jbi jbi,
ManagementContext mgtCtx,
boolean validate,
String targetName,
RegistryImpl registry) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getComponentIds(ComponentType type)
Get a list of component IDs for all registered components of a specified
type.
|
List<String> |
getComponentIds(ComponentType type,
ComponentState status)
Get a list of component IDs for all components of a specified type with
a specified status.
|
ComponentInfo |
getComponentInfo(String componentName)
Get the ComponentInfo for a particular Component.
|
List |
getDependentComponentIds(String sharedLibraryName)
Get a list of component IDs that depend upon a specified Shared Library.
|
ComponentInfo |
getSharedLibraryInfo(String sharedLibraryName)
Get the ComponentInfo for a particular Shared Library.
|
ComponentState |
getStatus(String componentName)
Get the current status of a component.
|
public ComponentQueryImpl(Jbi jbi, ManagementContext mgtCtx, boolean validate, String targetName, RegistryImpl registry) throws RegistryException
RegistryExceptionpublic List<String> getComponentIds(ComponentType type)
getComponentIds in interface ComponentQuerytype - The ComponentType: { BINDING, ENGINE, SHARED_LIBRARY,
BINDINGS_AND_ENGINES, ALL }. ALL includes allcomponents regardless of their types.
ComponentInfo.BINDINGS_AND_ENGINES includes both bindings and engines.public List<String> getComponentIds(ComponentType type, ComponentState status)
getComponentIds in interface ComponentQuerytype - The ComponentType: { BINDING, ENGINE, SHARED_LIBRARY,
BINDINGS_AND_ENGINES, ALL }. ALL includes allcomponents regardless of their types.
ComponentInfo.BINDINGS_AND_ENGINES includes both bindings and engines.status - The Component status: ComponentState{LOADED, SHUTDOWN, STARTED,
STOPPED}public ComponentInfo getComponentInfo(String componentName)
getComponentInfo in interface ComponentQuerycomponentName - The unique name of the component being retrieved.public ComponentInfo getSharedLibraryInfo(String sharedLibraryName)
getSharedLibraryInfo in interface ComponentQuerysharedLibraryName - The unique name of the Shared Library being
retrieved.public List getDependentComponentIds(String sharedLibraryName)
getDependentComponentIds in interface ComponentQuerysharedLibraryName - The unique name of the Shared Library.public ComponentState getStatus(String componentName) throws JBIException
getStatus in interface ComponentQuerycomponentName - The unique component name.JBIException - if the component name is not registered.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.