Permalink
Browse files

Added license, and tidied up

- license file added
- commented out code removed
- copyright notice added
  • Loading branch information...
1 parent 15fdc9f commit cc64b48543093ae9263f7c03a3c1b5e21332e536 matthew committed Sep 27, 2012
View
13 LICENSE
@@ -0,0 +1,13 @@
+Copyright 2012, Foursquare Labs Inc
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
@@ -1,3 +1,5 @@
+// Copyright 2012 Foursquare Labs Inc. All Rights Reserved.
+
package com.foursquare.oozie.dashboard
import org.eclipse.jetty.server.Server
@@ -4,16 +4,9 @@ package com.foursquare.oozie.dashboard
import com.typesafe.config.ConfigFactory
import org.apache.oozie.client.{OozieClient, WorkflowAction, WorkflowJob}
-// import org.eclipse.jetty.server.Server
-// import org.eclipse.jetty.servlet.{ServletContextHandler, ServletHolder}
import org.scalatra.ScalatraServlet
import org.scalatra.scalate.ScalateSupport
import scalaj.collection.Imports._
-// import org.eclipse.jetty.server.handler.ContextHandler;
-// import org.eclipse.jetty.server.handler.HandlerList;
-// import org.eclipse.jetty.server.handler.ResourceHandler;
-// import org.eclipse.jetty.server.nio.SelectChannelConnector;
-// import org.eclipse.jetty.webapp.WebAppContext;
import java.text.SimpleDateFormat
import java.util.Date
@@ -92,7 +85,6 @@ class OozieDashboard() extends ScalatraServlet with ScalateSupport {
}
}
-
get("/coordinators") {
val perPage = 1000
val jobs = oozie.getCoordJobsInfo(null, 0, 1000).asScala.toList

0 comments on commit cc64b48

Please sign in to comment.