Skip to content

Commit

Permalink
feat: add block stream manager
Browse files Browse the repository at this point in the history
Signed-off-by: georgi-l95 <[email protected]>
  • Loading branch information
georgi-l95 authored and AlfredoG87 committed Aug 28, 2024
1 parent e88e468 commit d3cdc18
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,25 @@
import com.hedera.block.simulator.config.ConfigProvider;
import com.hedera.block.simulator.config.ConfigProviderImpl;
import com.hedera.block.simulator.config.data.GrpcConfig;
import java.lang.System.Logger;

public class BlockStreamSimulator {
private static final System.Logger LOGGER =
private static final Logger LOGGER =
System.getLogger(BlockStreamSimulator.class.getName());

public BlockStreamSimulator() {}

public static void main(String[] args) {
LOGGER.log(System.Logger.Level.INFO, "Starting Block Stream Simulator");
BlockStreamSimulator blockStreamSimulator = new BlockStreamSimulator();
blockStreamSimulator.start();
}

public void start() {
ConfigProvider configProvider = new ConfigProviderImpl();
LOGGER.log(System.Logger.Level.INFO, configProvider.getConfiguration().getConfigData(GrpcConfig.class).port());
LOGGER.log(Logger.Level.INFO, "Starting Block Stream Simulator");
}

public void stop() {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (C) 2024 Hedera Hashgraph, 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.hedera.block.simulator.generator;

public interface BlockStreamManager {
}

0 comments on commit d3cdc18

Please sign in to comment.