Willow servers

Willow operational servlets and servers

License

License

GroupId

GroupId

com.nitorcreations
ArtifactId

ArtifactId

willow-servers
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Willow servers
Willow operational servlets and servers

Download willow-servers

How to add to project

<!-- https://jarcasting.com/artifacts/com.nitorcreations/willow-servers/ -->
<dependency>
    <groupId>com.nitorcreations</groupId>
    <artifactId>willow-servers</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.nitorcreations/willow-servers/
implementation 'com.nitorcreations:willow-servers:2.0.2'
// https://jarcasting.com/artifacts/com.nitorcreations/willow-servers/
implementation ("com.nitorcreations:willow-servers:2.0.2")
'com.nitorcreations:willow-servers:jar:2.0.2'
<dependency org="com.nitorcreations" name="willow-servers" rev="2.0.2">
  <artifact name="willow-servers" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.nitorcreations', module='willow-servers', version='2.0.2')
)
libraryDependencies += "com.nitorcreations" % "willow-servers" % "2.0.2"
[com.nitorcreations/willow-servers "2.0.2"]

Dependencies

compile (24)

Group / Artifact Type Version
org.eclipse.jetty : jetty-servlet jar 9.3.1.v20150714
org.eclipse.jetty.websocket : websocket-server jar 9.3.1.v20150714
org.eclipse.jetty : jetty-proxy jar 9.3.1.v20150714
org.eclipse.jetty : jetty-jmx jar 9.3.1.v20150714
org.elasticsearch : elasticsearch jar 1.6.0
com.google.code.gson : gson jar 2.3.1
com.nitorcreations : willow-messages jar 2.0.2
com.nitorcreations : willow-utils jar 2.0.2
com.nitorcreations : willow-logging-jetty jar 2.0.2
org.slf4j : log4j-over-slf4j jar 1.7.6
org.slf4j : jul-to-slf4j jar 1.7.6
ch.qos.logback : logback-classic jar 1.1.3
org.apache.velocity : velocity jar 1.7
com.jcraft : jsch jar 0.1.53
com.jcraft : jsch.agentproxy.core jar 0.0.9
com.jcraft : jsch.agentproxy.connector-factory jar 0.0.9
com.jcraft : jsch.agentproxy.sshagent jar 0.0.9
com.jcraft : jsch.agentproxy.jsch jar 0.0.9
com.google.inject.extensions : guice-servlet jar 3.0
org.eclipse.sisu : org.eclipse.sisu.inject jar 0.3.0.M1
org.apache.shiro : shiro-guice jar 1.2.3
org.apache.shiro : shiro-web jar 1.2.3
mx.com.inftel.oss : shiro-oauth2 jar 1.0
commons-logging : commons-logging jar 1.2

provided (1)

Group / Artifact Type Version
com.google.code.findbugs : annotations jar 3.0.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Stories in Ready Stories in progress Stories ready to merge Code Advisor On Demand Status Build Status Maven Central

willow

Prerequisites

Build requires at least Java 7 and JCE (comes in OpenJDK by default). Also phantomjs is required for javascript unit testing.

Starting statistics ui in development mode

Development mode means static resources are read in from willow-servers/src/main/resources. This enables the editing of markup, css and javascript so that changes are immediately available in the ui.

  1. Build the server
$ git clone [email protected]:NitorCreations/willow.git
$ cd willow
$ mvn clean install

Please note that building requires unlimited JCE to be installed (openjdk has this out of the box, oracle jdk needs you to download a set of jars and extract them http://lmgtfy.com/?q=install+jce). NOTE: if JCE is not correctly installed, tests will fail with java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity.

  1. Ensure ssh identity is set

NOTE: in the simplest development mode setup the statistics server and the deployer reside in the same machine, i.e. the statistics server monitors itself.

  1. From deployer to statistics server: deployer agent authenticates with ssh agent signatures by default so you need to add a public key that matches a private key loaded into your ssh agent into willow-servers/src/main/resources/authorized_keys in openssh authorized_keys format.

    • To check the private keys loaded into your ssh agent, run ssh-add -l.
    • To add a key, run ssh-add ~/.ssh/id_rsa.
  2. From statistics server to deployer node: ssh autologin need to be set up for the ui shell to work. To set up ssh autologin, run e.g. cat ~/.ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'

  3. Start the statistics server and feeding statistics from the local computer

$ willow-deployer/target/deployer.sh start test file:src/test/resources/develop-servers.properties

After this the ui should be accessible at http://localhost:5120 ([users] (../master/willow-servers/src/main/resources/shiro.ini)).

  1. To stop
  • in another terminal: $ willow-deployer/target/deployer.sh stop test

  • in same terminal:

    Ctrl-c Ctrl-z
    $ kill -9 %1
    

For windows there is willow-deployer/target/deployer.cmd that should work exactly the same way.

com.nitorcreations

Nitor Creations

Versions

Version
2.0.2
2.0.1
2.0.0
1.2.0
1.1.0
0.1