PlasKit


Description

PlasKit is a toolkit for use with the PLASTIC protocol. It contains a hub implementation, utility classes which make it painless to invoke or serve PLASTIC requests via either RMI or XML-RPC, some command-line tools useful for debugging and monitoring purposes, and a few other components, such as a ListModel implementation which reflects the PlasticListeners currently registered with the hub.

The package is fairly lightweight, and has no external dependencies other than the RMI-lite and XML-RPC implementations.

Note: This software is experimental, and hasn't been tested to destruction. The hub implementation may or may not match the current or any other version of the PLASTIC standard. Currently, the PLASTIC hub implementation recommended to the PLASTIC community is the one provided in the AstroGrid ACR (see http://software.astrogrid.org).

This software is released under the GNU Lesser General Public License.


Command-line tools

The following classes have main methods which mean they can be invoked from the command line. Slightly more information can be found in their javadoc entries.

PlasticHub

Hub implementation with optional logging to standard output and/or graphical display.

Usage:
       uk.ac.starlink.plastic.PlasticHub
            [-verbose] [-warn] [-gui]

PlasticMonitor

Registers with the hub and monitors traffic. Can log (barely) human-readable messages to standard output describing PLASTIC traffic and/or display a graphical indication of currently registered applications. Can connect to the hub using either RMI or XML-RPC protocols (the latter is only really useful for testing the XML-RPC mode of a hub).

Usage:
       uk.ac.starlink.plastic.PlasticMonitor
            [-xmlrpc|-rmi] [-gui] [-verbose] [-warn] [-multi] [-name name]

PlasticRequest

Makes one-off requests to the hub from the command line.

Usage:
       uk.ac.starlink.plastic.PlasticRequest
            [-sync|-async] [-regName name]
            [-targetName name ...] [-targetId id ...] [-targetHub]
            [-clientId id] [--]
            messsageId [args ...]

HubTester

Runs unit tests against a running hub, and exits with an error status (and stackdump) if any of the assertions fails. Should be improved to give rather more useful messages.

Usage:
      uk.ac.starlink.plastic.HubTester


Download

Software

You can pick up the classes either as separate jar files:

or as one combined jar file for convenience: or a single combined standalone hub file - this contains a minimum number of classes for a working hub, but without any of the bells and whistles (logging, GUI window, request verification etc) that you get with the normal hub. This jar file has no dependencies.

Javadocs

Source


Version History

Version 0.1 (20 Feb 2006)
Initial release; corresponds to v0.2 of the PLASTIC standard.
Version 0.2 (19 Apr 2006)
Version 0.3 (26 May 2006)
Version 0.4 (7 Aug 2006)
Next version

Mark Taylor, Astrophysics group, Bristol University, UK
Mail
m.b.taylor@bristol.ac.uk
WWW
http://www.star.bristol.ac.uk/~mbt/