Bundle: scrcommands
Version 4.0.1

ScrCommands

Service Component Runtime (SCR) console commands to view dynamic and static state of components and enable or disable them.

Description

The scrcommands bundle publishes one command group called scr.

This command group currently works with SCR that provides the org.apache.felix.scr.ScrService service.

Scr - Scr Commands

The group contains the following commands:

disable

The disable command is used to disable selected component(s).

  disable [-help] <component> ...

Parameters:

-help
Display command help text.
<component>
Name or id of component.

enable

The enable command is used to enable selected component(s).

  enable [-help] <component> ...

Parameters:

-help
Display command help text.
<component>
Name or id of component.

list

The list command is used to list information about components for selected bundles. Components are shown in bundle id order if no order parameter is given.

  list [-help] [-i] [-l] [-n] [-r] [<bundle>] ...

Parameters:

-help
Display command help text.
-i
List components in ID order.
-l
Show long version of information, that includes information about properties, services provided and referenced.
-n
List components in name order",
-r
List components in reverse order",
<bundle>
Name or id of bundle. If no value is given or a "*", list entries from all bundles.

show

The show command is used to show information about components. Components are shown in component id order if no order parameter is given. With the -f parameter will show more information than the list command, it will show some, static information about the component.

  show [-help] [-b] [-f] [-n] [-r] [<component>] ...

Parameters:

-help
Display command help text.
-b
List components in bundle ID order.
-f
Show full version of information, that includes static information about the component.
-n
List components in name order",
-r
List components in reverse order",
<component>
Name or id of component. If no value is given, show all components registered.

Examples

List all components for all bundles.

scr> list
ID State        BID Name
 0 ACTIVE        19 scrCommandGroup
 1 REGISTERED    25 componentE_test.E1
 2 FACTORY       25 componentE_test.E2

Show full inforamtion about scrCommandGroup component.

scr> show -f scrCommandGroup
ID State        BID Name
 0 ACTIVE        19 scrCommandGroup
   > Service: org.knopflerfish.service.console.CommandGroup
   > Satisfied reference:   org.apache.felix.scr.ScrService [1..1], static bind
   > Property groupName = scr
   > Delayed component, default enabled, config policy = optional

See Also

Console

Bundle Jar docs

scrcommands-4.0.1

Exported Packages

No exported packages.