NAME
Agent::TCLI::Transport::Test - transport for testing commands
SYNOPSIS
todo
DESCRIPTION
GETTING STARTED
DEFINING COMMANDS
args
LAUNCHING THE CONTROL
commands
hostname
appname
SHUTTING DOWN
controls
A hash of the active controls controls will only accept hash objects.
alias
An alias that the session will be run under. Alias can't be changed after starting.
peers
An array of peers set_peers will only accept ARRAYREF type values.
control_options
A hash of options to pass to a new control object. These are passed straight through as is. See Agent::TCLI::Control for information about the options. control_options will only accept HASHREF type values.
_start
Get things rolling.
_stop
Mostly just a placeholder.
_child
Just a placeholder.
_shutdown
Forcibly shutdown
PackRequest
This object method is used by transports to prepare a request for transmssion.
Currently the code is taking a lazy approach and using Perl's YAML and OIO->dump to safely freeze and thaw the request/responses for Internet transport. By standardizing these routines in the Base class, more elegant methods may be transparently enabled in the future.
PackResponse
This object method is used by transports to prepare a reseponse for transmssion. See PackRequest for more details.
UnackRequest
This object method is used by transports to unpack a request from transmssion. See PackRequest for more details.
UnackResponse
This object method is used by transports to unpack a reseponse from transmssion. See PackRequest for more details.
not_authorized ( { parameters (see usage) } )
Checks to see if a id is authorized to use the transport.
Description
TODO
Usage
$self->not_authorized ( user@example.com, qr(master|writer), # optional regex for auth qr(xmpp), # optional regex for protocol );
Set
This POE event handler is may be used by a Transport to enable a Package to set attributes in the Transport. It currently is not filtering out anything, so if something should not be accessible, either the Transport needs to implement its own Set, or the Package should apply necessary filters.
Set takes a hash of attribute => value pairs, and the Request object as arguments.
Show
This POE event handler is may be used by a Transport to enable a Package to show current settings in the Transport. It currently is not filtering out anything, so if something should not be shown, either the Transport needs to implement its own Show, or the Package should apply necessary filters.
Show takes the attribute to show and the Request object as arguments.
_default
This POE event handler is used to catch wayard calls to unavailable states. If verbose is on, it makes it rather obvious in the logs that an event was not handled.
AUTHOR
Eric Hacker <hacker at cpan.org>
BUGS
SHOULDS and MUSTS are currently not enforced.
New commands could clobber old ones under certain circumstances.
Test scripts not thorough enough.
Probably many others.
LICENSE
Copyright (c) 2007, Alcatel Lucent, All rights resevred.
This package is free software; you may redistribute it and/or modify it under the same terms as Perl itself.