PK {`H2 2 commands.py# Here you can create play commands that are specific to the module, and extend existing commands
MODULE = 'jobs'
# Commands that are specific to your module
COMMANDS = ['jobs:hello']
def execute(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")
if command == "jobs:hello":
print "~ Hello"
# This will be executed before any command (new, run...)
def before(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")
# This will be executed after any command (new, run...)
def after(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kargs.get("env")
if command == "new":
pass
PK {`Hy! ! README.textilePlay! Jobs
Web Interface to manage and trigger jobs running on a Play! Framework application. A JAX-RS/RESTFul JSON API is available through Play!'s RESTEasy Module.
by Felipe Oliveira
http://mashup.fm
http://geeks.aretotally.in
http://twitter.com/_felipera
Live Demo
http://playjobs.mashup.fm
Install Locally
- Install Module
-- git clone play-jobs into a local directory separate from your play app
-- type "play build-module" to build the module. Enter "1.2" or so for required version
-- look for instructions on how to set up references to local modules, such as
--- http://stackoverflow.com/questions/5859037/how-to-reference-local-modules-using-dependency-yml
- Add module routes to the application that's installing the jobs module
-- see instructions in play-jobs/conf/routes
- Start your play application
- In your browser, go to http://localhost:9000/@jobs
You should see all the jobs defined on your application, basically your classes that extend play.jobs.Job.
RESTful API
Using Play!'s RESTEasy's module. All the business logic is encapsulated on service class JobsService which contains
the annotations necessary to expose the service and bind it as a JSON interface.
This JSON interface is useful if you need to hook your Play! application into a monitoring solution like Nagios.
PK {`Ho build.xml
PK *aH}w|" " manifestversion=0.2
frameworkVersions=1.+
PK
=|G0D D lib/jackson-jaxrs-1.6.3.jarPK = META-INF/MANIFEST.MF Tn0G?Xv%b mJUV=$dӔmH7ocFb?T.ޏb25=(MD6ΥQbցɓN\3ٍ9B$,yx1~U.$e(K zl{xO]JohF⑶Go[n;`Ҷ-m]s\>yxI U]Ao={PKHb a PK = META-INF/ PK PK ǒi= META-INF/ASL2.0Z[s~rSi4i牱䆭CiDn&% . =dwVM5IٳE/˝u:^qw}{ws-~]SW
j.T;=rnk3' M#Z%;1Ie['dWtbtVTc_^>[i7X{!pKUAUBN>hxΔcX/cO+Mzw
P 8s+lv[z!S@me#Ic$핐%I ZY/^Ao
i
!
RcWҴ$arxùxg,я71ɪG3/eFGqB_RW Y*;w!#J N,`E+;U<+VN$ٹe \hЄvGI%/i;aA: dAFu`R+'3=6L\Z]^&Qy|x[<'$ְ[ )GZoUkM[p4IY3htqw3r!8#A^?Pv;Q|lpcl(?jkZ Q9|RoRyH\1=qtLH^cBRs g'NPn*-pc4 (KҘp#-1bZYdąn`x8[
dV9X[BA[/eΰⓋW#$Sc
Wh7;
$AP|#:Tp~*܊܅r8k iՃ&Wbi|66|y6yaX唃H!K4LouNՓ/ı0HVRT)h:Fj'2㤓N D%"Ѩ'Ju"9S6/'\Q6 pHd6
~J"KQMm7n ;h#ZLjDe}5ie^f^˰H5 腍l(uD>[_`FWPhd!R+K:"7@)AZV"r75wTXBJ v?V>f+kF/2DAfmprtTiǖȏx4`YC