repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
google/rejoiner
1,101
rejoiner/src/main/java/com/google/api/graphql/rejoiner/SchemaModification.java
// Copyright 2017 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.api.graphql.rejoiner; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** Annotation that marks type modification fields, or methods. */ @Retention(RetentionPolicy.RUNTIME) public @interface SchemaModification { /** Name of the new field, only used when annotating a method. */ String addField() default ""; /** Proto reference for the type to modify, only used when annotating a method. */ Class<?> onType() default SchemaModification.class; }
google/tsunami-security-scanner
1,084
plugin/src/main/java/com/google/tsunami/plugin/annotations/ForWebService.java
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.tsunami.plugin.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * An util annotation that is shorthand of {@code {@literal @}ForServiceName({"http", "https", * ...})}, marking that the intended network services of a plugin are web services. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface ForWebService {}
googleapis/api-compiler
1,096
src/main/java/com/google/api/tools/framework/model/stages/Resolved.java
/* * Copyright (C) 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.api.tools.framework.model.stages; import com.google.inject.Key; /** * A marker class representing the stage that type resolution and basic consistency checking has * been performed on the api. * * <p> * See the usage of {@code Requires(Resolved.class)} in the model for information that is dependent * on this stage. */ public class Resolved { /** * The key representing the resolved stage. */ public static final Key<Resolved> KEY = Key.get(Resolved.class); }
googleapis/gapic-generator
1,090
src/main/java/com/google/api/codegen/transformer/TransformationContext.java
/* Copyright 2017 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 com.google.api.codegen.transformer; import com.google.api.codegen.config.ProductConfig; /** * The context for transforming an API model, in an input-agnostic way, into a view model to use for * client library generation. */ public interface TransformationContext { ProductConfig getProductConfig(); SurfaceNamer getNamer(); ImportTypeTable getImportTypeTable(); TransformationContext withNewTypeTable(); TransformationContext withNewTypeTable(String newPackageName); }
googleapis/google-cloud-java
1,024
java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/BatchDeleteDocumentsResponseOrBuilder.java
/* * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/documentai/v1beta3/document_service.proto // Protobuf Java Version: 3.25.8 package com.google.cloud.documentai.v1beta3; public interface BatchDeleteDocumentsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.BatchDeleteDocumentsResponse) com.google.protobuf.MessageOrBuilder {}
googleapis/sdk-platform-java
1,039
java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/util/InterceptingMockTokenServerTransportFactory.java
/* * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 com.google.showcase.v1beta1.it.util; import com.google.api.client.http.HttpTransport; import com.google.auth.oauth2.MockTokenServerTransportFactory; public class InterceptingMockTokenServerTransportFactory extends MockTokenServerTransportFactory { public InterceptingMockTokenServerTransport transport = new InterceptingMockTokenServerTransport(); @Override public HttpTransport create() { return transport; } }
googleworkspace/java-samples
1,107
drive/snippets/drive_v3/src/test/java/TestListAppData.java
/* * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import static org.junit.Assert.assertNotEquals; import com.google.api.services.drive.model.FileList; import java.io.IOException; import java.security.GeneralSecurityException; import org.junit.Test; public class TestListAppData extends BaseTest { @Test public void listAppData() throws IOException, GeneralSecurityException { String id = UploadAppData.uploadAppData(); deleteFileOnCleanup(id); FileList files = ListAppData.listAppData(); assertNotEquals(0, files.getFiles().size()); } }
hibernate/hibernate-orm
1,031
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/metadata/Fridge.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.jpa.metadata; import jakarta.persistence.Basic; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; /** * @author Emmanuel Bernard */ @Entity public class Fridge { private Long id; private String brand; private int temperature; private Integer height; //dimensions @Id @GeneratedValue public Long getId() { return id; } public void setId(Long id) { this.id = id; } @Basic(optional = false) public String getBrand() { return brand; } public void setBrand(String brand) { this.brand = brand; } public int getTemperature() { return temperature; } public void setTemperature(int temperature) { this.temperature = temperature; } @Column(nullable = false) public Integer getHeight() { return height; } public void setHeight(Integer height) { this.height = height; } }
hibernate/hibernate-orm
1,035
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/collectionelement/Matrix.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.orm.test.annotations.collectionelement; import java.util.Map; import java.util.SortedMap; import java.util.TreeMap; import org.hibernate.annotations.SortNatural; import jakarta.persistence.Column; import jakarta.persistence.ElementCollection; import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; import jakarta.persistence.MapKeyColumn; /** * @author Emmanuel Bernard */ @Entity(name="Mtx") public class Matrix { @Id @GeneratedValue @Column(name="mId") private Integer id; @ElementCollection @SortNatural @MapKeyColumn private SortedMap<Integer, Float> mvalues = new TreeMap<Integer, Float>(); public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Map<Integer, Float> getMvalues() { return mvalues; } public void setMvalues(SortedMap<Integer, Float> mValues) { this.mvalues = mValues; } }
hibernate/hibernate-orm
1,059
hibernate-core/src/main/java/org/hibernate/sql/model/ast/ColumnValueParameter.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.sql.model.ast; import org.hibernate.engine.jdbc.mutation.ParameterUsage; import org.hibernate.sql.ast.tree.expression.ColumnReference; import org.hibernate.sql.exec.internal.AbstractJdbcParameter; /** * Parameter descriptor specific to mutations. It exposes metadata about the parameter * * @author Steve Ebersole */ public class ColumnValueParameter extends AbstractJdbcParameter { private final ColumnReference columnReference; private final ParameterUsage usage; public ColumnValueParameter(ColumnReference columnReference, ParameterUsage usage) { super( columnReference.getJdbcMapping() ); this.columnReference = columnReference; this.usage = usage; } @Override public ColumnReference getColumnReference() { return columnReference; } public ParameterUsage getUsage() { return usage; } @Override public String toString() { return "ColumnValueParameter(" + columnReference.getColumnExpression() + ')'; } }
hibernate/hibernate-orm
1,070
hibernate-core/src/main/java/org/hibernate/persister/collection/mutation/DeleteRowsCoordinator.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.persister.collection.mutation; import org.hibernate.collection.spi.PersistentCollection; import org.hibernate.engine.spi.SharedSessionContractImplementor; /** * Coordinates the deletion of entries removed from the collection -<ul> * <li> * For collections with a collection-table, deletes rows from the * collection table. * </li> * <li> * For one-to-many, unsets the collection-key for the matched row * in the association table. * </li> * </ul> * * @see org.hibernate.persister.collection.CollectionPersister#deleteRows * @see RowMutationOperations#getDeleteRowOperation() * @see RowMutationOperations#getDeleteRowRestrictions() * * @author Steve Ebersole */ public interface DeleteRowsCoordinator extends CollectionOperationCoordinator { /** * Perform the deletions */ void deleteRows(PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session); }
hibernate/hibernate-validator
1,035
engine/src/test/java/org/hibernate/validator/test/internal/engine/methodvalidation/service/RepositoryBase.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.validator.test.internal.engine.methodvalidation.service; import jakarta.validation.Valid; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotNull; import org.hibernate.validator.test.internal.engine.methodvalidation.model.Customer; /** * @author Gunnar Morling */ public interface RepositoryBase<T> { /** * Used to test, that constraints at methods from base interfaces/classes are evaluated. */ T findById(@NotNull Long id); /** * Used to test, that constraints at overridden methods from base interfaces/classes are evaluated. */ void foo(@NotNull Long id); void bar(@NotNull @Valid Customer customer); /** * Used to test, that in an inheritance hierarchy multiple return value * constraints for an overridden method are joined. */ @Min(5) int overriddenMethodWithReturnValueConstraint(); @Valid Customer overriddenMethodWithCascadingReturnValue(); }
openjdk/jdk8
1,106
langtools/test/tools/javac/diags/examples/ImportRequiresCanonical/p/ExtendsBase.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package p; public class ExtendsBase extends Base { }
openjdk/jdk8
1,113
jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/package-info.java
/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ @NonRepeated @Containee(1) @Containee(2) package subpackage;
apache/cxf
1,100
rt/rs/description/src/test/java/org/apache/cxf/jaxrs/model/wadl/Orders.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.cxf.jaxrs.model.wadl; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; @Path("/orders") public class Orders { @GET @Produces("text/plain") /** * Foo */ public int getNumberOfOrders() { return 100; } }
apache/cxf
1,101
rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/spring/PolicyNamespaceHandler.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.cxf.ws.policy.spring; import org.springframework.beans.factory.xml.NamespaceHandlerSupport; public class PolicyNamespaceHandler extends NamespaceHandlerSupport { public void init() { registerBeanDefinitionParser("Policy", new PolicyBeanDefinitionParser()); } }
apache/derby
1,093
java/org.apache.derby.engine/org/apache/derby/iapi/services/io/LimitObjectInput.java
/* Derby - Class org.apache.derby.iapi.services.io.LimitObjectInput Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 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.apache.derby.iapi.services.io; import org.apache.derby.iapi.services.io.Limit; /** Limit and ErrorObjectInput capabilities. Combin */ public interface LimitObjectInput extends ErrorObjectInput, Limit { }
apache/dolphinscheduler
1,069
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/params/base/ResizeType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.dolphinscheduler.spi.params.base; public enum ResizeType { NONE("none"), BOTH("both"), HORIZONTAL("horizontal"), VERTICAL("vertical"); private String value; ResizeType(String value) { this.value = value; } }
apache/dolphinscheduler
1,073
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/OkHttpResponse.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.dolphinscheduler.common.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @AllArgsConstructor @NoArgsConstructor @Data public class OkHttpResponse { private int statusCode; private String body; }
apache/drill
1,107
drill-yarn/src/main/java/org/apache/drill/yarn/appMaster/DispatcherAddOn.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.drill.yarn.appMaster; /** * Interface for an add-on to the dispatcher that * should be started at start of the run and ended * at the end of the run. */ public interface DispatcherAddOn { void start(ClusterController controller); void finish(ClusterController controller); }
apache/drill
1,108
drill-yarn/src/main/java/org/apache/drill/yarn/core/YarnClientException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.drill.yarn.core; public class YarnClientException extends Exception { private static final long serialVersionUID = -1411110715738266578L; public YarnClientException(String msg) { super(msg); } public YarnClientException(String msg, Exception e) { super(msg, e); } }
apache/dubbo-hessian-lite
1,084
hessian-lite/src/main/java/com/alibaba/com/caucho/hessian/io/java8/PeriodSerializer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 com.alibaba.com.caucho.hessian.io.java8; import com.alibaba.com.caucho.hessian.io.AbstractSerializer; public class PeriodSerializer<T> extends AbstractSerializer { @Override public Object writeReplace(Object obj) { return new PeriodHandle(obj); } }
apache/dubbo
1,080
dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/buffer/ChannelBufferFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.dubbo.remoting.buffer; import java.nio.ByteBuffer; public interface ChannelBufferFactory { ChannelBuffer getBuffer(int capacity); ChannelBuffer getBuffer(byte[] array, int offset, int length); ChannelBuffer getBuffer(ByteBuffer nioBuffer); }
apache/dubbo
1,088
dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/integration/single/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * There are two scenario in integration testcases.<p> * The one is single registry center, the other is multiple registry centers.<p> * The purpose of all of testcases in this package is to test for single registry center. */ package org.apache.dubbo.config.integration.single;
apache/dubbo
1,097
dubbo-common/src/test/java/org/apache/dubbo/common/extension/wrapper/impl/DemoImpl.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.dubbo.common.extension.wrapper.impl; import org.apache.dubbo.common.extension.wrapper.Demo; public class DemoImpl implements Demo { @Override public String echo(String msg) { return msg; } public DemoImpl() {} public DemoImpl(String test) {} }
apache/dubbo
1,101
dubbo-common/src/test/java/org/apache/dubbo/common/extension/ext5/impl/Ext5Impl1.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.dubbo.common.extension.ext5.impl; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.ext5.NoAdaptiveMethodExt; public class Ext5Impl1 implements NoAdaptiveMethodExt { public String echo(URL url, String s) { return "Ext5Impl1-echo"; } }
apache/dubbo
1,101
dubbo-common/src/test/java/org/apache/dubbo/common/extension/ext5/impl/Ext5Impl2.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.dubbo.common.extension.ext5.impl; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.ext5.NoAdaptiveMethodExt; public class Ext5Impl2 implements NoAdaptiveMethodExt { public String echo(URL url, String s) { return "Ext5Impl2-echo"; } }
apache/felix-dev
1,042
ipojo/runtime/core-it/ipojo-core-annotations-test/src/main/java/org/apache/felix/ipojo/runtime/core/test/services/CheckService.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.felix.ipojo.runtime.core.test.services; import java.util.Properties; public interface CheckService { public static final String foo = "foo"; public boolean check(); public Properties getProps(); }
apache/felix-dev
1,061
dependencymanager/org.apache.felix.dependencymanager.benchmark/src/org/apache/felix/dm/benchmark/scenario/Track.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.felix.dm.benchmark.scenario; /** * A piece of music * * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a> */ public interface Track { /** * Play this single piece of music. */ void play(); }
apache/felix-dev
1,098
healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/Async.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The SF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.felix.hc.annotation; import org.osgi.service.component.annotations.ComponentPropertyType; @ComponentPropertyType public @interface Async { public static final String PREFIX_ = "hc.async."; String cronExpression() default ""; long intervalInSec() default -1; }
apache/fineract
1,058
fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/loan/repayment/LoanRepaymentOverdueEvent.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.fineract.test.messaging.event.loan.repayment; public class LoanRepaymentOverdueEvent extends AbstractLoanRepaymentDueEvent { @Override public String getEventName() { return "LoanRepaymentOverdueBusinessEvent"; } }
apache/fineract
1,106
fineract-cob/src/main/java/org/apache/fineract/cob/service/ReloadService.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.fineract.cob.service; import org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom; public interface ReloadService<S extends AbstractPersistableCustom<Long>> { <X extends AbstractPersistableCustom<Long>> boolean canReload(X input); S reload(S input); }
apache/flex-blazeds
1,102
common/src/main/java/flex/messaging/config/ConfigurationFileResolver.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 flex.messaging.config; import java.io.InputStream; import java.util.List; /** * */ public interface ConfigurationFileResolver { InputStream getConfigurationFile(String path); InputStream getIncludedFile(String path); void popIncludedFile(); List getFiles(String dir); }
apache/geaflow
1,070
geaflow-console/app/core/model/src/main/java/org/apache/geaflow/console/core/model/security/GeaflowTenant.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.geaflow.console.core.model.security; import lombok.Getter; import lombok.Setter; import org.apache.geaflow.console.core.model.GeaflowName; @Getter @Setter public class GeaflowTenant extends GeaflowName { private GeaflowQuota quota; }
apache/geode
1,070
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/execute/PRTransactionWithVersionsDUnitTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT 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.apache.geode.internal.cache.execute; public class PRTransactionWithVersionsDUnitTest extends PRTransactionDUnitTest { public PRTransactionWithVersionsDUnitTest() { super(); } @Override protected boolean getEnableConcurrency() { return true; } }
apache/gobblin
1,096
gobblin-cluster/src/main/java/org/apache/gobblin/cluster/GobblinHelixConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.gobblin.cluster; /** * Class for defining constants used while interacting with Helix */ public class GobblinHelixConstants { public static final String SHUTDOWN_MESSAGE_TYPE = "SHUTDOWN"; public static final String HELIX_INSTANCE_NAME_KEY = "HelixInstanceName"; }
apache/hadoop-hdfs
1,130
src/test/aop/org/apache/hadoop/fi/PipelineTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.hadoop.fi; import org.apache.hadoop.hdfs.protocol.DatanodeID; import org.apache.hadoop.hdfs.protocol.LocatedBlock; /** A pipeline contains a list of datanodes. */ public interface PipelineTest { public Pipeline initPipeline(LocatedBlock lb); public Pipeline getPipelineForDatanode(DatanodeID id); }
apache/hadoop
1,087
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * This package provides the administrative APIs for HDFS. */ @InterfaceAudience.Public @InterfaceStability.Evolving package org.apache.hadoop.hdfs.client; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/harmony
1,105
classlib/modules/swing/src/main/java/common/javax/swing/InputVerifier.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @author Sergey Burlak */ package javax.swing; public abstract class InputVerifier { public InputVerifier() { } public abstract boolean verify(final JComponent input); public boolean shouldYieldFocus(final JComponent input) { return verify(input); } }
apache/harmony
1,110
classlib/modules/rmi/src/main/java/java/rmi/ServerRuntimeException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 java.rmi; /** * @deprecated No replacement. */ @Deprecated public class ServerRuntimeException extends RemoteException { private static final long serialVersionUID = 7054464920481467219L; public ServerRuntimeException(String msg, Exception cause) { super(msg, cause); } }
apache/harmony
1,116
classlib/modules/rmi/src/main/java/java/rmi/ConnectException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 java.rmi; public class ConnectException extends RemoteException { private static final long serialVersionUID = 4863550261346652506L; public ConnectException(String msg, Exception cause) { super(msg, cause); } public ConnectException(String msg) { super(msg); } }
apache/harmony
1,116
classlib/modules/rmi/src/main/java/java/rmi/MarshalException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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 java.rmi; public class MarshalException extends RemoteException { private static final long serialVersionUID = 6223554758134037936L; public MarshalException(String msg, Exception cause) { super(msg, cause); } public MarshalException(String msg) { super(msg); } }
apache/hbase
1,104
hbase-common/src/main/java/org/apache/hadoop/hbase/util/IOExceptionSupplier.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.hadoop.hbase.util; import java.io.IOException; import org.apache.yetus.audience.InterfaceAudience; /** * A supplier that throws IOException when get. */ @InterfaceAudience.Private @FunctionalInterface public interface IOExceptionSupplier<V> { V get() throws IOException; }
apache/hertzbeat
1,043
template-marketplace/hertzbeat-template-hub/src/test/java/org/apache/hertzbeat/templatehub/HertzbeatTemplateDOHubApplicationTests.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.hertzbeat.templatehub; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class HertzbeatTemplateDOHubApplicationTests { @Test void contextLoads() { } }
apache/hop
1,094
plugins/actions/join/src/test/java/org/apache/hop/workflow/actions/join/ActionJoinTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.hop.workflow.actions.join; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; class ActionJoinTest { @Test void test() throws Exception { ActionJoin action = new ActionJoin(); assertTrue(action.isJoin()); } }
apache/ignite-3
1,071
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/disaster/DisasterRecoveryRequestType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.ignite.internal.table.distributed.disaster; enum DisasterRecoveryRequestType { /** Request that will be handled only on one node that was created by it. */ SINGLE_NODE, /** Request that will be handled by all nodes. */ MULTI_NODE }
apache/ignite-3
1,085
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/message/ReplicaRequest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.ignite.internal.replicator.message; import org.apache.ignite.internal.network.NetworkMessage; /** * Replica request. */ public interface ReplicaRequest extends NetworkMessage { /** Gets a replication group id. */ ReplicationGroupIdMessage groupId(); }
apache/ignite
1,086
modules/web/src/test/java/org/apache/ignite/internal/websession/WebSessionReplicatedSelfTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.ignite.internal.websession; /** * Tests web sessions with REPLICATED cache. */ public class WebSessionReplicatedSelfTest extends WebSessionSelfTest { /** {@inheritDoc} */ @Override protected String getCacheName() { return "replicated"; } }
apache/ignite
1,094
modules/core/src/test/java/org/apache/ignite/internal/util/collection/IntRWHashMapTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.ignite.internal.util.collection; /** * Base scenarios for read-write map. */ public class IntRWHashMapTest extends AbstractBaseIntMapTest { /** {@inheritDoc} */ @Override protected IntMap<String> instantiateMap() { return new IntRWHashMap<>(); } }
apache/ignite
1,095
examples/src/test/java/org/apache/ignite/examples/MonteCarloExamplesMultiNodeSelfTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.ignite.examples; /** * PrimeExample multi-node self test. */ public class MonteCarloExamplesMultiNodeSelfTest extends MonteCarloExamplesSelfTest { /** {@inheritDoc} */ @Override protected void beforeTest() throws Exception { startRemoteNodes(); } }
apache/incubator-atlas
1,106
common/src/main/java/org/apache/atlas/annotation/GraphTransaction.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.atlas.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface GraphTransaction { }
apache/incubator-heron
1,090
storm-compatibility/v2.2.0/src/java/org/apache/storm/topology/base/BaseRichBolt.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.storm.topology.base; import org.apache.storm.topology.IRichBolt; public abstract class BaseRichBolt extends BaseComponent implements IRichBolt { private static final long serialVersionUID = 5749013017107995933L; @Override public void cleanup() { } }
apache/incubator-kie-drools
1,093
kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryIds.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.kie.drl.api.identifiers; public class QueryIds { private final RuleUnitId ruleUnitId; QueryIds(RuleUnitId ruleUnitId) { this.ruleUnitId = ruleUnitId; } public QueryId get(String queryId) { return new QueryId(ruleUnitId, queryId); } }
apache/incubator-kie-drools
1,096
kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.kie.api.event.rule; import java.util.EventListener; public interface RuleRuntimeEventListener extends EventListener { void objectInserted(ObjectInsertedEvent event); void objectUpdated(ObjectUpdatedEvent event); void objectDeleted(ObjectDeletedEvent event); }
apache/incubator-kie-drools
1,112
kie-api/src/main/java/org/kie/api/definition/rule/All.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.kie.api.definition.rule; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(value = RetentionPolicy.RUNTIME) @Target(value = ElementType.TYPE) public @interface All { }
apache/incubator-kie-kogito-apps
1,050
jobs-service/jobs-service-common/src/main/java/org/kie/kogito/jobs/service/resource/error/DefaultExceptionMapper.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.kie.kogito.jobs.service.resource.error; import jakarta.ws.rs.ext.Provider; @Provider public class DefaultExceptionMapper extends BaseExceptionMapper<Exception> { public DefaultExceptionMapper() { super(true); } }
apache/incubator-kie-kogito-examples
1,040
kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDMNTreeIT.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.kie.kogito.dmn.pmml.quarkus.example; import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest public class NativeDMNTreeIT extends DMNTreeTest { // Execute the same tests but in native mode. }
apache/incubator-kie-optaplanner
1,042
core/optaplanner-core-impl/src/test/java/org/optaplanner/core/impl/testdata/domain/clone/lookup/TestdataObjectNoId.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.optaplanner.core.impl.testdata.domain.clone.lookup; public class TestdataObjectNoId { private final Integer id = 0; public TestdataObjectNoId() { } public Integer getId() { return id; } }
apache/incubator-retired-wave
1,094
wave/src/main/java/org/waveprotocol/wave/model/supplement/ThreadState.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.waveprotocol.wave.model.supplement; /** * An enum to represent the state of a thread. * */ public enum ThreadState { COLLAPSED, /** The thread has been explicitly collapsed by the user */ EXPANDED /** The thread has been explicitly expanded by the user */ }
apache/incubator-seata
1,081
sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SqlParserType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.seata.sqlparser; public interface SqlParserType { /** * The constant SQL_PARSER_TYPE_DRUID. */ String SQL_PARSER_TYPE_DRUID = "druid"; /** * The constant SQL_PARSER_TYPE_ANTLR. */ String SQL_PARSER_TYPE_ANTLR = "antlr"; }
apache/incubator-seata
1,095
common/src/test/java/org/apache/seata/common/util/CycleDependencyHandlerTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.seata.common.util; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class CycleDependencyHandlerTest { @Test public void testContainsObject() { Assertions.assertFalse(CycleDependencyHandler.containsObject(null)); } }
apache/incubator-seata
1,105
spring/src/test/java/org/apache/seata/spring/util/MockOrdered.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.seata.spring.util; import org.springframework.core.Ordered; public class MockOrdered implements Ordered { private Integer order; public MockOrdered(Integer order) { this.order = order; } @Override public int getOrder() { return order; } }
apache/incubator-tez
1,081
tez-api/src/main/java/org/apache/tez/runtime/common/objectregistry/ObjectRegistryFactory.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.tez.runtime.common.objectregistry; import com.google.inject.Inject; public class ObjectRegistryFactory { @Inject private static ObjectRegistry objectRegistry; public static ObjectRegistry getObjectRegistry() { return objectRegistry; } }
apache/incubator-tez
1,109
tez-api/src/main/java/org/apache/tez/client/TezAppMasterStatus.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.tez.client; public enum TezAppMasterStatus { /** App Master initializing itself */ INITIALIZING, /** App Master ready to run DAG */ READY, /** App Master is running a DAG */ RUNNING, /** App Master has shut down or is in the process of shutting down. */ SHUTDOWN }
apache/inlong
1,044
inlong-sort-standalone/sort-standalone-common/src/main/java/org/apache/inlong/sort/standalone/config/loader/CommonPropertiesLoader.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.inlong.sort.standalone.config.loader; import java.util.Map; /** * * CommonPropertiesLoader */ public interface CommonPropertiesLoader { /** * load * * @return */ Map<String, String> load(); }
apache/inlong
1,082
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/entry/TopicStatus.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.inlong.tubemq.manager.entry; public enum TopicStatus { ADDING(0), SUCCESS(1), FAILED(2), RETRY(3); private int value = 0; private TopicStatus(int value) { this.value = value; } public int value() { return this.value; } }
apache/inlong
1,095
inlong-common/src/main/java/org/apache/inlong/common/constant/ProtocolType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.inlong.common.constant; /** * Constants of protocol type. */ public class ProtocolType { public static final String TCP = "TCP"; public static final String UDP = "UDP"; public static final String HTTP = "HTTP"; public static final String HTTPS = "HTTPS"; }
apache/iotdb
1,044
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/exception/IllegalSourceFileTypeException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.iotdb.db.storageengine.dataregion.compaction.execute.exception; public class IllegalSourceFileTypeException extends RuntimeException { public IllegalSourceFileTypeException(String msg) { super(msg); } }
apache/jackrabbit-filevault
1,087
vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/ConsoleCommand.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.jackrabbit.vault.util.console; import org.apache.commons.cli2.CommandLine; /** * {@code Command}... */ public interface ConsoleCommand extends CliCommand { public boolean execute(ConsoleExecutionContext ctx, CommandLine cl) throws Exception; }
apache/jclouds
1,110
apis/ec2/src/main/java/org/jclouds/ec2/config/EC2HttpApiModule.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.jclouds.ec2.config; import org.jclouds.ec2.EC2Api; import org.jclouds.rest.ConfiguresHttpApi; /** * Configures the EC2 connection. */ @ConfiguresHttpApi public class EC2HttpApiModule extends BaseEC2HttpApiModule<EC2Api> { public EC2HttpApiModule() { super(EC2Api.class); } }
apache/jena
1,116
jena-core/src/test/java/org/apache/jena/enhanced/test/TestModel.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.jena.enhanced.test; /** * A minimalist model interface. * It allows you to access an arbitrary subject node, * or property node, or object node from the graph. */ public interface TestModel { TestSubject aSubject(); TestProperty aProperty(); TestObject anObject(); }
apache/jmeter
1,118
src/core/src/main/java/org/apache/jmeter/gui/util/JMeterColor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.jmeter.gui.util; import java.awt.Color; public class JMeterColor { public static final Color DARK_GREEN = new Color(0F, .5F, 0F); public static final Color LAVENDER = new Color(206F / 255F, 207F / 255F, 1F); public static final Color PURPLE = new Color(150 / 255F, 0, 150 / 255F); }
apache/juneau
1,104
juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/entity/package-info.java
/*************************************************************************************************************************** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * ***************************************************************************************************************************/ /** * HTTP Entity Beans */ package org.apache.juneau.http.entity;
apache/juneau
1,104
juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/header/package-info.java
/*************************************************************************************************************************** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * ***************************************************************************************************************************/ /** * HTTP Header Beans */ package org.apache.juneau.http.header;
apache/juneau
1,106
juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/util/package-info.java
/*************************************************************************************************************************** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * ***************************************************************************************************************************/ /** * REST Server Utilities */ package org.apache.juneau.rest.util;
apache/kafka
1,103
clients/src/main/java/org/apache/kafka/clients/admin/DescribeClientQuotasOptions.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.kafka.clients.admin; import org.apache.kafka.common.quota.ClientQuotaFilter; /** * Options for {@link Admin#describeClientQuotas(ClientQuotaFilter, DescribeClientQuotasOptions)}. */ public class DescribeClientQuotasOptions extends AbstractOptions<DescribeClientQuotasOptions> { }
apache/kafka
1,108
trogdor/src/test/java/org/apache/kafka/trogdor/task/SampleTaskController.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.kafka.trogdor.task; import org.apache.kafka.trogdor.common.Topology; import java.util.Set; public class SampleTaskController implements TaskController { @Override public Set<String> targetNodes(Topology topology) { return Topology.Util.agentNodeNames(topology); } }
apache/kylin
1,094
src/streaming/src/main/java/org/apache/kylin/streaming/event/StreamingJobDropEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.kylin.streaming.event; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.Setter; import lombok.ToString; @Setter @Getter @AllArgsConstructor @ToString public class StreamingJobDropEvent { private String project; private String modelId; }
apache/kylin
1,094
src/streaming/src/main/java/org/apache/kylin/streaming/event/StreamingJobKillEvent.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.kylin.streaming.event; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.Setter; import lombok.ToString; @Setter @Getter @AllArgsConstructor @ToString public class StreamingJobKillEvent { private String project; private String modelId; }
apache/kylin
1,095
src/core-common/src/main/java/org/apache/kylin/common/persistence/event/StartUnit.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.kylin.common.persistence.event; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @AllArgsConstructor @NoArgsConstructor @Setter @Getter public class StartUnit extends Event { private String unitId; }
apache/kylin
1,101
src/core-job/src/main/java/org/apache/kylin/job/scheduler/JobScheduler.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.kylin.job.scheduler; public interface JobScheduler { String MASTER_SCHEDULER = "master_scheduler"; // master void publishJob(); // slave void subscribeJob(); String getJobNode(String jobId); boolean isMaster(); String getJobMaster(); }
apache/linkis
1,070
linkis-public-enhancements/linkis-cs-server/src/main/java/org/apache/linkis/cs/server/protocol/ContextProtocol.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.linkis.cs.server.protocol; import org.apache.linkis.cs.server.enumeration.ServiceType; public class ContextProtocol extends AbstractHttpRequestProtocol { @Override public String getServiceName() { return ServiceType.CONTEXT.name(); } }
apache/lucene
1,116
lucene/core/src/test/org/apache/lucene/util/compress/TestFastLZ4.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.lucene.util.compress; import org.apache.lucene.util.compress.LZ4.HashTable; public class TestFastLZ4 extends LZ4TestCase { @Override protected HashTable newHashTable() { LZ4.HashTable hashTable = new LZ4.FastCompressionHashTable(); return new AssertingHashTable(hashTable); } }
apache/lucene
1,116
lucene/core/src/test/org/apache/lucene/util/compress/TestHighLZ4.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.lucene.util.compress; import org.apache.lucene.util.compress.LZ4.HashTable; public class TestHighLZ4 extends LZ4TestCase { @Override protected HashTable newHashTable() { LZ4.HashTable hashTable = new LZ4.HighCompressionHashTable(); return new AssertingHashTable(hashTable); } }
apache/maven-archetype
1,086
archetype-common/src/main/java/org/apache/maven/archetype/ArchetypeCreationResult.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.maven.archetype; /** @author Jason van Zyl */ public class ArchetypeCreationResult { private Exception cause; public Exception getCause() { return cause; } public void setCause(Exception cause) { this.cause = cause; } }
apache/maven-dependency-plugin
1,118
src/it/projects/analyze/src/main/java/Main.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.metadata.Metadata; import org.apache.maven.model.Model; public class Main { public static final String SCOPE_COMPILE = Artifact.SCOPE_COMPILE; public Model model = null; public Metadata metadata = null; }
apache/maven-shade-plugin
1,080
src/it/projects/reloc-and-mini/src/main/java/org/apache/maven/plugins/shade/its/App.java
package org.apache.maven.plugins.shade.its; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestResult; public class App { public static void main( String[] args ) { TestResult result = new TestResult(); System.out.println("Failures: " + result.failureCount()); } }
apache/maven
1,071
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/InvalidVersionSpecificationException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.maven.artifact.versioning; /** * Occurs when a version is invalid. * */ public class InvalidVersionSpecificationException extends Exception { public InvalidVersionSpecificationException(String message) { super(message); } }
apache/maven
1,097
api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/ModelXmlFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.maven.api.services.xml; import org.apache.maven.api.annotations.Experimental; import org.apache.maven.api.model.Model; /** * Reads or writes a {@link Model} using XML. * * @since 4.0.0 */ @Experimental public interface ModelXmlFactory extends XmlFactory<Model> {}
apache/metron
1,077
metron-platform/metron-common/src/main/java/org/apache/metron/common/zookeeper/configurations/Reloadable.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.metron.common.zookeeper.configurations; import org.apache.metron.common.configuration.ConfigurationType; import java.io.Serializable; public interface Reloadable extends Serializable { void reloadCallback(String name, ConfigurationType type); }
apache/mina
1,111
codec/src/main/java/org/apache/mina/codec/delimited/ints/IntTranscoder.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.mina.codec.delimited.ints; import org.apache.mina.codec.delimited.ByteBufferEncoder; import org.apache.mina.codec.delimited.IoBufferDecoder; public interface IntTranscoder { IoBufferDecoder<Integer> getDecoder(); ByteBufferEncoder<Integer> getEncoder(); }
apache/nifi
1,038
nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/replication/io/EntitySerializer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.nifi.cluster.coordination.http.replication.io; import java.io.IOException; import java.io.OutputStream; public interface EntitySerializer { void serialize(Object entity, OutputStream out) throws IOException; }
apache/nifi
1,103
nifi-framework-api/src/main/java/org/apache/nifi/diagnostics/DiagnosticLevel.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.nifi.diagnostics; public enum DiagnosticLevel { /** * Only basic information should be gathered. */ BASIC, /** * Detailed diagnostics information should be gathered, even if it is more expensive and/or generates verbose output. */ VERBOSE; }
apache/oodt
1,093
filemgr/src/main/java/org/apache/oodt/cas/filemgr/repository/RepositoryManagerFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.oodt.cas.filemgr.repository; /** * @author mattmann * @version $Revision$ * * <p> * A Factory interface for creating {@link RepositoryManager} objects. * </p> * */ public interface RepositoryManagerFactory { RepositoryManager createRepositoryManager(); }
apache/oozie
1,089
sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherAMCallbackNotifierFactory.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.oozie.action.hadoop; import org.apache.hadoop.conf.Configuration; public class LauncherAMCallbackNotifierFactory { public LauncherAMCallbackNotifier createCallbackNotifier(Configuration conf) { return new LauncherAMCallbackNotifier(conf); } }
apache/openjpa
1,084
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/UnenhancedUnlistedReferer.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.openjpa.enhance; import jakarta.persistence.Entity; import jakarta.persistence.Id; import jakarta.persistence.OneToOne; @Entity public class UnenhancedUnlistedReferer { @Id private int id; @OneToOne private UnenhancedUnlistedClass other; }
apache/openjpa
1,106
openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ObjectFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.openjpa.kernel; /** * An interface to create objects that are used by result processing. * @see FillStrategy.Factory * * @author Pinaki Poddar * @since 2.0.0 * * @param <T> the type created by this factory. * */ public interface ObjectFactory<T> { T newInstance(); }
apache/ozhera
1,077
ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaInterfaceRes.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT 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.apache.ozhera.monitor.bo; import lombok.Data; @Data public class GrafanaInterfaceRes { private String label; private String value; private String appParamName; private String url; private boolean timeRangeP; private String type; }
apache/ozone
1,091
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/ServiceNotReadyException.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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.apache.hadoop.ozone.recon.api; /** * This exception being thrown when Rest API service is still initializing and not yet ready. */ public class ServiceNotReadyException extends RuntimeException { public ServiceNotReadyException(String message) { super(message); } }
apache/ozone
1,101
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/package-info.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Ozone supports the notion of different kind of pipelines. * That means that we can have a replication pipeline build on Ratis, Simple or some other protocol. * All Pipeline managers the entities in charge of pipelines reside in the package. */ package org.apache.hadoop.hdds.scm.pipeline;