Skip to content

Commit 678d527

Browse files
fixed: java file license headers
Signed-off-by: Matt Peterson <[email protected]>
1 parent 2f51579 commit 678d527

19 files changed

+35
-51
lines changed

server/src/main/java/com/hedera/block/server/BlockStreamService.java

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -68,7 +66,8 @@ public Descriptors.FileDescriptor proto() {
6866
}
6967

7068
/**
71-
* Returns the service name for the BlockStreamService. This service name corresponds to the service name in the proto file.
69+
* Returns the service name for the BlockStreamService. This service name corresponds to the service name in
70+
* the proto file.
7271
*
7372
* @return the service name
7473
*/
@@ -91,10 +90,10 @@ public void update(final Routing routing) {
9190
/**
9291
* The streamSink method is called by Helidon each time a producer initiates a bidirectional stream.
9392
*
94-
* @param responseStreamObserver - Helidon provides a StreamObserver to handle responses back to the producer.
93+
* @param responseStreamObserver Helidon provides a StreamObserver to handle responses back to the producer.
9594
*
96-
* @return a custom StreamObserver to handle streaming blocks from the producer to all subscribed consumers
97-
* via the streamMediator as well as sending responses back to the producer.
95+
* @return a custom StreamObserver to handle streaming blocks from the producer to all subscribed consumer
96+
* via the streamMediator as well as sending responses back to the producer.
9897
*/
9998
private StreamObserver<BlockStreamServiceGrpcProto.Block> streamSink(
10099
final StreamObserver<BlockStreamServiceGrpcProto.BlockResponse> responseStreamObserver) {
@@ -106,11 +105,11 @@ private StreamObserver<BlockStreamServiceGrpcProto.Block> streamSink(
106105
/**
107106
* The streamSource method is called by Helidon each time a consumer initiates a bidirectional stream.
108107
*
109-
* @param responseStreamObserver - Helidon provides a StreamObserver to handle responses from the consumer
110-
* back to the server.
108+
* @param responseStreamObserver Helidon provides a StreamObserver to handle responses from the consumer
109+
* back to the server.
111110
*
112-
* @return a custom StreamObserver to handle streaming blocks from the producer to the consumer as well as
113-
* handling responses from the consumer.
111+
* @return a custom StreamObserver to handle streaming blocks from the producer to the consumer as well
112+
* as handling responses from the consumer.
114113
*/
115114
private StreamObserver<BlockStreamServiceGrpcProto.BlockResponse> streamSource(final StreamObserver<BlockStreamServiceGrpcProto.Block> responseStreamObserver) {
116115
LOGGER.log(System.Logger.Level.DEBUG, "Executing bidirectional streamSource method");

server/src/main/java/com/hedera/block/server/Constants.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,6 +16,9 @@
1816

1917
package com.hedera.block.server;
2018

19+
/**
20+
* Constants used in the BlockNode service.
21+
*/
2122
public final class Constants {
2223
private Constants() {}
2324

server/src/main/java/com/hedera/block/server/Server.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/consumer/LiveStreamObserver.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/consumer/LiveStreamObserverImpl.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -45,7 +43,8 @@ public class LiveStreamObserverImpl implements LiveStreamObserver<BlockStreamSer
4543
* @param responseStreamObserver the response stream observer
4644
*
4745
*/
48-
public LiveStreamObserverImpl(final long timeoutThresholdMillis,
46+
public LiveStreamObserverImpl(
47+
final long timeoutThresholdMillis,
4948
final StreamMediator<BlockStreamServiceGrpcProto.Block, BlockStreamServiceGrpcProto.BlockResponse> mediator,
5049
final StreamObserver<BlockStreamServiceGrpcProto.Block> responseStreamObserver) {
5150

@@ -77,9 +76,9 @@ public void notify(final BlockStreamServiceGrpcProto.Block block) {
7776
}
7877

7978
/**
80-
* The onNext() method is triggered by Helidon when the consumer sends a blockResponse via the bidirectional stream.
79+
* The onNext() method is triggered by Helidon when a consumer sends a blockResponse via the bidirectional stream.
8180
*
82-
* @param blockResponse - the BlockResponse passed to the server via the bidirectional stream to the downstream consumer
81+
* @param blockResponse the BlockResponse passed back to the server via the bidirectional stream to the downstream consumer.
8382
*/
8483
@Override
8584
public void onNext(final BlockStreamServiceGrpcProto.BlockResponse blockResponse) {

server/src/main/java/com/hedera/block/server/mediator/LiveStreamMediatorImpl.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -27,9 +25,9 @@
2725
import java.util.Set;
2826

2927
/**
30-
* LiveStreamMediatorImpl is the implementation of the StreamMediator interface. It is responsible for managing
31-
* the subscription and unsubscription operations of downstream consumers. It also proxies new blocks
32-
* to the subscribers as they arrive and persists the blocks to the block persistence store.
28+
* LiveStreamMediatorImpl is the implementation of the StreamMediator interface. It is responsible for
29+
* managing the subscribe and unsubscribe operations of downstream consumers. It also proxies live
30+
* blocks to the subscribers as they arrive and persists the blocks to the block persistence store.
3331
*/
3432
public class LiveStreamMediatorImpl implements StreamMediator<BlockStreamServiceGrpcProto.Block, BlockStreamServiceGrpcProto.BlockResponse> {
3533

server/src/main/java/com/hedera/block/server/mediator/StreamMediator.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/persistence/BlockPersistenceHandler.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/persistence/WriteThroughCacheHandler.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/persistence/cache/BNLinkedHashMap.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/persistence/cache/BlockCache.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/persistence/cache/LRUCache.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/persistence/storage/BlockStorage.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/persistence/storage/FileSystemBlockStorage.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/main/java/com/hedera/block/server/producer/ProducerBlockStreamObserver.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/test/java/com/hedera/block/server/persistence/PersistTestUtils.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (C) 2024 Hedera Hashgraph, LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.hedera.block.server.persistence;
218

319
import com.hedera.block.protos.BlockStreamServiceGrpcProto;

server/src/test/java/com/hedera/block/server/persistence/RangeTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/test/java/com/hedera/block/server/persistence/WriteThroughCacheHandlerTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");

server/src/test/java/com/hedera/block/server/util/TestUtils.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Hedera Block Node
3-
*
42
* Copyright (C) 2024 Hedera Hashgraph, LLC
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -23,7 +21,6 @@
2321
public final class TestUtils {
2422
private TestUtils() {}
2523

26-
2724
public static void deleteDirectory(File directoryToBeDeleted) {
2825
File[] allContents = directoryToBeDeleted.listFiles();
2926
if (allContents != null) {

0 commit comments

Comments
 (0)