Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
Get something running
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaber committed Jul 14, 2015
1 parent ca6db98 commit a4298d3
Show file tree
Hide file tree
Showing 16 changed files with 864 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Blazar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
server:
type: simple
applicationContextPath: /blazar
connector:
type: http
port: 7099
20 changes: 20 additions & 0 deletions BlazarBase/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.hubspot</groupId>
<artifactId>Blazar</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>


<artifactId>BlazarBase</artifactId>

<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
</dependencies>
</project>
35 changes: 35 additions & 0 deletions BlazarBase/src/main/java/com/hubspot/blazar/BuildState.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package com.hubspot.blazar;

import java.util.Optional;

public class BuildState {
public enum Result { SUCCEEDED, IN_PROGRESS, FAILED }

private final int buildNumber;
private final Result result;
private final long startTime;
private final Optional<Long> endTime;

public BuildState(int buildNumber, Result result, long startTime, Optional<Long> endTime) {
this.buildNumber = buildNumber;
this.result = result;
this.startTime = startTime;
this.endTime = endTime;
}

public int getBuildNumber() {
return buildNumber;
}

public Result getResult() {
return result;
}

public long getStartTime() {
return startTime;
}

public Optional<Long> getEndTime() {
return endTime;
}
}
38 changes: 38 additions & 0 deletions BlazarBase/src/main/java/com/hubspot/blazar/GitInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.hubspot.blazar;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class GitInfo {
private final String host;
private final String organization;
private final String repository;
private final String branch;

@JsonCreator
public GitInfo(@JsonProperty("host") String host,
@JsonProperty("organization") String organization,
@JsonProperty("repository") String repository,
@JsonProperty("branch") String branch) {
this.host = host;
this.organization = organization;
this.repository = repository;
this.branch = branch;
}

public String getHost() {
return host;
}

public String getOrganization() {
return organization;
}

public String getRepository() {
return repository;
}

public String getBranch() {
return branch;
}
}
23 changes: 23 additions & 0 deletions BlazarBase/src/main/java/com/hubspot/blazar/Module.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.hubspot.blazar;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class Module {
private final String name;
private final String path;

@JsonCreator
public Module(@JsonProperty("name") String name, @JsonProperty("path") String path) {
this.name = name;
this.path = path;
}

public String getName() {
return name;
}

public String getPath() {
return path;
}
}
23 changes: 23 additions & 0 deletions BlazarBase/src/main/java/com/hubspot/blazar/ModuleBuild.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.hubspot.blazar;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class ModuleBuild {
private final GitInfo gitInfo;
private final Module module;

@JsonCreator
public ModuleBuild(@JsonProperty("gitInfo") GitInfo gitInfo, @JsonProperty("module") Module module) {
this.gitInfo = gitInfo;
this.module = module;
}

public GitInfo getGitInfo() {
return gitInfo;
}

public Module getModule() {
return module;
}
}
25 changes: 25 additions & 0 deletions BlazarBase/src/main/java/com/hubspot/blazar/RepoBuild.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.hubspot.blazar;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Set;

public class RepoBuild {
private final GitInfo gitInfo;
private final Set<Module> modules;

@JsonCreator
public RepoBuild(@JsonProperty("gitInfo") GitInfo gitInfo, @JsonProperty("modules") Set<Module> modules) {
this.gitInfo = gitInfo;
this.modules = modules;
}

public GitInfo getGitInfo() {
return gitInfo;
}

public Set<Module> getModules() {
return modules;
}
}
222 changes: 222 additions & 0 deletions BlazarService/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.hubspot</groupId>
<artifactId>Blazar</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>BlazarService</artifactId>

<dependencies>
<dependency>
<groupId>com.hubspot.jackson</groupId>
<artifactId>jackson-jaxrs-propertyfiltering</artifactId>
</dependency>
<dependency>
<groupId>com.hubspot.jackson</groupId>
<artifactId>jackson-datatype-protobuf</artifactId>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-servlet</artifactId>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-multibindings</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<!-- for jade and jets3t -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
</dependency>
<dependency>
<groupId>org.apache.mesos</groupId>
<artifactId>mesos</artifactId>
</dependency>
<dependency>
<groupId>com.groupon.mesos</groupId>
<artifactId>jesos</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-client</artifactId>
</dependency>
<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlets</artifactId>
</dependency>
<dependency>
<groupId>de.neuland-bfi</groupId>
<artifactId>jade4j</artifactId>
</dependency>
<dependency>
<groupId>com.ning</groupId>
<artifactId>async-http-client</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-servlets</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-jdbi</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-migrations</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-assets</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-core</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-db</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-jersey</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-jetty</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-lifecycle</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-views</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-views-mustache</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-core</artifactId>
</dependency>
<dependency>
<groupId>com.codahale.metrics</groupId>
<artifactId>metrics-healthchecks</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-guava</artifactId>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-servlet</artifactId>
</dependency>
<dependency>
<groupId>com.sun.jersey.contribs</groupId>
<artifactId>jersey-guice</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>org.jdbi</groupId>
<artifactId>jdbi</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit a4298d3

Please sign in to comment.