Small command-line utilities in
net.okapia.osid.kilimanjaro.tools for poking at a
runtime, a configuration, or an implementation from a
terminal.
A set of handy, and not so handy, tools
bundled with Kilimanjaro (I'll asterisk the tools I find
useful). These are all in java
net.okapia.osid.kilimanjaro.tools.
| Tool | OSID | What it's for |
|---|---|---|
Config* | osid.configuration | Dump the parameter values in effect. |
InstallationPackage | osid.installation | List registered sites and installed packages. |
Ident* | any | Print an OSID Provider's OsidProfile, provider, and branding assets. |
Logger | Logging | Send one message at a syslog-style priority. |
Repose | Repository | list, get, or search assets in a repository |
Meta | any | List OSIDs and interfaces, dump method signatures. |
Dumps configuration parameter values to stdout, type-switching on each parameter's syntax. See Configuration for what those values and their precedence actually mean.
-runtime dumps the current
runtime's own active configuration
(runtime.getConfiguration()). Otherwise,
-osid <impl> boots that Configuration Provider
implementation and -config <id> dumps one
configuration by Id via
getValueLookupSessionForConfiguration().
-context sets the boot context name passed to
BootLoader.getRuntimeManager() (default
"Config").
Talks to the Installation OSID — a
separate, unrelated provider that tracks installed software
packages and the sites they're installed at (schema:
schemas/site.rnc, installation.rnc; not
part of the Configuration file lookup described on the
Configuration page). With no
arguments it lists sites; with -site <id> it
lists every installation registered at that site, including
version, install date, and installing agent.
Identifies an implementation class in a
jar file or a running root runtime — prints
its OsidProfile (Id, name, description, version,
release date, license), its
getProvider() object, and, with -v, its
branding asset list (getBranding()) in full detail.
It also derives a small deterministic fingerprint from the
implementation class name's hash.
-osid <impl> resolves
which OSID the class belongs to by testing it against every
manager and proxy-manager interface in the OSID
enumeration, then boots and inspects it. -r <impl>
inspects a runtime implementation itself rather than a manager
under it. -jar <path> skips booting anything —
it opens the JAR's manifest and scans every class inside for OSID
manager or proxy-manager interfaces, printing which OSID each one
implements.
Sends one message through the Logging OSID
at a syslog-style priority (trace, debug,
info, warning, error,
critical, fatal; default
info).
A small Repository OSID browser over a
federated view of repositories. -list prints every
asset's Id and display name; -get <id> prints
one asset, and with -v its full detail including
every AssetContent, record type, and property;
-search <query> runs a wildcard keyword match
against asset content.
The odd one out — it doesn't broker a
manager at all. It reflects over the OSID interface metadata
layer (org.osid.meta) to list every known OSID and
dump the method signatures of a given interface, including
parameter types and declared exceptions.
| Flag | Effect |
|---|---|
-p | preload/prime every known OSID interface |
-l | list — OSIDs by default, or interfaces of -osid <pkg>, or methods of -int <interface> |
-s | print load/access time and memory delta for the operation performed |