added apache license to .java and .groovy files

Project: http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/commit/df5aa747
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/tree/df5aa747
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/diff/df5aa747

Branch: refs/heads/master
Commit: df5aa7472841ae8a1cfc621a50ff6d387a078805
Parents: cf125f7
Author: Frank Greguska <[email protected]>
Authored: Thu Jan 11 12:26:42 2018 -0800
Committer: Frank Greguska <[email protected]>
Committed: Thu Jan 11 12:26:42 2018 -0800

----------------------------------------------------------------------
 nexus-ingest/nexus-sink/.gitignore              | 94 +++++++++++++++++---
 .../gradle/wrapper/gradle-wrapper.properties    |  2 +-
 nexus-ingest/nexus-sink/gradlew.bat             | 90 +++++++++++++++++++
 .../ingest/nexussink/CassandraStore.groovy      | 15 ++++
 .../nexus/ingest/nexussink/NexusService.groovy  | 15 ++++
 .../jpl/nexus/ingest/nexussink/SolrStore.groovy | 15 ++++
 .../jpl/nexus/ingest/nexussink/DataStore.java   | 15 ++++
 .../ingest/nexussink/DataStoreException.java    | 15 ++++
 .../jpl/nexus/ingest/nexussink/DynamoStore.java | 15 ++++
 .../nexussink/InfrastructureConfiguration.java  | 15 ++++
 .../nexussink/IntegrationConfiguration.java     | 15 ++++
 .../nexus/ingest/nexussink/MetadataStore.java   | 15 ++++
 .../nexussink/NexusSinkOptionsMetadata.java     | 15 ++++
 .../jpl/nexus/ingest/nexussink/S3Store.java     | 15 ++++
 .../nexussink/NexusServiceUnitTest.groovy       | 65 --------------
 .../nexussink/NexusSinkIntegrationTest.groovy   | 15 ++++
 .../ingest/nexussink/SolrStoreUnitTest.groovy   | 15 ++++
 .../NexusSinkOptionsIntegrationTest.java        | 15 ++++
 .../TestInfrastructureConfiguration.java        | 15 ++++
 19 files changed, 399 insertions(+), 77 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/.gitignore
----------------------------------------------------------------------
diff --git a/nexus-ingest/nexus-sink/.gitignore 
b/nexus-ingest/nexus-sink/.gitignore
index 09e7ad7..3551ad2 100644
--- a/nexus-ingest/nexus-sink/.gitignore
+++ b/nexus-ingest/nexus-sink/.gitignore
@@ -1,18 +1,90 @@
-gradlew.bat
+# Created by .ignore support plugin (hsz.mobi)
+### JetBrains template
+# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, 
CLion, Android Studio and Webstorm
+# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
 
-.gradle/
+# User-specific stuff:
+.idea/**/workspace.xml
+.idea/**/tasks.xml
+.idea/dictionaries
 
-.idea/
-*.ipr
+# Sensitive or high-churn files:
+.idea/**/dataSources/
+.idea/**/dataSources.ids
+.idea/**/dataSources.xml
+.idea/**/dataSources.local.xml
+.idea/**/sqlDataSources.xml
+.idea/**/dynamic.xml
+.idea/**/uiDesigner.xml
+
+# Gradle:
+.idea/**/gradle.xml
+.idea/**/libraries
+
+# CMake
+cmake-build-debug/
+
+# Mongo Explorer plugin:
+.idea/**/mongoSettings.xml
+
+## File-based project format:
 *.iws
 
-.DS_Store
+## Plugin-specific files:
+
+# IntelliJ
+out/
+
+# mpeltonen/sbt-idea plugin
+.idea_modules/
+
+# JIRA plugin
+atlassian-ide-plugin.xml
+
+# Cursive Clojure plugin
+.idea/replstate.xml
+
+# Crashlytics plugin (for Android Studio and IntelliJ)
+com_crashlytics_export_strings.xml
+crashlytics.properties
+crashlytics-build.properties
+fabric.properties
+### Gradle template
+.gradle
+/build/
+
+# Ignore Gradle GUI config
+gradle-app.setting
+
+# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
+!gradle-wrapper.jar
+
+# Cache of project
+.gradletasknamecache
+
+# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
+# gradle/wrapper/gradle-wrapper.properties
+### Java template
+# Compiled class file
+*.class
+
+# Log file
+*.log
+
+# BlueJ files
+*.ctxt
+
+# Mobile Tools for Java (J2ME)
+.mtj.tmp/
 
-gradle.properties
+# Package Files #
+*.jar
+*.war
+*.ear
+*.zip
+*.tar.gz
+*.rar
 
-build/*
-!build/reports
+# virtual machine crash logs, see 
http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
 
-build/reports/*
-!build/reports/license
-!build/reports/project

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/gradle/wrapper/gradle-wrapper.properties
----------------------------------------------------------------------
diff --git a/nexus-ingest/nexus-sink/gradle/wrapper/gradle-wrapper.properties 
b/nexus-ingest/nexus-sink/gradle/wrapper/gradle-wrapper.properties
index e90496d..5b645fd 100644
--- a/nexus-ingest/nexus-sink/gradle/wrapper/gradle-wrapper.properties
+++ b/nexus-ingest/nexus-sink/gradle/wrapper/gradle-wrapper.properties
@@ -1,4 +1,4 @@
-#Wed Jun 28 16:08:35 PDT 2017
+#Thu Jan 11 12:23:34 PST 2018
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/gradlew.bat
----------------------------------------------------------------------
diff --git a/nexus-ingest/nexus-sink/gradlew.bat 
b/nexus-ingest/nexus-sink/gradlew.bat
new file mode 100644
index 0000000..5f19212
--- /dev/null
+++ b/nexus-ingest/nexus-sink/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem  Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS 
to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your 
PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% 
"-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" 
org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code 
instead of
+rem the _cmd.exe /c_ return code!
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/CassandraStore.groovy
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/CassandraStore.groovy
 
b/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/CassandraStore.groovy
index 27b7aee..4e3e0c1 100644
--- 
a/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/CassandraStore.groovy
+++ 
b/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/CassandraStore.groovy
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusService.groovy
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusService.groovy
 
b/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusService.groovy
index 5a08829..22a8e27 100644
--- 
a/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusService.groovy
+++ 
b/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusService.groovy
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStore.groovy
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStore.groovy
 
b/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStore.groovy
index 2d47eb1..ffd3d68 100644
--- 
a/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStore.groovy
+++ 
b/nexus-ingest/nexus-sink/src/main/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStore.groovy
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStore.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStore.java
 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStore.java
index 1bb888a..13fc5dd 100644
--- 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStore.java
+++ 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStore.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStoreException.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStoreException.java
 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStoreException.java
index 3fa8cc0..3c6eaa1 100644
--- 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStoreException.java
+++ 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DataStoreException.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DynamoStore.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DynamoStore.java
 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DynamoStore.java
index 9ea5e36..09d15a5 100644
--- 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DynamoStore.java
+++ 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/DynamoStore.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/InfrastructureConfiguration.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/InfrastructureConfiguration.java
 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/InfrastructureConfiguration.java
index faf4650..d937485 100644
--- 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/InfrastructureConfiguration.java
+++ 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/InfrastructureConfiguration.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/IntegrationConfiguration.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/IntegrationConfiguration.java
 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/IntegrationConfiguration.java
index a9fc5d4..3d42ef7 100644
--- 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/IntegrationConfiguration.java
+++ 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/IntegrationConfiguration.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/MetadataStore.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/MetadataStore.java
 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/MetadataStore.java
index c4fd188..71afa12 100644
--- 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/MetadataStore.java
+++ 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/MetadataStore.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsMetadata.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsMetadata.java
 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsMetadata.java
index 940d553..0728b2e 100644
--- 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsMetadata.java
+++ 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsMetadata.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/S3Store.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/S3Store.java
 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/S3Store.java
index 074ef31..c38d221 100644
--- 
a/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/S3Store.java
+++ 
b/nexus-ingest/nexus-sink/src/main/java/org/nasa/jpl/nexus/ingest/nexussink/S3Store.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusServiceUnitTest.groovy
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusServiceUnitTest.groovy
 
b/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusServiceUnitTest.groovy
deleted file mode 100644
index e30d611..0000000
--- 
a/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusServiceUnitTest.groovy
+++ /dev/null
@@ -1,65 +0,0 @@
-package org.nasa.jpl.nexus.ingest.nexussink
-
-import org.junit.Test
-import org.nasa.jpl.nexus.ingest.wiretypes.NexusContent
-import org.springframework.mock.env.MockEnvironment
-
-import static org.junit.Assert.assertEquals
-
-/**
- * Created by greguska on 5/2/17.
- */
-class NexusServiceUnitTest {
-
-    @Test
-    public void testGetSolrDocFromTileSummary() {
-        def sink = new NexusService(null, null)
-        sink.setEnvironment(new MockEnvironment())
-
-
-        def tileSummary = NexusContent.TileSummary.newBuilder()
-                .setTileId("1")
-                .setBbox(NexusContent.TileSummary.BBox.newBuilder()
-                .setLatMin(51)
-                .setLatMax(55)
-                .setLonMin(22)
-                .setLonMax(30)
-                .build())
-                .setDatasetName("test")
-                .setDatasetUuid("4")
-                .setDataVarName("sst")
-                .setGranule("test.nc")
-                .setSectionSpec("0:1,0:1")
-                .setStats(NexusContent.TileSummary.DataStats.newBuilder()
-                .setCount(10)
-                .setMax(50)
-                .setMin(50)
-                .setMean(50)
-                .setMaxTime(1429142399)
-                .setMinTime(1429142399)
-                .build())
-                .build()
-
-        def doc = sink.getSolrDocFromTileSummary(tileSummary)
-
-        assertEquals("2015-04-15T23:59:59Z", doc.get("tile_min_time_dt").value)
-        assertEquals("2015-04-15T23:59:59Z", doc.get("tile_max_time_dt").value)
-        assertEquals("sea_surface_temp", doc.get('table_s').value)
-        assertEquals("POLYGON((22.0 51.0, 30.0 51.0, 30.0 55.0, 22.0 55.0, 
22.0 51.0))", doc.get('geo').value)
-        assertEquals("1", doc.get('id').value)
-        assertEquals("4", doc.get('dataset_id_s').value)
-        assertEquals("0:1,0:1", doc.get('sectionSpec_s').value)
-        assertEquals("test", doc.get('dataset_s').value)
-        assertEquals("test.nc", doc.get('granule_s').value)
-        assertEquals("sst", doc.get('tile_var_name_s').value)
-        assertEquals(22.0f, (Float) doc.get('tile_min_lon').value, 0.01f)
-        assertEquals(30.0f, (Float) doc.get('tile_max_lon').value, 0.01f)
-        assertEquals(51.0f, (Float) doc.get('tile_min_lat').value, 0.01f)
-        assertEquals(55.0f, (Float) doc.get('tile_max_lat').value, 0.01f)
-        assertEquals(50.0f, (Float) doc.get('tile_min_val_d').value, 0.01f)
-        assertEquals(50.0f, (Float) doc.get('tile_max_val_d').value, 0.01f)
-        assertEquals(50.0f, (Float) doc.get('tile_avg_val_d').value, 0.01f)
-        assertEquals(10, doc.get('tile_count_i').value)
-        assertEquals("test!1", doc.get('solr_id_s').value)
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkIntegrationTest.groovy
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkIntegrationTest.groovy
 
b/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkIntegrationTest.groovy
index 5dc6ef0..ac8c565 100644
--- 
a/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkIntegrationTest.groovy
+++ 
b/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkIntegrationTest.groovy
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStoreUnitTest.groovy
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStoreUnitTest.groovy
 
b/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStoreUnitTest.groovy
index 8481a17..69d3878 100644
--- 
a/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStoreUnitTest.groovy
+++ 
b/nexus-ingest/nexus-sink/src/test/groovy/org/nasa/jpl/nexus/ingest/nexussink/SolrStoreUnitTest.groovy
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsIntegrationTest.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsIntegrationTest.java
 
b/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsIntegrationTest.java
index 1af8a33..9f00336 100644
--- 
a/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsIntegrationTest.java
+++ 
b/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/NexusSinkOptionsIntegrationTest.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

http://git-wip-us.apache.org/repos/asf/incubator-sdap-nexus/blob/df5aa747/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/TestInfrastructureConfiguration.java
----------------------------------------------------------------------
diff --git 
a/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/TestInfrastructureConfiguration.java
 
b/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/TestInfrastructureConfiguration.java
index b59985e..5121a8b 100644
--- 
a/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/TestInfrastructureConfiguration.java
+++ 
b/nexus-ingest/nexus-sink/src/test/java/org/nasa/jpl/nexus/ingest/nexussink/TestInfrastructureConfiguration.java
@@ -1,3 +1,18 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+*/
 
 package org.nasa.jpl.nexus.ingest.nexussink;
 

Reply via email to