diff --git a/app/build.gradle b/app/build.gradle index 6aa56e20d3..b5ab15ae9e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,3 +1,19 @@ +/* + * 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. + */ plugins { // Apply the application plugin to add support for building a CLI application in Java. id 'application' diff --git a/app/src/main/java/org/astraea/app/App.java b/app/src/main/java/org/astraea/app/App.java index eaa4f14fed..36d4e2ece0 100644 --- a/app/src/main/java/org/astraea/app/App.java +++ b/app/src/main/java/org/astraea/app/App.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/admin/Admin.java b/app/src/main/java/org/astraea/app/admin/Admin.java index eef5897b11..04fd2702a2 100644 --- a/app/src/main/java/org/astraea/app/admin/Admin.java +++ b/app/src/main/java/org/astraea/app/admin/Admin.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.io.Closeable; diff --git a/app/src/main/java/org/astraea/app/admin/Builder.java b/app/src/main/java/org/astraea/app/admin/Builder.java index a602d38ba0..975d520c84 100644 --- a/app/src/main/java/org/astraea/app/admin/Builder.java +++ b/app/src/main/java/org/astraea/app/admin/Builder.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.ArrayList; diff --git a/app/src/main/java/org/astraea/app/admin/Compression.java b/app/src/main/java/org/astraea/app/admin/Compression.java index 06be7b0827..274038c862 100644 --- a/app/src/main/java/org/astraea/app/admin/Compression.java +++ b/app/src/main/java/org/astraea/app/admin/Compression.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Locale; diff --git a/app/src/main/java/org/astraea/app/admin/Config.java b/app/src/main/java/org/astraea/app/admin/Config.java index 7fd8d49f79..c67bb3d9a7 100644 --- a/app/src/main/java/org/astraea/app/admin/Config.java +++ b/app/src/main/java/org/astraea/app/admin/Config.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/admin/ConsumerGroup.java b/app/src/main/java/org/astraea/app/admin/ConsumerGroup.java index 72b62d75c7..3eefc734ba 100644 --- a/app/src/main/java/org/astraea/app/admin/ConsumerGroup.java +++ b/app/src/main/java/org/astraea/app/admin/ConsumerGroup.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.List; diff --git a/app/src/main/java/org/astraea/app/admin/Member.java b/app/src/main/java/org/astraea/app/admin/Member.java index b3a9a347b6..88657ce3ac 100644 --- a/app/src/main/java/org/astraea/app/admin/Member.java +++ b/app/src/main/java/org/astraea/app/admin/Member.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Objects; diff --git a/app/src/main/java/org/astraea/app/admin/Offset.java b/app/src/main/java/org/astraea/app/admin/Offset.java index 7e7bf96119..5df7ea305c 100644 --- a/app/src/main/java/org/astraea/app/admin/Offset.java +++ b/app/src/main/java/org/astraea/app/admin/Offset.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; public final class Offset { diff --git a/app/src/main/java/org/astraea/app/admin/ProducerState.java b/app/src/main/java/org/astraea/app/admin/ProducerState.java index e2f14cf7d4..9b29cb9f6a 100644 --- a/app/src/main/java/org/astraea/app/admin/ProducerState.java +++ b/app/src/main/java/org/astraea/app/admin/ProducerState.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Objects; diff --git a/app/src/main/java/org/astraea/app/admin/Quota.java b/app/src/main/java/org/astraea/app/admin/Quota.java index 36fbac7ab9..1b41b8ce2f 100644 --- a/app/src/main/java/org/astraea/app/admin/Quota.java +++ b/app/src/main/java/org/astraea/app/admin/Quota.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Arrays; diff --git a/app/src/main/java/org/astraea/app/admin/QuotaCreator.java b/app/src/main/java/org/astraea/app/admin/QuotaCreator.java index d4e3cc512e..ccac40e0d9 100644 --- a/app/src/main/java/org/astraea/app/admin/QuotaCreator.java +++ b/app/src/main/java/org/astraea/app/admin/QuotaCreator.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; /** diff --git a/app/src/main/java/org/astraea/app/admin/Replica.java b/app/src/main/java/org/astraea/app/admin/Replica.java index 3e88b24dd3..647c72b70d 100644 --- a/app/src/main/java/org/astraea/app/admin/Replica.java +++ b/app/src/main/java/org/astraea/app/admin/Replica.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Objects; diff --git a/app/src/main/java/org/astraea/app/admin/ReplicaCollie.java b/app/src/main/java/org/astraea/app/admin/ReplicaCollie.java index 32e95c2efd..fa7e92c5c3 100644 --- a/app/src/main/java/org/astraea/app/admin/ReplicaCollie.java +++ b/app/src/main/java/org/astraea/app/admin/ReplicaCollie.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import com.beust.jcommander.Parameter; diff --git a/app/src/main/java/org/astraea/app/admin/ReplicaMigrator.java b/app/src/main/java/org/astraea/app/admin/ReplicaMigrator.java index 90f0347d1c..fbc1ccef91 100644 --- a/app/src/main/java/org/astraea/app/admin/ReplicaMigrator.java +++ b/app/src/main/java/org/astraea/app/admin/ReplicaMigrator.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.List; diff --git a/app/src/main/java/org/astraea/app/admin/ReplicaSyncingMonitor.java b/app/src/main/java/org/astraea/app/admin/ReplicaSyncingMonitor.java index 3a05a5b4db..8a789f4de8 100644 --- a/app/src/main/java/org/astraea/app/admin/ReplicaSyncingMonitor.java +++ b/app/src/main/java/org/astraea/app/admin/ReplicaSyncingMonitor.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import com.beust.jcommander.Parameter; diff --git a/app/src/main/java/org/astraea/app/admin/TopicCreator.java b/app/src/main/java/org/astraea/app/admin/TopicCreator.java index 5dd71d7405..6f194b18c0 100644 --- a/app/src/main/java/org/astraea/app/admin/TopicCreator.java +++ b/app/src/main/java/org/astraea/app/admin/TopicCreator.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/admin/TopicExplorer.java b/app/src/main/java/org/astraea/app/admin/TopicExplorer.java index 4274cc6236..19df57392d 100644 --- a/app/src/main/java/org/astraea/app/admin/TopicExplorer.java +++ b/app/src/main/java/org/astraea/app/admin/TopicExplorer.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import com.beust.jcommander.Parameter; diff --git a/app/src/main/java/org/astraea/app/admin/TopicPartition.java b/app/src/main/java/org/astraea/app/admin/TopicPartition.java index a6f0eaa3b3..11599bcc07 100644 --- a/app/src/main/java/org/astraea/app/admin/TopicPartition.java +++ b/app/src/main/java/org/astraea/app/admin/TopicPartition.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Objects; diff --git a/app/src/main/java/org/astraea/app/argument/Argument.java b/app/src/main/java/org/astraea/app/argument/Argument.java index e6f588f102..cff09c2f4d 100644 --- a/app/src/main/java/org/astraea/app/argument/Argument.java +++ b/app/src/main/java/org/astraea/app/argument/Argument.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.JCommander; diff --git a/app/src/main/java/org/astraea/app/argument/BooleanField.java b/app/src/main/java/org/astraea/app/argument/BooleanField.java index 6f4b2b974d..8a80589a6c 100644 --- a/app/src/main/java/org/astraea/app/argument/BooleanField.java +++ b/app/src/main/java/org/astraea/app/argument/BooleanField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/argument/CompressionField.java b/app/src/main/java/org/astraea/app/argument/CompressionField.java index fa459b0621..4422c1e51d 100644 --- a/app/src/main/java/org/astraea/app/argument/CompressionField.java +++ b/app/src/main/java/org/astraea/app/argument/CompressionField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/argument/DurationField.java b/app/src/main/java/org/astraea/app/argument/DurationField.java index 33709a7bc5..2d98d98f42 100644 --- a/app/src/main/java/org/astraea/app/argument/DurationField.java +++ b/app/src/main/java/org/astraea/app/argument/DurationField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/argument/Field.java b/app/src/main/java/org/astraea/app/argument/Field.java index d1f6eb7851..2169690985 100644 --- a/app/src/main/java/org/astraea/app/argument/Field.java +++ b/app/src/main/java/org/astraea/app/argument/Field.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.IParameterValidator; diff --git a/app/src/main/java/org/astraea/app/argument/IntegerSetField.java b/app/src/main/java/org/astraea/app/argument/IntegerSetField.java index 59d8f8b3d3..b7232e0782 100644 --- a/app/src/main/java/org/astraea/app/argument/IntegerSetField.java +++ b/app/src/main/java/org/astraea/app/argument/IntegerSetField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import java.util.Set; diff --git a/app/src/main/java/org/astraea/app/argument/NonEmptyStringField.java b/app/src/main/java/org/astraea/app/argument/NonEmptyStringField.java index 416b41aabd..094ca526c0 100644 --- a/app/src/main/java/org/astraea/app/argument/NonEmptyStringField.java +++ b/app/src/main/java/org/astraea/app/argument/NonEmptyStringField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class NonEmptyStringField extends Field { diff --git a/app/src/main/java/org/astraea/app/argument/NonNegativeDoubleField.java b/app/src/main/java/org/astraea/app/argument/NonNegativeDoubleField.java index 7a6e1f0e92..8c9a3ea947 100644 --- a/app/src/main/java/org/astraea/app/argument/NonNegativeDoubleField.java +++ b/app/src/main/java/org/astraea/app/argument/NonNegativeDoubleField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class NonNegativeDoubleField extends NonNegativeNumberField { diff --git a/app/src/main/java/org/astraea/app/argument/NonNegativeIntegerField.java b/app/src/main/java/org/astraea/app/argument/NonNegativeIntegerField.java index c4846a84b2..e6a1ea71f1 100644 --- a/app/src/main/java/org/astraea/app/argument/NonNegativeIntegerField.java +++ b/app/src/main/java/org/astraea/app/argument/NonNegativeIntegerField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class NonNegativeIntegerField extends NonNegativeNumberField { diff --git a/app/src/main/java/org/astraea/app/argument/NonNegativeLongField.java b/app/src/main/java/org/astraea/app/argument/NonNegativeLongField.java index 2d7eb72487..13034b48af 100644 --- a/app/src/main/java/org/astraea/app/argument/NonNegativeLongField.java +++ b/app/src/main/java/org/astraea/app/argument/NonNegativeLongField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class NonNegativeLongField extends NonNegativeNumberField { diff --git a/app/src/main/java/org/astraea/app/argument/NonNegativeNumberField.java b/app/src/main/java/org/astraea/app/argument/NonNegativeNumberField.java index 9416e944e2..45a32cd467 100644 --- a/app/src/main/java/org/astraea/app/argument/NonNegativeNumberField.java +++ b/app/src/main/java/org/astraea/app/argument/NonNegativeNumberField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/argument/NonNegativeShortField.java b/app/src/main/java/org/astraea/app/argument/NonNegativeShortField.java index e40390b05d..865d048a76 100644 --- a/app/src/main/java/org/astraea/app/argument/NonNegativeShortField.java +++ b/app/src/main/java/org/astraea/app/argument/NonNegativeShortField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class NonNegativeShortField extends NonNegativeNumberField { diff --git a/app/src/main/java/org/astraea/app/argument/PathField.java b/app/src/main/java/org/astraea/app/argument/PathField.java index b61c431a97..479d611341 100644 --- a/app/src/main/java/org/astraea/app/argument/PathField.java +++ b/app/src/main/java/org/astraea/app/argument/PathField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import java.nio.file.FileSystems; diff --git a/app/src/main/java/org/astraea/app/argument/PositiveDoubleField.java b/app/src/main/java/org/astraea/app/argument/PositiveDoubleField.java index cedb352486..6b522608cf 100644 --- a/app/src/main/java/org/astraea/app/argument/PositiveDoubleField.java +++ b/app/src/main/java/org/astraea/app/argument/PositiveDoubleField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class PositiveDoubleField extends PositiveNumberField { diff --git a/app/src/main/java/org/astraea/app/argument/PositiveIntegerField.java b/app/src/main/java/org/astraea/app/argument/PositiveIntegerField.java index 0439f2791a..bdcb8f0a89 100644 --- a/app/src/main/java/org/astraea/app/argument/PositiveIntegerField.java +++ b/app/src/main/java/org/astraea/app/argument/PositiveIntegerField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class PositiveIntegerField extends PositiveNumberField { diff --git a/app/src/main/java/org/astraea/app/argument/PositiveLongField.java b/app/src/main/java/org/astraea/app/argument/PositiveLongField.java index 815ce3c1fb..9095660785 100644 --- a/app/src/main/java/org/astraea/app/argument/PositiveLongField.java +++ b/app/src/main/java/org/astraea/app/argument/PositiveLongField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class PositiveLongField extends PositiveNumberField { diff --git a/app/src/main/java/org/astraea/app/argument/PositiveNumberField.java b/app/src/main/java/org/astraea/app/argument/PositiveNumberField.java index fb362aa8d0..5f9cbcae25 100644 --- a/app/src/main/java/org/astraea/app/argument/PositiveNumberField.java +++ b/app/src/main/java/org/astraea/app/argument/PositiveNumberField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/argument/PositiveShortField.java b/app/src/main/java/org/astraea/app/argument/PositiveShortField.java index aac985a06a..3a55404d1c 100644 --- a/app/src/main/java/org/astraea/app/argument/PositiveShortField.java +++ b/app/src/main/java/org/astraea/app/argument/PositiveShortField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; public class PositiveShortField extends PositiveNumberField { diff --git a/app/src/main/java/org/astraea/app/argument/SetField.java b/app/src/main/java/org/astraea/app/argument/SetField.java index 624d19f034..a733501d5c 100644 --- a/app/src/main/java/org/astraea/app/argument/SetField.java +++ b/app/src/main/java/org/astraea/app/argument/SetField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/argument/StringMapField.java b/app/src/main/java/org/astraea/app/argument/StringMapField.java index e1963feea2..85fcb4fada 100644 --- a/app/src/main/java/org/astraea/app/argument/StringMapField.java +++ b/app/src/main/java/org/astraea/app/argument/StringMapField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/argument/StringSetField.java b/app/src/main/java/org/astraea/app/argument/StringSetField.java index 1ba79d4857..b3e196283f 100644 --- a/app/src/main/java/org/astraea/app/argument/StringSetField.java +++ b/app/src/main/java/org/astraea/app/argument/StringSetField.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import java.util.Set; diff --git a/app/src/main/java/org/astraea/app/automation/Automation.java b/app/src/main/java/org/astraea/app/automation/Automation.java index 7e68ec9b21..2b9ba4411d 100644 --- a/app/src/main/java/org/astraea/app/automation/Automation.java +++ b/app/src/main/java/org/astraea/app/automation/Automation.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.automation; import com.beust.jcommander.Parameter; diff --git a/app/src/main/java/org/astraea/app/balancer/RebalancePlanProposal.java b/app/src/main/java/org/astraea/app/balancer/RebalancePlanProposal.java index acf432d129..12d5256a85 100644 --- a/app/src/main/java/org/astraea/app/balancer/RebalancePlanProposal.java +++ b/app/src/main/java/org/astraea/app/balancer/RebalancePlanProposal.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer; import java.util.ArrayList; diff --git a/app/src/main/java/org/astraea/app/balancer/generator/RebalancePlanGenerator.java b/app/src/main/java/org/astraea/app/balancer/generator/RebalancePlanGenerator.java index f8c2191b56..bfe1ca9b3e 100644 --- a/app/src/main/java/org/astraea/app/balancer/generator/RebalancePlanGenerator.java +++ b/app/src/main/java/org/astraea/app/balancer/generator/RebalancePlanGenerator.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer.generator; import java.util.stream.Stream; diff --git a/app/src/main/java/org/astraea/app/balancer/generator/ShufflePlanGenerator.java b/app/src/main/java/org/astraea/app/balancer/generator/ShufflePlanGenerator.java index 88d6c328ac..6c7c4e82f8 100644 --- a/app/src/main/java/org/astraea/app/balancer/generator/ShufflePlanGenerator.java +++ b/app/src/main/java/org/astraea/app/balancer/generator/ShufflePlanGenerator.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer.generator; import java.util.ArrayList; diff --git a/app/src/main/java/org/astraea/app/balancer/log/ClusterLogAllocation.java b/app/src/main/java/org/astraea/app/balancer/log/ClusterLogAllocation.java index 7bd80d7e7e..48c63dd893 100644 --- a/app/src/main/java/org/astraea/app/balancer/log/ClusterLogAllocation.java +++ b/app/src/main/java/org/astraea/app/balancer/log/ClusterLogAllocation.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer.log; import java.util.List; diff --git a/app/src/main/java/org/astraea/app/balancer/log/IllegalMigrationException.java b/app/src/main/java/org/astraea/app/balancer/log/IllegalMigrationException.java index 0c5668238f..9e59bd9514 100644 --- a/app/src/main/java/org/astraea/app/balancer/log/IllegalMigrationException.java +++ b/app/src/main/java/org/astraea/app/balancer/log/IllegalMigrationException.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer.log; public class IllegalMigrationException extends RuntimeException { diff --git a/app/src/main/java/org/astraea/app/balancer/log/LayeredClusterLogAllocation.java b/app/src/main/java/org/astraea/app/balancer/log/LayeredClusterLogAllocation.java index 1d599d2e69..386b57abbf 100644 --- a/app/src/main/java/org/astraea/app/balancer/log/LayeredClusterLogAllocation.java +++ b/app/src/main/java/org/astraea/app/balancer/log/LayeredClusterLogAllocation.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer.log; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/balancer/log/LogPlacement.java b/app/src/main/java/org/astraea/app/balancer/log/LogPlacement.java index f0a1e9a2ce..a0a573c9ef 100644 --- a/app/src/main/java/org/astraea/app/balancer/log/LogPlacement.java +++ b/app/src/main/java/org/astraea/app/balancer/log/LogPlacement.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer.log; import java.util.Optional; diff --git a/app/src/main/java/org/astraea/app/common/DataRate.java b/app/src/main/java/org/astraea/app/common/DataRate.java index ac3b16bdcb..e056427ecc 100644 --- a/app/src/main/java/org/astraea/app/common/DataRate.java +++ b/app/src/main/java/org/astraea/app/common/DataRate.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.common; import java.math.BigDecimal; diff --git a/app/src/main/java/org/astraea/app/common/DataSize.java b/app/src/main/java/org/astraea/app/common/DataSize.java index a1b51126b6..76889b11d5 100644 --- a/app/src/main/java/org/astraea/app/common/DataSize.java +++ b/app/src/main/java/org/astraea/app/common/DataSize.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.common; import java.math.BigDecimal; diff --git a/app/src/main/java/org/astraea/app/common/DataUnit.java b/app/src/main/java/org/astraea/app/common/DataUnit.java index 1526730d14..380ffcfc36 100644 --- a/app/src/main/java/org/astraea/app/common/DataUnit.java +++ b/app/src/main/java/org/astraea/app/common/DataUnit.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.common; import java.math.BigInteger; diff --git a/app/src/main/java/org/astraea/app/common/Utils.java b/app/src/main/java/org/astraea/app/common/Utils.java index 969fbec6dd..63d6d55e93 100644 --- a/app/src/main/java/org/astraea/app/common/Utils.java +++ b/app/src/main/java/org/astraea/app/common/Utils.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.common; import java.io.File; diff --git a/app/src/main/java/org/astraea/app/concurrent/Executor.java b/app/src/main/java/org/astraea/app/concurrent/Executor.java index dbc224fcc1..58bb44862c 100644 --- a/app/src/main/java/org/astraea/app/concurrent/Executor.java +++ b/app/src/main/java/org/astraea/app/concurrent/Executor.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.concurrent; @FunctionalInterface diff --git a/app/src/main/java/org/astraea/app/concurrent/State.java b/app/src/main/java/org/astraea/app/concurrent/State.java index 2b571680aa..fcc7e39299 100644 --- a/app/src/main/java/org/astraea/app/concurrent/State.java +++ b/app/src/main/java/org/astraea/app/concurrent/State.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.concurrent; public enum State { diff --git a/app/src/main/java/org/astraea/app/concurrent/ThreadPool.java b/app/src/main/java/org/astraea/app/concurrent/ThreadPool.java index c85cadd515..927b4fc518 100644 --- a/app/src/main/java/org/astraea/app/concurrent/ThreadPool.java +++ b/app/src/main/java/org/astraea/app/concurrent/ThreadPool.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.concurrent; import java.util.ArrayList; diff --git a/app/src/main/java/org/astraea/app/consumer/Builder.java b/app/src/main/java/org/astraea/app/consumer/Builder.java index 625e4c14e7..3f7a67f7bb 100644 --- a/app/src/main/java/org/astraea/app/consumer/Builder.java +++ b/app/src/main/java/org/astraea/app/consumer/Builder.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/consumer/Consumer.java b/app/src/main/java/org/astraea/app/consumer/Consumer.java index 967f298b5c..e893603c6f 100644 --- a/app/src/main/java/org/astraea/app/consumer/Consumer.java +++ b/app/src/main/java/org/astraea/app/consumer/Consumer.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/consumer/ConsumerRebalanceListener.java b/app/src/main/java/org/astraea/app/consumer/ConsumerRebalanceListener.java index 4fdc5217f6..4415a0aab8 100644 --- a/app/src/main/java/org/astraea/app/consumer/ConsumerRebalanceListener.java +++ b/app/src/main/java/org/astraea/app/consumer/ConsumerRebalanceListener.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/consumer/Deserializer.java b/app/src/main/java/org/astraea/app/consumer/Deserializer.java index 92e89920b2..a33b0de167 100644 --- a/app/src/main/java/org/astraea/app/consumer/Deserializer.java +++ b/app/src/main/java/org/astraea/app/consumer/Deserializer.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/consumer/Header.java b/app/src/main/java/org/astraea/app/consumer/Header.java index e3008b4c24..55f82f384f 100644 --- a/app/src/main/java/org/astraea/app/consumer/Header.java +++ b/app/src/main/java/org/astraea/app/consumer/Header.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/consumer/Isolation.java b/app/src/main/java/org/astraea/app/consumer/Isolation.java index 717636742c..c77b8574ab 100644 --- a/app/src/main/java/org/astraea/app/consumer/Isolation.java +++ b/app/src/main/java/org/astraea/app/consumer/Isolation.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.util.Locale; diff --git a/app/src/main/java/org/astraea/app/consumer/Record.java b/app/src/main/java/org/astraea/app/consumer/Record.java index d73f6ac359..3c0487e353 100644 --- a/app/src/main/java/org/astraea/app/consumer/Record.java +++ b/app/src/main/java/org/astraea/app/consumer/Record.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/cost/BrokerCost.java b/app/src/main/java/org/astraea/app/cost/BrokerCost.java index 4b5dd2a70e..6b712c2f11 100644 --- a/app/src/main/java/org/astraea/app/cost/BrokerCost.java +++ b/app/src/main/java/org/astraea/app/cost/BrokerCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Map; diff --git a/app/src/main/java/org/astraea/app/cost/ClusterInfo.java b/app/src/main/java/org/astraea/app/cost/ClusterInfo.java index eb26b94c3a..261ae2c30c 100644 --- a/app/src/main/java/org/astraea/app/cost/ClusterInfo.java +++ b/app/src/main/java/org/astraea/app/cost/ClusterInfo.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.ArrayList; diff --git a/app/src/main/java/org/astraea/app/cost/CostFunction.java b/app/src/main/java/org/astraea/app/cost/CostFunction.java index 2f75d8f549..e40f3be4b5 100644 --- a/app/src/main/java/org/astraea/app/cost/CostFunction.java +++ b/app/src/main/java/org/astraea/app/cost/CostFunction.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import org.astraea.app.metrics.collector.Fetcher; diff --git a/app/src/main/java/org/astraea/app/cost/HasBrokerCost.java b/app/src/main/java/org/astraea/app/cost/HasBrokerCost.java index fad62c85e1..9207d5e6d9 100644 --- a/app/src/main/java/org/astraea/app/cost/HasBrokerCost.java +++ b/app/src/main/java/org/astraea/app/cost/HasBrokerCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; public interface HasBrokerCost extends CostFunction { diff --git a/app/src/main/java/org/astraea/app/cost/HasPartitionCost.java b/app/src/main/java/org/astraea/app/cost/HasPartitionCost.java index eb67532264..186daf059c 100644 --- a/app/src/main/java/org/astraea/app/cost/HasPartitionCost.java +++ b/app/src/main/java/org/astraea/app/cost/HasPartitionCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; public interface HasPartitionCost extends CostFunction { diff --git a/app/src/main/java/org/astraea/app/cost/LoadCost.java b/app/src/main/java/org/astraea/app/cost/LoadCost.java index 6295f8ef8d..a584dab72c 100644 --- a/app/src/main/java/org/astraea/app/cost/LoadCost.java +++ b/app/src/main/java/org/astraea/app/cost/LoadCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/cost/NodeInfo.java b/app/src/main/java/org/astraea/app/cost/NodeInfo.java index d19d312f96..9cfb1f53ae 100644 --- a/app/src/main/java/org/astraea/app/cost/NodeInfo.java +++ b/app/src/main/java/org/astraea/app/cost/NodeInfo.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Objects; diff --git a/app/src/main/java/org/astraea/app/cost/Normalizer.java b/app/src/main/java/org/astraea/app/cost/Normalizer.java index 703967fc1f..2ce2e99ced 100644 --- a/app/src/main/java/org/astraea/app/cost/Normalizer.java +++ b/app/src/main/java/org/astraea/app/cost/Normalizer.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/cost/PartitionCost.java b/app/src/main/java/org/astraea/app/cost/PartitionCost.java index 2a11a1aa70..2061ef21ec 100644 --- a/app/src/main/java/org/astraea/app/cost/PartitionCost.java +++ b/app/src/main/java/org/astraea/app/cost/PartitionCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Map; diff --git a/app/src/main/java/org/astraea/app/cost/Periodic.java b/app/src/main/java/org/astraea/app/cost/Periodic.java index 8879854745..f55f55fea8 100644 --- a/app/src/main/java/org/astraea/app/cost/Periodic.java +++ b/app/src/main/java/org/astraea/app/cost/Periodic.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/cost/ReplicaInfo.java b/app/src/main/java/org/astraea/app/cost/ReplicaInfo.java index a7b88bf6b8..06b26a04c1 100644 --- a/app/src/main/java/org/astraea/app/cost/ReplicaInfo.java +++ b/app/src/main/java/org/astraea/app/cost/ReplicaInfo.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.List; diff --git a/app/src/main/java/org/astraea/app/cost/ThroughputCost.java b/app/src/main/java/org/astraea/app/cost/ThroughputCost.java index 0183256bf0..bcc7e1d901 100644 --- a/app/src/main/java/org/astraea/app/cost/ThroughputCost.java +++ b/app/src/main/java/org/astraea/app/cost/ThroughputCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/cost/WeightProvider.java b/app/src/main/java/org/astraea/app/cost/WeightProvider.java index 25f86835f1..977d913cb1 100644 --- a/app/src/main/java/org/astraea/app/cost/WeightProvider.java +++ b/app/src/main/java/org/astraea/app/cost/WeightProvider.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/cost/broker/BrokerInputCost.java b/app/src/main/java/org/astraea/app/cost/broker/BrokerInputCost.java index 3f760c5c03..53c9d774c3 100644 --- a/app/src/main/java/org/astraea/app/cost/broker/BrokerInputCost.java +++ b/app/src/main/java/org/astraea/app/cost/broker/BrokerInputCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.HashMap; diff --git a/app/src/main/java/org/astraea/app/cost/broker/BrokerOutputCost.java b/app/src/main/java/org/astraea/app/cost/broker/BrokerOutputCost.java index c156d071f9..c8a268f74a 100644 --- a/app/src/main/java/org/astraea/app/cost/broker/BrokerOutputCost.java +++ b/app/src/main/java/org/astraea/app/cost/broker/BrokerOutputCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.HashMap; diff --git a/app/src/main/java/org/astraea/app/cost/broker/CostUtils.java b/app/src/main/java/org/astraea/app/cost/broker/CostUtils.java index 6ee53df69b..320a900d14 100644 --- a/app/src/main/java/org/astraea/app/cost/broker/CostUtils.java +++ b/app/src/main/java/org/astraea/app/cost/broker/CostUtils.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.Map; diff --git a/app/src/main/java/org/astraea/app/cost/broker/CpuCost.java b/app/src/main/java/org/astraea/app/cost/broker/CpuCost.java index dfbb025e68..123d7c2089 100644 --- a/app/src/main/java/org/astraea/app/cost/broker/CpuCost.java +++ b/app/src/main/java/org/astraea/app/cost/broker/CpuCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.HashMap; diff --git a/app/src/main/java/org/astraea/app/cost/broker/MemoryCost.java b/app/src/main/java/org/astraea/app/cost/broker/MemoryCost.java index a454a98d13..b7488a0e84 100644 --- a/app/src/main/java/org/astraea/app/cost/broker/MemoryCost.java +++ b/app/src/main/java/org/astraea/app/cost/broker/MemoryCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.HashMap; diff --git a/app/src/main/java/org/astraea/app/cost/broker/NeutralIntegratedCost.java b/app/src/main/java/org/astraea/app/cost/broker/NeutralIntegratedCost.java index 32ab406f90..a447d86cd7 100644 --- a/app/src/main/java/org/astraea/app/cost/broker/NeutralIntegratedCost.java +++ b/app/src/main/java/org/astraea/app/cost/broker/NeutralIntegratedCost.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.Arrays; diff --git a/app/src/main/java/org/astraea/app/cost/topic/CalculateUtils.java b/app/src/main/java/org/astraea/app/cost/topic/CalculateUtils.java index de67a6a214..54ee0dc89c 100644 --- a/app/src/main/java/org/astraea/app/cost/topic/CalculateUtils.java +++ b/app/src/main/java/org/astraea/app/cost/topic/CalculateUtils.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.topic; import java.util.HashMap; diff --git a/app/src/main/java/org/astraea/app/cost/topic/GetPartitionInf.java b/app/src/main/java/org/astraea/app/cost/topic/GetPartitionInf.java index 72eb914a18..a8b39918a1 100644 --- a/app/src/main/java/org/astraea/app/cost/topic/GetPartitionInf.java +++ b/app/src/main/java/org/astraea/app/cost/topic/GetPartitionInf.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.topic; import java.util.HashMap; diff --git a/app/src/main/java/org/astraea/app/cost/topic/PartitionScore.java b/app/src/main/java/org/astraea/app/cost/topic/PartitionScore.java index b940c79e5c..59fd058279 100644 --- a/app/src/main/java/org/astraea/app/cost/topic/PartitionScore.java +++ b/app/src/main/java/org/astraea/app/cost/topic/PartitionScore.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.topic; import com.beust.jcommander.Parameter; diff --git a/app/src/main/java/org/astraea/app/database/Builder.java b/app/src/main/java/org/astraea/app/database/Builder.java index f9138872a9..d6af4d5479 100644 --- a/app/src/main/java/org/astraea/app/database/Builder.java +++ b/app/src/main/java/org/astraea/app/database/Builder.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.database; import java.sql.Connection; diff --git a/app/src/main/java/org/astraea/app/database/ColumnInfo.java b/app/src/main/java/org/astraea/app/database/ColumnInfo.java index c1dc187a71..fc359cac96 100644 --- a/app/src/main/java/org/astraea/app/database/ColumnInfo.java +++ b/app/src/main/java/org/astraea/app/database/ColumnInfo.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.database; import java.util.Objects; diff --git a/app/src/main/java/org/astraea/app/database/DatabaseClient.java b/app/src/main/java/org/astraea/app/database/DatabaseClient.java index dd2916c32f..4194449b9a 100644 --- a/app/src/main/java/org/astraea/app/database/DatabaseClient.java +++ b/app/src/main/java/org/astraea/app/database/DatabaseClient.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.database; public interface DatabaseClient extends AutoCloseable { diff --git a/app/src/main/java/org/astraea/app/database/TableCreator.java b/app/src/main/java/org/astraea/app/database/TableCreator.java index e05cc98225..85483a8247 100644 --- a/app/src/main/java/org/astraea/app/database/TableCreator.java +++ b/app/src/main/java/org/astraea/app/database/TableCreator.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.database; public interface TableCreator { diff --git a/app/src/main/java/org/astraea/app/database/TableInfo.java b/app/src/main/java/org/astraea/app/database/TableInfo.java index d72aaba032..537dc08a39 100644 --- a/app/src/main/java/org/astraea/app/database/TableInfo.java +++ b/app/src/main/java/org/astraea/app/database/TableInfo.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.database; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/database/TableQuery.java b/app/src/main/java/org/astraea/app/database/TableQuery.java index 82332fbbc7..f26cf1fd98 100644 --- a/app/src/main/java/org/astraea/app/database/TableQuery.java +++ b/app/src/main/java/org/astraea/app/database/TableQuery.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.database; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/metrics/HasBeanObject.java b/app/src/main/java/org/astraea/app/metrics/HasBeanObject.java index 3a18b3e6a1..3dd3fb9903 100644 --- a/app/src/main/java/org/astraea/app/metrics/HasBeanObject.java +++ b/app/src/main/java/org/astraea/app/metrics/HasBeanObject.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics; import org.astraea.app.metrics.jmx.BeanObject; diff --git a/app/src/main/java/org/astraea/app/metrics/MetricExplorer.java b/app/src/main/java/org/astraea/app/metrics/MetricExplorer.java index d84071d3bd..5d0719e42b 100644 --- a/app/src/main/java/org/astraea/app/metrics/MetricExplorer.java +++ b/app/src/main/java/org/astraea/app/metrics/MetricExplorer.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics; import com.beust.jcommander.IParameterValidator; diff --git a/app/src/main/java/org/astraea/app/metrics/collector/BeanCollector.java b/app/src/main/java/org/astraea/app/metrics/collector/BeanCollector.java index bf14bb85a9..3070f04599 100644 --- a/app/src/main/java/org/astraea/app/metrics/collector/BeanCollector.java +++ b/app/src/main/java/org/astraea/app/metrics/collector/BeanCollector.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.collector; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/metrics/collector/Fetcher.java b/app/src/main/java/org/astraea/app/metrics/collector/Fetcher.java index dcc2cb214a..c0a5e3d3e5 100644 --- a/app/src/main/java/org/astraea/app/metrics/collector/Fetcher.java +++ b/app/src/main/java/org/astraea/app/metrics/collector/Fetcher.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.collector; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/metrics/collector/Receiver.java b/app/src/main/java/org/astraea/app/metrics/collector/Receiver.java index 4e8cec3efd..f12b6f03e3 100644 --- a/app/src/main/java/org/astraea/app/metrics/collector/Receiver.java +++ b/app/src/main/java/org/astraea/app/metrics/collector/Receiver.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.collector; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/metrics/collector/Register.java b/app/src/main/java/org/astraea/app/metrics/collector/Register.java index 7482c95622..bd8aaa29f9 100644 --- a/app/src/main/java/org/astraea/app/metrics/collector/Register.java +++ b/app/src/main/java/org/astraea/app/metrics/collector/Register.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.collector; public interface Register { diff --git a/app/src/main/java/org/astraea/app/metrics/java/HasJvmMemory.java b/app/src/main/java/org/astraea/app/metrics/java/HasJvmMemory.java index a209faf7df..720860887e 100644 --- a/app/src/main/java/org/astraea/app/metrics/java/HasJvmMemory.java +++ b/app/src/main/java/org/astraea/app/metrics/java/HasJvmMemory.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.java; import java.lang.management.MemoryUsage; diff --git a/app/src/main/java/org/astraea/app/metrics/java/HasOperatingSystemInfo.java b/app/src/main/java/org/astraea/app/metrics/java/HasOperatingSystemInfo.java index 903a447055..20bfa9a634 100644 --- a/app/src/main/java/org/astraea/app/metrics/java/HasOperatingSystemInfo.java +++ b/app/src/main/java/org/astraea/app/metrics/java/HasOperatingSystemInfo.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.java; import org.astraea.app.metrics.HasBeanObject; diff --git a/app/src/main/java/org/astraea/app/metrics/java/JvmMemory.java b/app/src/main/java/org/astraea/app/metrics/java/JvmMemory.java index 907a1222d5..bb1500c66a 100644 --- a/app/src/main/java/org/astraea/app/metrics/java/JvmMemory.java +++ b/app/src/main/java/org/astraea/app/metrics/java/JvmMemory.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.java; import java.lang.management.MemoryUsage; diff --git a/app/src/main/java/org/astraea/app/metrics/java/OperatingSystemInfo.java b/app/src/main/java/org/astraea/app/metrics/java/OperatingSystemInfo.java index 1d9cb53820..ef767d7c52 100644 --- a/app/src/main/java/org/astraea/app/metrics/java/OperatingSystemInfo.java +++ b/app/src/main/java/org/astraea/app/metrics/java/OperatingSystemInfo.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.java; import java.util.Map; diff --git a/app/src/main/java/org/astraea/app/metrics/jmx/BeanObject.java b/app/src/main/java/org/astraea/app/metrics/jmx/BeanObject.java index 74faafd583..34f7557da8 100644 --- a/app/src/main/java/org/astraea/app/metrics/jmx/BeanObject.java +++ b/app/src/main/java/org/astraea/app/metrics/jmx/BeanObject.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.jmx; import static java.util.Map.Entry; diff --git a/app/src/main/java/org/astraea/app/metrics/jmx/BeanQuery.java b/app/src/main/java/org/astraea/app/metrics/jmx/BeanQuery.java index 5d715d3442..1169bc49df 100644 --- a/app/src/main/java/org/astraea/app/metrics/jmx/BeanQuery.java +++ b/app/src/main/java/org/astraea/app/metrics/jmx/BeanQuery.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.jmx; import java.util.HashMap; diff --git a/app/src/main/java/org/astraea/app/metrics/jmx/MBeanClient.java b/app/src/main/java/org/astraea/app/metrics/jmx/MBeanClient.java index b731403a3a..c46462df4c 100644 --- a/app/src/main/java/org/astraea/app/metrics/jmx/MBeanClient.java +++ b/app/src/main/java/org/astraea/app/metrics/jmx/MBeanClient.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.jmx; import java.net.MalformedURLException; diff --git a/app/src/main/java/org/astraea/app/metrics/jmx/MBeanClientImpl.java b/app/src/main/java/org/astraea/app/metrics/jmx/MBeanClientImpl.java index 413a632a1c..67c44c4aef 100644 --- a/app/src/main/java/org/astraea/app/metrics/jmx/MBeanClientImpl.java +++ b/app/src/main/java/org/astraea/app/metrics/jmx/MBeanClientImpl.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.jmx; import java.io.IOException; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/BrokerTopicMetricsResult.java b/app/src/main/java/org/astraea/app/metrics/kafka/BrokerTopicMetricsResult.java index d92059a6c8..93e490dc41 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/BrokerTopicMetricsResult.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/BrokerTopicMetricsResult.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import java.util.Map; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/HasCount.java b/app/src/main/java/org/astraea/app/metrics/kafka/HasCount.java index a619eee52e..7a2d47a4eb 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/HasCount.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/HasCount.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import org.astraea.app.metrics.HasBeanObject; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/HasEventType.java b/app/src/main/java/org/astraea/app/metrics/kafka/HasEventType.java index b8dc732774..093ccf478f 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/HasEventType.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/HasEventType.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import org.astraea.app.metrics.HasBeanObject; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/HasPercentiles.java b/app/src/main/java/org/astraea/app/metrics/kafka/HasPercentiles.java index e80fce217e..ee07e2ab49 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/HasPercentiles.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/HasPercentiles.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import org.astraea.app.metrics.HasBeanObject; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/HasRate.java b/app/src/main/java/org/astraea/app/metrics/kafka/HasRate.java index 08197c355c..8822356881 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/HasRate.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/HasRate.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import java.util.concurrent.TimeUnit; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/HasStatistics.java b/app/src/main/java/org/astraea/app/metrics/kafka/HasStatistics.java index bce444951c..c0dd7859e1 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/HasStatistics.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/HasStatistics.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import org.astraea.app.metrics.HasBeanObject; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/HasValue.java b/app/src/main/java/org/astraea/app/metrics/kafka/HasValue.java index c77cad9c89..97e3287cab 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/HasValue.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/HasValue.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import org.astraea.app.metrics.HasBeanObject; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/KafkaMetrics.java b/app/src/main/java/org/astraea/app/metrics/kafka/KafkaMetrics.java index 28b677ec73..42748e05fd 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/KafkaMetrics.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/KafkaMetrics.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import java.util.Arrays; diff --git a/app/src/main/java/org/astraea/app/metrics/kafka/TotalTimeMs.java b/app/src/main/java/org/astraea/app/metrics/kafka/TotalTimeMs.java index 4b0a64388a..b1feefec2e 100644 --- a/app/src/main/java/org/astraea/app/metrics/kafka/TotalTimeMs.java +++ b/app/src/main/java/org/astraea/app/metrics/kafka/TotalTimeMs.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import java.util.Map; diff --git a/app/src/main/java/org/astraea/app/partitioner/Configuration.java b/app/src/main/java/org/astraea/app/partitioner/Configuration.java index 419b8aa760..11928a8fe4 100644 --- a/app/src/main/java/org/astraea/app/partitioner/Configuration.java +++ b/app/src/main/java/org/astraea/app/partitioner/Configuration.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner; import java.util.Arrays; diff --git a/app/src/main/java/org/astraea/app/partitioner/Dispatcher.java b/app/src/main/java/org/astraea/app/partitioner/Dispatcher.java index 9f803a2c96..6a4a860bef 100644 --- a/app/src/main/java/org/astraea/app/partitioner/Dispatcher.java +++ b/app/src/main/java/org/astraea/app/partitioner/Dispatcher.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner; import java.util.Map; diff --git a/app/src/main/java/org/astraea/app/partitioner/PartitionerUtils.java b/app/src/main/java/org/astraea/app/partitioner/PartitionerUtils.java index 4f5e2d17cc..658f4cfe86 100644 --- a/app/src/main/java/org/astraea/app/partitioner/PartitionerUtils.java +++ b/app/src/main/java/org/astraea/app/partitioner/PartitionerUtils.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner; import java.io.FileInputStream; diff --git a/app/src/main/java/org/astraea/app/partitioner/StrictCostDispatcher.java b/app/src/main/java/org/astraea/app/partitioner/StrictCostDispatcher.java index 36b1f0b544..bc08727600 100644 --- a/app/src/main/java/org/astraea/app/partitioner/StrictCostDispatcher.java +++ b/app/src/main/java/org/astraea/app/partitioner/StrictCostDispatcher.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobin.java b/app/src/main/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobin.java index 9285619f4b..f78a1b7770 100644 --- a/app/src/main/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobin.java +++ b/app/src/main/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobin.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner.smooth; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinDispatcher.java b/app/src/main/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinDispatcher.java index fbc0fdf3e4..6bfbb3933e 100644 --- a/app/src/main/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinDispatcher.java +++ b/app/src/main/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinDispatcher.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner.smooth; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/performance/DataSupplier.java b/app/src/main/java/org/astraea/app/performance/DataSupplier.java index c8de8bd93f..6a2ffaf17a 100644 --- a/app/src/main/java/org/astraea/app/performance/DataSupplier.java +++ b/app/src/main/java/org/astraea/app/performance/DataSupplier.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.util.Arrays; diff --git a/app/src/main/java/org/astraea/app/performance/DistributionType.java b/app/src/main/java/org/astraea/app/performance/DistributionType.java index 7664c55180..5f06c949c9 100644 --- a/app/src/main/java/org/astraea/app/performance/DistributionType.java +++ b/app/src/main/java/org/astraea/app/performance/DistributionType.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/performance/ExeTime.java b/app/src/main/java/org/astraea/app/performance/ExeTime.java index 6a2494e161..1f4aa57363 100644 --- a/app/src/main/java/org/astraea/app/performance/ExeTime.java +++ b/app/src/main/java/org/astraea/app/performance/ExeTime.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import com.beust.jcommander.ParameterException; diff --git a/app/src/main/java/org/astraea/app/performance/Manager.java b/app/src/main/java/org/astraea/app/performance/Manager.java index 59b834f5c0..d73e3127f2 100644 --- a/app/src/main/java/org/astraea/app/performance/Manager.java +++ b/app/src/main/java/org/astraea/app/performance/Manager.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.util.List; diff --git a/app/src/main/java/org/astraea/app/performance/Metrics.java b/app/src/main/java/org/astraea/app/performance/Metrics.java index 8031109df7..a1cb8ff0d5 100644 --- a/app/src/main/java/org/astraea/app/performance/Metrics.java +++ b/app/src/main/java/org/astraea/app/performance/Metrics.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.util.function.BiConsumer; diff --git a/app/src/main/java/org/astraea/app/performance/Performance.java b/app/src/main/java/org/astraea/app/performance/Performance.java index 209ccdf409..afa52047d4 100644 --- a/app/src/main/java/org/astraea/app/performance/Performance.java +++ b/app/src/main/java/org/astraea/app/performance/Performance.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import com.beust.jcommander.Parameter; diff --git a/app/src/main/java/org/astraea/app/performance/ProducerExecutor.java b/app/src/main/java/org/astraea/app/performance/ProducerExecutor.java index 787e16bc64..79d2147069 100644 --- a/app/src/main/java/org/astraea/app/performance/ProducerExecutor.java +++ b/app/src/main/java/org/astraea/app/performance/ProducerExecutor.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/performance/ReportFormat.java b/app/src/main/java/org/astraea/app/performance/ReportFormat.java index 973349bf72..8a792d9cd2 100644 --- a/app/src/main/java/org/astraea/app/performance/ReportFormat.java +++ b/app/src/main/java/org/astraea/app/performance/ReportFormat.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import com.beust.jcommander.IStringConverter; diff --git a/app/src/main/java/org/astraea/app/performance/Tracker.java b/app/src/main/java/org/astraea/app/performance/Tracker.java index 09aeefa6d9..c04d868762 100644 --- a/app/src/main/java/org/astraea/app/performance/Tracker.java +++ b/app/src/main/java/org/astraea/app/performance/Tracker.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.time.Duration; diff --git a/app/src/main/java/org/astraea/app/producer/AbstractSender.java b/app/src/main/java/org/astraea/app/producer/AbstractSender.java index ba28695a1f..c7a8e4b45a 100644 --- a/app/src/main/java/org/astraea/app/producer/AbstractSender.java +++ b/app/src/main/java/org/astraea/app/producer/AbstractSender.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.producer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/producer/Builder.java b/app/src/main/java/org/astraea/app/producer/Builder.java index b8e4812587..96a3411ea1 100644 --- a/app/src/main/java/org/astraea/app/producer/Builder.java +++ b/app/src/main/java/org/astraea/app/producer/Builder.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.producer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/producer/Metadata.java b/app/src/main/java/org/astraea/app/producer/Metadata.java index ae93b96119..aac52eca66 100644 --- a/app/src/main/java/org/astraea/app/producer/Metadata.java +++ b/app/src/main/java/org/astraea/app/producer/Metadata.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.producer; import org.apache.kafka.clients.producer.RecordMetadata; diff --git a/app/src/main/java/org/astraea/app/producer/Producer.java b/app/src/main/java/org/astraea/app/producer/Producer.java index 69f72da84b..b76bc4e19b 100644 --- a/app/src/main/java/org/astraea/app/producer/Producer.java +++ b/app/src/main/java/org/astraea/app/producer/Producer.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.producer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/producer/Sender.java b/app/src/main/java/org/astraea/app/producer/Sender.java index 77ca0594f0..9ea8092351 100644 --- a/app/src/main/java/org/astraea/app/producer/Sender.java +++ b/app/src/main/java/org/astraea/app/producer/Sender.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.producer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/producer/Serializer.java b/app/src/main/java/org/astraea/app/producer/Serializer.java index ce99c9074f..074634d531 100644 --- a/app/src/main/java/org/astraea/app/producer/Serializer.java +++ b/app/src/main/java/org/astraea/app/producer/Serializer.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.producer; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/web/BrokerHandler.java b/app/src/main/java/org/astraea/app/web/BrokerHandler.java index 3155c46fa8..25a47838e4 100644 --- a/app/src/main/java/org/astraea/app/web/BrokerHandler.java +++ b/app/src/main/java/org/astraea/app/web/BrokerHandler.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.List; diff --git a/app/src/main/java/org/astraea/app/web/ErrorObject.java b/app/src/main/java/org/astraea/app/web/ErrorObject.java index 04b50f27ca..c96e83e776 100644 --- a/app/src/main/java/org/astraea/app/web/ErrorObject.java +++ b/app/src/main/java/org/astraea/app/web/ErrorObject.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.NoSuchElementException; diff --git a/app/src/main/java/org/astraea/app/web/GroupHandler.java b/app/src/main/java/org/astraea/app/web/GroupHandler.java index fe4ad412a8..670144d853 100644 --- a/app/src/main/java/org/astraea/app/web/GroupHandler.java +++ b/app/src/main/java/org/astraea/app/web/GroupHandler.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.List; diff --git a/app/src/main/java/org/astraea/app/web/Handler.java b/app/src/main/java/org/astraea/app/web/Handler.java index ae11e810aa..07e3fe19a2 100644 --- a/app/src/main/java/org/astraea/app/web/Handler.java +++ b/app/src/main/java/org/astraea/app/web/Handler.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import com.sun.net.httpserver.HttpExchange; diff --git a/app/src/main/java/org/astraea/app/web/JsonObject.java b/app/src/main/java/org/astraea/app/web/JsonObject.java index 063fd1c8fc..7bdb4c16c7 100644 --- a/app/src/main/java/org/astraea/app/web/JsonObject.java +++ b/app/src/main/java/org/astraea/app/web/JsonObject.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import com.google.gson.Gson; diff --git a/app/src/main/java/org/astraea/app/web/PipelineHandler.java b/app/src/main/java/org/astraea/app/web/PipelineHandler.java index 409ea54d80..82d5c99d97 100644 --- a/app/src/main/java/org/astraea/app/web/PipelineHandler.java +++ b/app/src/main/java/org/astraea/app/web/PipelineHandler.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.ArrayList; diff --git a/app/src/main/java/org/astraea/app/web/PostRequest.java b/app/src/main/java/org/astraea/app/web/PostRequest.java index 9db7ceb7df..8b4ec77e7f 100644 --- a/app/src/main/java/org/astraea/app/web/PostRequest.java +++ b/app/src/main/java/org/astraea/app/web/PostRequest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import com.google.gson.Gson; diff --git a/app/src/main/java/org/astraea/app/web/ProducerHandler.java b/app/src/main/java/org/astraea/app/web/ProducerHandler.java index e4a2bafc33..be3dd78953 100644 --- a/app/src/main/java/org/astraea/app/web/ProducerHandler.java +++ b/app/src/main/java/org/astraea/app/web/ProducerHandler.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.List; diff --git a/app/src/main/java/org/astraea/app/web/QuotaHandler.java b/app/src/main/java/org/astraea/app/web/QuotaHandler.java index 1f7b172404..2eb17e7ebf 100644 --- a/app/src/main/java/org/astraea/app/web/QuotaHandler.java +++ b/app/src/main/java/org/astraea/app/web/QuotaHandler.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/web/TopicHandler.java b/app/src/main/java/org/astraea/app/web/TopicHandler.java index 30faaa9240..0429855c5b 100644 --- a/app/src/main/java/org/astraea/app/web/TopicHandler.java +++ b/app/src/main/java/org/astraea/app/web/TopicHandler.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.Collection; diff --git a/app/src/main/java/org/astraea/app/web/WebService.java b/app/src/main/java/org/astraea/app/web/WebService.java index 029e0c90aa..5ba51f8b30 100644 --- a/app/src/main/java/org/astraea/app/web/WebService.java +++ b/app/src/main/java/org/astraea/app/web/WebService.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import com.beust.jcommander.Parameter; diff --git a/app/src/test/java/org/astraea/app/AppTest.java b/app/src/test/java/org/astraea/app/AppTest.java index 19b5856e6b..cfc1f3c4d7 100644 --- a/app/src/test/java/org/astraea/app/AppTest.java +++ b/app/src/test/java/org/astraea/app/AppTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/admin/AdminTest.java b/app/src/test/java/org/astraea/app/admin/AdminTest.java index 1b42c01595..de011fd7c1 100644 --- a/app/src/test/java/org/astraea/app/admin/AdminTest.java +++ b/app/src/test/java/org/astraea/app/admin/AdminTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import static org.junit.jupiter.api.condition.OS.WINDOWS; diff --git a/app/src/test/java/org/astraea/app/admin/CompressionTest.java b/app/src/test/java/org/astraea/app/admin/CompressionTest.java index e897f0de65..e15485a82d 100644 --- a/app/src/test/java/org/astraea/app/admin/CompressionTest.java +++ b/app/src/test/java/org/astraea/app/admin/CompressionTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Arrays; diff --git a/app/src/test/java/org/astraea/app/admin/QuotaTest.java b/app/src/test/java/org/astraea/app/admin/QuotaTest.java index 3af1b3b7fa..a4b47579d3 100644 --- a/app/src/test/java/org/astraea/app/admin/QuotaTest.java +++ b/app/src/test/java/org/astraea/app/admin/QuotaTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import java.util.Arrays; diff --git a/app/src/test/java/org/astraea/app/admin/ReplicaCollieTest.java b/app/src/test/java/org/astraea/app/admin/ReplicaCollieTest.java index db8b1b8b0f..3bb87dc378 100644 --- a/app/src/test/java/org/astraea/app/admin/ReplicaCollieTest.java +++ b/app/src/test/java/org/astraea/app/admin/ReplicaCollieTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import static org.junit.jupiter.api.condition.OS.WINDOWS; diff --git a/app/src/test/java/org/astraea/app/admin/ReplicaSyncingMonitorIntegrationTest.java b/app/src/test/java/org/astraea/app/admin/ReplicaSyncingMonitorIntegrationTest.java index 5b5e7ec9f8..8c23b1f295 100644 --- a/app/src/test/java/org/astraea/app/admin/ReplicaSyncingMonitorIntegrationTest.java +++ b/app/src/test/java/org/astraea/app/admin/ReplicaSyncingMonitorIntegrationTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/admin/ReplicaSyncingMonitorTest.java b/app/src/test/java/org/astraea/app/admin/ReplicaSyncingMonitorTest.java index 9f1e566c83..780f028c4f 100644 --- a/app/src/test/java/org/astraea/app/admin/ReplicaSyncingMonitorTest.java +++ b/app/src/test/java/org/astraea/app/admin/ReplicaSyncingMonitorTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; diff --git a/app/src/test/java/org/astraea/app/admin/TopicExplorerTest.java b/app/src/test/java/org/astraea/app/admin/TopicExplorerTest.java index c45f9d2829..ef668c05c0 100644 --- a/app/src/test/java/org/astraea/app/admin/TopicExplorerTest.java +++ b/app/src/test/java/org/astraea/app/admin/TopicExplorerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/admin/TopicPartitionTest.java b/app/src/test/java/org/astraea/app/admin/TopicPartitionTest.java index 76651abcd8..2bd07e5e48 100644 --- a/app/src/test/java/org/astraea/app/admin/TopicPartitionTest.java +++ b/app/src/test/java/org/astraea/app/admin/TopicPartitionTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.admin; import org.junit.jupiter.api.Assertions; diff --git a/app/src/test/java/org/astraea/app/argument/ArgumentTest.java b/app/src/test/java/org/astraea/app/argument/ArgumentTest.java index 58925d5ded..e51ad939c1 100644 --- a/app/src/test/java/org/astraea/app/argument/ArgumentTest.java +++ b/app/src/test/java/org/astraea/app/argument/ArgumentTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import java.io.BufferedWriter; diff --git a/app/src/test/java/org/astraea/app/argument/CompressionFieldTest.java b/app/src/test/java/org/astraea/app/argument/CompressionFieldTest.java index a314ad5422..bf963c7ca3 100644 --- a/app/src/test/java/org/astraea/app/argument/CompressionFieldTest.java +++ b/app/src/test/java/org/astraea/app/argument/CompressionFieldTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.Parameter; diff --git a/app/src/test/java/org/astraea/app/argument/DurationFieldTest.java b/app/src/test/java/org/astraea/app/argument/DurationFieldTest.java index da21b42d77..79ce67858c 100644 --- a/app/src/test/java/org/astraea/app/argument/DurationFieldTest.java +++ b/app/src/test/java/org/astraea/app/argument/DurationFieldTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/test/java/org/astraea/app/argument/FieldTest.java b/app/src/test/java/org/astraea/app/argument/FieldTest.java index fb2c832ed1..229ccb1fc4 100644 --- a/app/src/test/java/org/astraea/app/argument/FieldTest.java +++ b/app/src/test/java/org/astraea/app/argument/FieldTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/test/java/org/astraea/app/argument/NonNegativeFieldTest.java b/app/src/test/java/org/astraea/app/argument/NonNegativeFieldTest.java index 994989254f..c567de80e3 100644 --- a/app/src/test/java/org/astraea/app/argument/NonNegativeFieldTest.java +++ b/app/src/test/java/org/astraea/app/argument/NonNegativeFieldTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.Parameter; diff --git a/app/src/test/java/org/astraea/app/argument/PositiveFieldTest.java b/app/src/test/java/org/astraea/app/argument/PositiveFieldTest.java index 0794f4c2da..dd17275548 100644 --- a/app/src/test/java/org/astraea/app/argument/PositiveFieldTest.java +++ b/app/src/test/java/org/astraea/app/argument/PositiveFieldTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.Parameter; diff --git a/app/src/test/java/org/astraea/app/argument/SetFieldTest.java b/app/src/test/java/org/astraea/app/argument/SetFieldTest.java index 40049682ca..445e7488e5 100644 --- a/app/src/test/java/org/astraea/app/argument/SetFieldTest.java +++ b/app/src/test/java/org/astraea/app/argument/SetFieldTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.Parameter; diff --git a/app/src/test/java/org/astraea/app/argument/StringMapFieldTest.java b/app/src/test/java/org/astraea/app/argument/StringMapFieldTest.java index f5e4c9f460..0b4a114bb0 100644 --- a/app/src/test/java/org/astraea/app/argument/StringMapFieldTest.java +++ b/app/src/test/java/org/astraea/app/argument/StringMapFieldTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.argument; import com.beust.jcommander.ParameterException; diff --git a/app/src/test/java/org/astraea/app/balancer/RebalancePlanProposalTest.java b/app/src/test/java/org/astraea/app/balancer/RebalancePlanProposalTest.java index ba4030ecb5..65d22c4209 100644 --- a/app/src/test/java/org/astraea/app/balancer/RebalancePlanProposalTest.java +++ b/app/src/test/java/org/astraea/app/balancer/RebalancePlanProposalTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer; import java.util.stream.Collectors; diff --git a/app/src/test/java/org/astraea/app/balancer/generator/ShufflePlanGeneratorTest.java b/app/src/test/java/org/astraea/app/balancer/generator/ShufflePlanGeneratorTest.java index d3f7c570f6..575edab8ee 100644 --- a/app/src/test/java/org/astraea/app/balancer/generator/ShufflePlanGeneratorTest.java +++ b/app/src/test/java/org/astraea/app/balancer/generator/ShufflePlanGeneratorTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer.generator; import java.util.concurrent.ForkJoinPool; diff --git a/app/src/test/java/org/astraea/app/balancer/log/LayeredClusterLogAllocationTest.java b/app/src/test/java/org/astraea/app/balancer/log/LayeredClusterLogAllocationTest.java index 7f54dd7df0..270ecc22c5 100644 --- a/app/src/test/java/org/astraea/app/balancer/log/LayeredClusterLogAllocationTest.java +++ b/app/src/test/java/org/astraea/app/balancer/log/LayeredClusterLogAllocationTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.balancer.log; import java.util.Comparator; diff --git a/app/src/test/java/org/astraea/app/common/DataRateTest.java b/app/src/test/java/org/astraea/app/common/DataRateTest.java index 2e5f560db2..09bc026cfe 100644 --- a/app/src/test/java/org/astraea/app/common/DataRateTest.java +++ b/app/src/test/java/org/astraea/app/common/DataRateTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.common; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; diff --git a/app/src/test/java/org/astraea/app/common/DataSizeTest.java b/app/src/test/java/org/astraea/app/common/DataSizeTest.java index 6b624f66fd..0b9f0fa826 100644 --- a/app/src/test/java/org/astraea/app/common/DataSizeTest.java +++ b/app/src/test/java/org/astraea/app/common/DataSizeTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.common; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/common/UtilsTest.java b/app/src/test/java/org/astraea/app/common/UtilsTest.java index 69a0e4740c..fdbdc6bc62 100644 --- a/app/src/test/java/org/astraea/app/common/UtilsTest.java +++ b/app/src/test/java/org/astraea/app/common/UtilsTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.common; import java.io.IOException; diff --git a/app/src/test/java/org/astraea/app/concurrent/ThreadPoolTest.java b/app/src/test/java/org/astraea/app/concurrent/ThreadPoolTest.java index 8ecbd3e499..9ab6c645b0 100644 --- a/app/src/test/java/org/astraea/app/concurrent/ThreadPoolTest.java +++ b/app/src/test/java/org/astraea/app/concurrent/ThreadPoolTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.concurrent; import java.util.concurrent.TimeUnit; diff --git a/app/src/test/java/org/astraea/app/consumer/ConsumerTest.java b/app/src/test/java/org/astraea/app/consumer/ConsumerTest.java index 6062837d4c..cb22ffe6a1 100644 --- a/app/src/test/java/org/astraea/app/consumer/ConsumerTest.java +++ b/app/src/test/java/org/astraea/app/consumer/ConsumerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.nio.charset.StandardCharsets; diff --git a/app/src/test/java/org/astraea/app/consumer/RebalanceListenerTest.java b/app/src/test/java/org/astraea/app/consumer/RebalanceListenerTest.java index 68b5ca0041..342d14ada1 100644 --- a/app/src/test/java/org/astraea/app/consumer/RebalanceListenerTest.java +++ b/app/src/test/java/org/astraea/app/consumer/RebalanceListenerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.consumer; import java.time.Duration; diff --git a/app/src/test/java/org/astraea/app/cost/ClusterInfoProvider.java b/app/src/test/java/org/astraea/app/cost/ClusterInfoProvider.java index 0b66cb0c5e..8380183bbe 100644 --- a/app/src/test/java/org/astraea/app/cost/ClusterInfoProvider.java +++ b/app/src/test/java/org/astraea/app/cost/ClusterInfoProvider.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Collection; diff --git a/app/src/test/java/org/astraea/app/cost/ClusterInfoTest.java b/app/src/test/java/org/astraea/app/cost/ClusterInfoTest.java index 0227ce773d..14dbe4f81c 100644 --- a/app/src/test/java/org/astraea/app/cost/ClusterInfoTest.java +++ b/app/src/test/java/org/astraea/app/cost/ClusterInfoTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Collection; diff --git a/app/src/test/java/org/astraea/app/cost/FakeClusterInfo.java b/app/src/test/java/org/astraea/app/cost/FakeClusterInfo.java index f27a8c0dbb..ea41dc37a7 100644 --- a/app/src/test/java/org/astraea/app/cost/FakeClusterInfo.java +++ b/app/src/test/java/org/astraea/app/cost/FakeClusterInfo.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Collection; diff --git a/app/src/test/java/org/astraea/app/cost/LoadCostTest.java b/app/src/test/java/org/astraea/app/cost/LoadCostTest.java index 3c4835f694..9ee6a92380 100644 --- a/app/src/test/java/org/astraea/app/cost/LoadCostTest.java +++ b/app/src/test/java/org/astraea/app/cost/LoadCostTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Collection; diff --git a/app/src/test/java/org/astraea/app/cost/NodeInfoTest.java b/app/src/test/java/org/astraea/app/cost/NodeInfoTest.java index ef8ca921fe..0b5ae83791 100644 --- a/app/src/test/java/org/astraea/app/cost/NodeInfoTest.java +++ b/app/src/test/java/org/astraea/app/cost/NodeInfoTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import org.apache.kafka.common.Node; diff --git a/app/src/test/java/org/astraea/app/cost/NormalizerTest.java b/app/src/test/java/org/astraea/app/cost/NormalizerTest.java index 55386c250f..041e8fa829 100644 --- a/app/src/test/java/org/astraea/app/cost/NormalizerTest.java +++ b/app/src/test/java/org/astraea/app/cost/NormalizerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.stream.Collectors; diff --git a/app/src/test/java/org/astraea/app/cost/PeriodicTest.java b/app/src/test/java/org/astraea/app/cost/PeriodicTest.java index cf64b685ad..8aa2cf583d 100644 --- a/app/src/test/java/org/astraea/app/cost/PeriodicTest.java +++ b/app/src/test/java/org/astraea/app/cost/PeriodicTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.time.Duration; diff --git a/app/src/test/java/org/astraea/app/cost/ReplicaInfoTest.java b/app/src/test/java/org/astraea/app/cost/ReplicaInfoTest.java index 406d074b3d..e5ef88c72a 100644 --- a/app/src/test/java/org/astraea/app/cost/ReplicaInfoTest.java +++ b/app/src/test/java/org/astraea/app/cost/ReplicaInfoTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Arrays; diff --git a/app/src/test/java/org/astraea/app/cost/ThroughputCostTest.java b/app/src/test/java/org/astraea/app/cost/ThroughputCostTest.java index ebe3711b12..42263ebca9 100644 --- a/app/src/test/java/org/astraea/app/cost/ThroughputCostTest.java +++ b/app/src/test/java/org/astraea/app/cost/ThroughputCostTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.List; diff --git a/app/src/test/java/org/astraea/app/cost/WeightProviderTest.java b/app/src/test/java/org/astraea/app/cost/WeightProviderTest.java index fed38cc2ef..e5f0708fe5 100644 --- a/app/src/test/java/org/astraea/app/cost/WeightProviderTest.java +++ b/app/src/test/java/org/astraea/app/cost/WeightProviderTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost; import java.util.Comparator; diff --git a/app/src/test/java/org/astraea/app/cost/broker/BrokerInputCostTest.java b/app/src/test/java/org/astraea/app/cost/broker/BrokerInputCostTest.java index c158d147fa..df25c5d8e5 100644 --- a/app/src/test/java/org/astraea/app/cost/broker/BrokerInputCostTest.java +++ b/app/src/test/java/org/astraea/app/cost/broker/BrokerInputCostTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.Collection; diff --git a/app/src/test/java/org/astraea/app/cost/broker/BrokerOutPutCostTest.java b/app/src/test/java/org/astraea/app/cost/broker/BrokerOutPutCostTest.java index 11d44488cb..5db1a14fd9 100644 --- a/app/src/test/java/org/astraea/app/cost/broker/BrokerOutPutCostTest.java +++ b/app/src/test/java/org/astraea/app/cost/broker/BrokerOutPutCostTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.Collection; diff --git a/app/src/test/java/org/astraea/app/cost/broker/CpuCostTest.java b/app/src/test/java/org/astraea/app/cost/broker/CpuCostTest.java index e90ce4ce58..1496a58459 100644 --- a/app/src/test/java/org/astraea/app/cost/broker/CpuCostTest.java +++ b/app/src/test/java/org/astraea/app/cost/broker/CpuCostTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.util.Collection; diff --git a/app/src/test/java/org/astraea/app/cost/broker/MemoryCostTest.java b/app/src/test/java/org/astraea/app/cost/broker/MemoryCostTest.java index 6497e4bd68..9c7f3fb644 100644 --- a/app/src/test/java/org/astraea/app/cost/broker/MemoryCostTest.java +++ b/app/src/test/java/org/astraea/app/cost/broker/MemoryCostTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.broker; import java.lang.management.MemoryUsage; diff --git a/app/src/test/java/org/astraea/app/cost/topic/CalculateUtilsTest.java b/app/src/test/java/org/astraea/app/cost/topic/CalculateUtilsTest.java index f482ad36fd..fb8cbd5009 100644 --- a/app/src/test/java/org/astraea/app/cost/topic/CalculateUtilsTest.java +++ b/app/src/test/java/org/astraea/app/cost/topic/CalculateUtilsTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.topic; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/cost/topic/GetPartitionInfTest.java b/app/src/test/java/org/astraea/app/cost/topic/GetPartitionInfTest.java index 324f549d19..ef9a9ac2a2 100644 --- a/app/src/test/java/org/astraea/app/cost/topic/GetPartitionInfTest.java +++ b/app/src/test/java/org/astraea/app/cost/topic/GetPartitionInfTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.topic; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/cost/topic/PartitionScoreTest.java b/app/src/test/java/org/astraea/app/cost/topic/PartitionScoreTest.java index 6cf8168025..7cac130440 100644 --- a/app/src/test/java/org/astraea/app/cost/topic/PartitionScoreTest.java +++ b/app/src/test/java/org/astraea/app/cost/topic/PartitionScoreTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.cost.topic; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/database/DatabaseClientTest.java b/app/src/test/java/org/astraea/app/database/DatabaseClientTest.java index 485a30196f..316f914f53 100644 --- a/app/src/test/java/org/astraea/app/database/DatabaseClientTest.java +++ b/app/src/test/java/org/astraea/app/database/DatabaseClientTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.database; import org.astraea.app.common.Utils; diff --git a/app/src/test/java/org/astraea/app/metrics/MetricExplorerTest.java b/app/src/test/java/org/astraea/app/metrics/MetricExplorerTest.java index f50b9e8c97..9230730da2 100644 --- a/app/src/test/java/org/astraea/app/metrics/MetricExplorerTest.java +++ b/app/src/test/java/org/astraea/app/metrics/MetricExplorerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; diff --git a/app/src/test/java/org/astraea/app/metrics/collector/BeanCollectorTest.java b/app/src/test/java/org/astraea/app/metrics/collector/BeanCollectorTest.java index a8d0d5ae38..8d517facb2 100644 --- a/app/src/test/java/org/astraea/app/metrics/collector/BeanCollectorTest.java +++ b/app/src/test/java/org/astraea/app/metrics/collector/BeanCollectorTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.collector; import java.time.Duration; diff --git a/app/src/test/java/org/astraea/app/metrics/collector/FetcherTest.java b/app/src/test/java/org/astraea/app/metrics/collector/FetcherTest.java index 881e405228..0bdbc55637 100644 --- a/app/src/test/java/org/astraea/app/metrics/collector/FetcherTest.java +++ b/app/src/test/java/org/astraea/app/metrics/collector/FetcherTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.collector; import java.util.List; diff --git a/app/src/test/java/org/astraea/app/metrics/jmx/BeanObjectTest.java b/app/src/test/java/org/astraea/app/metrics/jmx/BeanObjectTest.java index aac38b7e6b..24bd9fe199 100644 --- a/app/src/test/java/org/astraea/app/metrics/jmx/BeanObjectTest.java +++ b/app/src/test/java/org/astraea/app/metrics/jmx/BeanObjectTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.jmx; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/metrics/jmx/BeanQueryTest.java b/app/src/test/java/org/astraea/app/metrics/jmx/BeanQueryTest.java index 3e2d9060a3..ca76023390 100644 --- a/app/src/test/java/org/astraea/app/metrics/jmx/BeanQueryTest.java +++ b/app/src/test/java/org/astraea/app/metrics/jmx/BeanQueryTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.jmx; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/metrics/jmx/MBeanClientTest.java b/app/src/test/java/org/astraea/app/metrics/jmx/MBeanClientTest.java index 916cf49b37..5b4bb519d5 100644 --- a/app/src/test/java/org/astraea/app/metrics/jmx/MBeanClientTest.java +++ b/app/src/test/java/org/astraea/app/metrics/jmx/MBeanClientTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.jmx; import static java.util.stream.Collectors.toList; diff --git a/app/src/test/java/org/astraea/app/metrics/jmx/Utility.java b/app/src/test/java/org/astraea/app/metrics/jmx/Utility.java index 514d867e1f..c480bc1561 100644 --- a/app/src/test/java/org/astraea/app/metrics/jmx/Utility.java +++ b/app/src/test/java/org/astraea/app/metrics/jmx/Utility.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.jmx; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/metrics/kafka/KafkaMetricsTest.java b/app/src/test/java/org/astraea/app/metrics/kafka/KafkaMetricsTest.java index d28d4f890a..19a7de18ee 100644 --- a/app/src/test/java/org/astraea/app/metrics/kafka/KafkaMetricsTest.java +++ b/app/src/test/java/org/astraea/app/metrics/kafka/KafkaMetricsTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.metrics.kafka; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; diff --git a/app/src/test/java/org/astraea/app/partitioner/ConfigurationTest.java b/app/src/test/java/org/astraea/app/partitioner/ConfigurationTest.java index c07223ec86..f35ea7751c 100644 --- a/app/src/test/java/org/astraea/app/partitioner/ConfigurationTest.java +++ b/app/src/test/java/org/astraea/app/partitioner/ConfigurationTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner; import java.util.List; diff --git a/app/src/test/java/org/astraea/app/partitioner/DispatcherTest.java b/app/src/test/java/org/astraea/app/partitioner/DispatcherTest.java index ca241bd853..ea42ea3fe0 100644 --- a/app/src/test/java/org/astraea/app/partitioner/DispatcherTest.java +++ b/app/src/test/java/org/astraea/app/partitioner/DispatcherTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/partitioner/PartitionerUtilsTest.java b/app/src/test/java/org/astraea/app/partitioner/PartitionerUtilsTest.java index f5fee873e0..4294ffc184 100644 --- a/app/src/test/java/org/astraea/app/partitioner/PartitionerUtilsTest.java +++ b/app/src/test/java/org/astraea/app/partitioner/PartitionerUtilsTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/partitioner/StrictCostDispatcherTest.java b/app/src/test/java/org/astraea/app/partitioner/StrictCostDispatcherTest.java index b52a8b1ddc..e7e930ef5a 100644 --- a/app/src/test/java/org/astraea/app/partitioner/StrictCostDispatcherTest.java +++ b/app/src/test/java/org/astraea/app/partitioner/StrictCostDispatcherTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner; import java.util.List; diff --git a/app/src/test/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinDispatchTest.java b/app/src/test/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinDispatchTest.java index de765ab3b7..565f3e78c1 100644 --- a/app/src/test/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinDispatchTest.java +++ b/app/src/test/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinDispatchTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner.smooth; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/app/src/test/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinTest.java b/app/src/test/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinTest.java index e3517a81e3..4dad813639 100644 --- a/app/src/test/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinTest.java +++ b/app/src/test/java/org/astraea/app/partitioner/smooth/SmoothWeightRoundRobinTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.partitioner.smooth; import java.util.List; diff --git a/app/src/test/java/org/astraea/app/performance/DataSupplierTest.java b/app/src/test/java/org/astraea/app/performance/DataSupplierTest.java index 52aa988b29..625930341c 100644 --- a/app/src/test/java/org/astraea/app/performance/DataSupplierTest.java +++ b/app/src/test/java/org/astraea/app/performance/DataSupplierTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.util.concurrent.TimeUnit; diff --git a/app/src/test/java/org/astraea/app/performance/DistributionTest.java b/app/src/test/java/org/astraea/app/performance/DistributionTest.java index f55a2a8254..58cf365092 100644 --- a/app/src/test/java/org/astraea/app/performance/DistributionTest.java +++ b/app/src/test/java/org/astraea/app/performance/DistributionTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.util.Random; diff --git a/app/src/test/java/org/astraea/app/performance/ExeTimeTest.java b/app/src/test/java/org/astraea/app/performance/ExeTimeTest.java index 64016b9a8e..55af8a5c11 100644 --- a/app/src/test/java/org/astraea/app/performance/ExeTimeTest.java +++ b/app/src/test/java/org/astraea/app/performance/ExeTimeTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import com.beust.jcommander.ParameterException; diff --git a/app/src/test/java/org/astraea/app/performance/ManagerTest.java b/app/src/test/java/org/astraea/app/performance/ManagerTest.java index 52efc89cff..8b068d7c85 100644 --- a/app/src/test/java/org/astraea/app/performance/ManagerTest.java +++ b/app/src/test/java/org/astraea/app/performance/ManagerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.util.List; diff --git a/app/src/test/java/org/astraea/app/performance/MetricsTest.java b/app/src/test/java/org/astraea/app/performance/MetricsTest.java index b25a93dacb..c9e5236cac 100644 --- a/app/src/test/java/org/astraea/app/performance/MetricsTest.java +++ b/app/src/test/java/org/astraea/app/performance/MetricsTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.util.Random; diff --git a/app/src/test/java/org/astraea/app/performance/PerformanceTest.java b/app/src/test/java/org/astraea/app/performance/PerformanceTest.java index 3f42896129..08e99a740e 100644 --- a/app/src/test/java/org/astraea/app/performance/PerformanceTest.java +++ b/app/src/test/java/org/astraea/app/performance/PerformanceTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import com.beust.jcommander.ParameterException; diff --git a/app/src/test/java/org/astraea/app/performance/ProducerExecutorTest.java b/app/src/test/java/org/astraea/app/performance/ProducerExecutorTest.java index 904902be7a..2267c78523 100644 --- a/app/src/test/java/org/astraea/app/performance/ProducerExecutorTest.java +++ b/app/src/test/java/org/astraea/app/performance/ProducerExecutorTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.nio.charset.StandardCharsets; diff --git a/app/src/test/java/org/astraea/app/performance/TrackerTest.java b/app/src/test/java/org/astraea/app/performance/TrackerTest.java index df3fdb4d80..7f72320752 100644 --- a/app/src/test/java/org/astraea/app/performance/TrackerTest.java +++ b/app/src/test/java/org/astraea/app/performance/TrackerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.performance; import java.util.List; diff --git a/app/src/test/java/org/astraea/app/producer/ProducerTest.java b/app/src/test/java/org/astraea/app/producer/ProducerTest.java index 0f7f8adcba..b6410b67ea 100644 --- a/app/src/test/java/org/astraea/app/producer/ProducerTest.java +++ b/app/src/test/java/org/astraea/app/producer/ProducerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.producer; import java.time.Duration; diff --git a/app/src/test/java/org/astraea/app/service/BrokerCluster.java b/app/src/test/java/org/astraea/app/service/BrokerCluster.java index a7d0d4e2b6..166303b4ad 100644 --- a/app/src/test/java/org/astraea/app/service/BrokerCluster.java +++ b/app/src/test/java/org/astraea/app/service/BrokerCluster.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.service; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/service/Database.java b/app/src/test/java/org/astraea/app/service/Database.java index 0993ab7d4c..db80788f46 100644 --- a/app/src/test/java/org/astraea/app/service/Database.java +++ b/app/src/test/java/org/astraea/app/service/Database.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.service; import static com.wix.mysql.EmbeddedMysql.anEmbeddedMysql; diff --git a/app/src/test/java/org/astraea/app/service/DatabaseTest.java b/app/src/test/java/org/astraea/app/service/DatabaseTest.java index 3d35c5e9d2..98ab31a990 100644 --- a/app/src/test/java/org/astraea/app/service/DatabaseTest.java +++ b/app/src/test/java/org/astraea/app/service/DatabaseTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.service; import org.astraea.app.common.Utils; diff --git a/app/src/test/java/org/astraea/app/service/RequireBrokerCluster.java b/app/src/test/java/org/astraea/app/service/RequireBrokerCluster.java index 49d2b19b46..482dd4f424 100644 --- a/app/src/test/java/org/astraea/app/service/RequireBrokerCluster.java +++ b/app/src/test/java/org/astraea/app/service/RequireBrokerCluster.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.service; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/service/RequireJmxServer.java b/app/src/test/java/org/astraea/app/service/RequireJmxServer.java index 8ac866f66d..971db1c200 100644 --- a/app/src/test/java/org/astraea/app/service/RequireJmxServer.java +++ b/app/src/test/java/org/astraea/app/service/RequireJmxServer.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.service; import java.io.IOException; diff --git a/app/src/test/java/org/astraea/app/service/RequireJmxServerTest.java b/app/src/test/java/org/astraea/app/service/RequireJmxServerTest.java index 80fcdc537f..369ff54b0e 100644 --- a/app/src/test/java/org/astraea/app/service/RequireJmxServerTest.java +++ b/app/src/test/java/org/astraea/app/service/RequireJmxServerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.service; import java.util.Set; diff --git a/app/src/test/java/org/astraea/app/service/Services.java b/app/src/test/java/org/astraea/app/service/Services.java index 587b65df0a..fe1d9e78ad 100644 --- a/app/src/test/java/org/astraea/app/service/Services.java +++ b/app/src/test/java/org/astraea/app/service/Services.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.service; import java.io.File; diff --git a/app/src/test/java/org/astraea/app/service/ZookeeperCluster.java b/app/src/test/java/org/astraea/app/service/ZookeeperCluster.java index 0f704834d0..db048c9d10 100644 --- a/app/src/test/java/org/astraea/app/service/ZookeeperCluster.java +++ b/app/src/test/java/org/astraea/app/service/ZookeeperCluster.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.service; public interface ZookeeperCluster extends AutoCloseable { diff --git a/app/src/test/java/org/astraea/app/web/BrokerHandlerTest.java b/app/src/test/java/org/astraea/app/web/BrokerHandlerTest.java index cd88dfd4a9..35a405d0e1 100644 --- a/app/src/test/java/org/astraea/app/web/BrokerHandlerTest.java +++ b/app/src/test/java/org/astraea/app/web/BrokerHandlerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/web/ErrorObjectTest.java b/app/src/test/java/org/astraea/app/web/ErrorObjectTest.java index 5a8dd80720..1b4d821afa 100644 --- a/app/src/test/java/org/astraea/app/web/ErrorObjectTest.java +++ b/app/src/test/java/org/astraea/app/web/ErrorObjectTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import org.junit.jupiter.api.Assertions; diff --git a/app/src/test/java/org/astraea/app/web/GroupHandlerTest.java b/app/src/test/java/org/astraea/app/web/GroupHandlerTest.java index d3c045c934..70233b35be 100644 --- a/app/src/test/java/org/astraea/app/web/GroupHandlerTest.java +++ b/app/src/test/java/org/astraea/app/web/GroupHandlerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.time.Duration; diff --git a/app/src/test/java/org/astraea/app/web/HandlerTest.java b/app/src/test/java/org/astraea/app/web/HandlerTest.java index 12cc5c5aba..6941e8b97a 100644 --- a/app/src/test/java/org/astraea/app/web/HandlerTest.java +++ b/app/src/test/java/org/astraea/app/web/HandlerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import com.sun.net.httpserver.HttpExchange; diff --git a/app/src/test/java/org/astraea/app/web/PipelineHandlerTest.java b/app/src/test/java/org/astraea/app/web/PipelineHandlerTest.java index 072961e356..dee010c5c6 100644 --- a/app/src/test/java/org/astraea/app/web/PipelineHandlerTest.java +++ b/app/src/test/java/org/astraea/app/web/PipelineHandlerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/web/PostRequestTest.java b/app/src/test/java/org/astraea/app/web/PostRequestTest.java index c45a860f28..b8698fb358 100644 --- a/app/src/test/java/org/astraea/app/web/PostRequestTest.java +++ b/app/src/test/java/org/astraea/app/web/PostRequestTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import com.sun.net.httpserver.HttpExchange; diff --git a/app/src/test/java/org/astraea/app/web/ProducerHandlerTest.java b/app/src/test/java/org/astraea/app/web/ProducerHandlerTest.java index 8784d7a902..8ec2190831 100644 --- a/app/src/test/java/org/astraea/app/web/ProducerHandlerTest.java +++ b/app/src/test/java/org/astraea/app/web/ProducerHandlerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/web/QuotaHandlerTest.java b/app/src/test/java/org/astraea/app/web/QuotaHandlerTest.java index 3195426578..4f64aa12c9 100644 --- a/app/src/test/java/org/astraea/app/web/QuotaHandlerTest.java +++ b/app/src/test/java/org/astraea/app/web/QuotaHandlerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/web/TopicHandlerTest.java b/app/src/test/java/org/astraea/app/web/TopicHandlerTest.java index 07a1f58f4e..c1d91ef6cc 100644 --- a/app/src/test/java/org/astraea/app/web/TopicHandlerTest.java +++ b/app/src/test/java/org/astraea/app/web/TopicHandlerTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import java.util.Map; diff --git a/app/src/test/java/org/astraea/app/web/WebServiceTest.java b/app/src/test/java/org/astraea/app/web/WebServiceTest.java index 452e36f453..9820ed6a46 100644 --- a/app/src/test/java/org/astraea/app/web/WebServiceTest.java +++ b/app/src/test/java/org/astraea/app/web/WebServiceTest.java @@ -1,3 +1,19 @@ +/* + * 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.astraea.app.web; import org.astraea.app.argument.Argument; diff --git a/build.gradle b/build.gradle index 907f13a604..e21934b6d1 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,26 @@ +/* + * 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. + */ plugins { id "com.diffplug.spotless" version "5.14.3" } spotless { java { + licenseHeaderFile(file("$rootDir/checkstyle/apache.header")) importOrder() removeUnusedImports() target '**/java/**/*.java' diff --git a/checkstyle/apache.header b/checkstyle/apache.header new file mode 100644 index 0000000000..45804acd30 --- /dev/null +++ b/checkstyle/apache.header @@ -0,0 +1,16 @@ +/* + * 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. + */ \ No newline at end of file diff --git a/config/automation.properties b/config/automation.properties index 6ecd724706..fecb2276c9 100644 --- a/config/automation.properties +++ b/config/automation.properties @@ -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. + #Defaults is to use the default parameters #You can set as many times as you want it to run. diff --git a/config/partitionerConfig.properties b/config/partitionerConfig.properties index e31beda9f3..8425158413 100644 --- a/config/partitionerConfig.properties +++ b/config/partitionerConfig.properties @@ -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. + #The properties are used to configure SmoothWeightPartitioner # #If broker.id.jmx.port is configured, then the jmx port of these brokers diff --git a/docker/build_deps_image.sh b/docker/build_deps_image.sh index 313e719355..e05c9b67f0 100755 --- a/docker/build_deps_image.sh +++ b/docker/build_deps_image.sh @@ -1,4 +1,18 @@ #!/bin/bash +# 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. declare -r DOCKER_FOLDER=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) source $DOCKER_FOLDER/docker_build_common.sh diff --git a/docker/docker_build_common.sh b/docker/docker_build_common.sh index 6ebf69ab68..e9941227b3 100644 --- a/docker/docker_build_common.sh +++ b/docker/docker_build_common.sh @@ -1,4 +1,19 @@ #!/bin/bash +# 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. + declare -r USER=astraea declare -r BUILD=${BUILD:-false} declare -r RUN=${RUN:-true} diff --git a/docker/start_broker.sh b/docker/start_broker.sh index 939f49a577..7d26a19983 100755 --- a/docker/start_broker.sh +++ b/docker/start_broker.sh @@ -1,4 +1,18 @@ #!/bin/bash +# 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. declare -r DOCKER_FOLDER=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) source $DOCKER_FOLDER/docker_build_common.sh diff --git a/docker/start_grafana.sh b/docker/start_grafana.sh index 7694288467..e105cb5fc7 100755 --- a/docker/start_grafana.sh +++ b/docker/start_grafana.sh @@ -1,4 +1,18 @@ #!/bin/bash +# 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. # =================================[help]================================= diff --git a/docker/start_kafka_tool.sh b/docker/start_kafka_tool.sh index e13612d17d..60636d6f5e 100755 --- a/docker/start_kafka_tool.sh +++ b/docker/start_kafka_tool.sh @@ -1,4 +1,18 @@ #!/bin/bash +# 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. declare -r DOCKER_FOLDER=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) source $DOCKER_FOLDER/docker_build_common.sh diff --git a/docker/start_node_exporter.sh b/docker/start_node_exporter.sh index 703bf5b0aa..df1fef3ce3 100755 --- a/docker/start_node_exporter.sh +++ b/docker/start_node_exporter.sh @@ -1,4 +1,18 @@ #!/bin/bash +# 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. # node_exporter run at 9100 port by default # there is no reason to run two node_exporters at same box diff --git a/docker/start_prometheus.sh b/docker/start_prometheus.sh index 843e2fd82e..8932d36aab 100755 --- a/docker/start_prometheus.sh +++ b/docker/start_prometheus.sh @@ -1,4 +1,18 @@ #!/bin/bash +# 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. declare -r DOCKER_FOLDER=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) source $DOCKER_FOLDER/docker_build_common.sh diff --git a/docker/start_spark.sh b/docker/start_spark.sh index adbce3d704..7c32656d4f 100755 --- a/docker/start_spark.sh +++ b/docker/start_spark.sh @@ -1,4 +1,18 @@ #!/bin/bash +# 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. declare -r DOCKER_FOLDER=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) source $DOCKER_FOLDER/docker_build_common.sh diff --git a/docker/start_zookeeper.sh b/docker/start_zookeeper.sh index 018f6440ff..fbaf632591 100755 --- a/docker/start_zookeeper.sh +++ b/docker/start_zookeeper.sh @@ -1,4 +1,18 @@ #!/bin/bash +# 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. declare -r DOCKER_FOLDER=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) source $DOCKER_FOLDER/docker_build_common.sh diff --git a/settings.gradle b/settings.gradle index 7b4aa626ca..e219b975a2 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,17 @@ +// 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. + rootProject.name = 'astraea' include('app')