Using the JON Remote API by Andy Redhead

6

Click here to load reader

description

Lightning talk by Andy Redhead presented on the 17th of October at JBoss jBPM JBUG event. More info about the event: http://www.meetup.com/JBoss-User-Group/events/34561072/

Transcript of Using the JON Remote API by Andy Redhead

Page 1: Using the JON Remote API by Andy Redhead

Using the JON Remote API

[and why you might want to]

Andy Redhead ([email protected])

Page 2: Using the JON Remote API by Andy Redhead

Production Server (1)

JBoss JON

Agent

JON Server

Remote Java API

JON Database

All the other

RHQ bits

Production Server (x)

JBoss JON

Agent

Client

Remote JON Client

App

JON Deployment

Page 3: Using the JON Remote API by Andy Redhead

The Goal - View Behaviour of Multiple Machines

Page 5: Using the JON Remote API by Andy Redhead

Approach (2/2) - R

http://www.r-project.org/

#Read dataset ajpConnActiveThreads <- read.table(dataSetFile, header=TRUE, sep="") ajpConnActiveThreads$datetime <- as.POSIXct(ajpConnActiveThreads$datetime, tz="", '%Y-%m-%dT%H:%M:%OS') #Calculate “Trimmed” Mean allMachineTrimmedMean <- apply(justNumbers, 1, mean, trim=0.1) #Draw Graph jpeg(outputGraphFileName) plot(threadActiveXRange, threadActiveYRange, type="n", …, col.lab="darkblue") axis.POSIXct(1, at=seq(r[1], r[2], by="hour"), format="%H:%M", las=2) axis(2, at=yAxisAt, las=2) lines(finalData$datetime, finalData[[dataIndex]], col="red") lines(finalData$datetime, allMachineTrimmedMean, col="blue") dev.off()

Page 6: Using the JON Remote API by Andy Redhead

Thanks for Listening