Skip to content

Commit

Permalink
add osx
Browse files Browse the repository at this point in the history
Signed-off-by: kaideng <kaideng@kaidengdeMacBook-Pro.local>
  • Loading branch information
kaideng authored and kaideng committed Jan 3, 2023
1 parent 39e30ac commit d75efc2
Show file tree
Hide file tree
Showing 231 changed files with 5,890 additions and 5,923 deletions.
28 changes: 4 additions & 24 deletions java/osx/bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,17 @@ JAVA_OPT="${JAVA_OPT} ${JAVA_OPT_EXT}"

set -e
getpid() {
if [ -e "./bin/$1.pid" ]; then
pid=$(cat ./bin/$1.pid)
if [ -e "./bin/broker.pid" ]; then
pid=$(cat ./bin/broker.pid)
fi
if [[ -n ${pid} ]]; then
count=$(ps -ef | grep $pid | grep -v "grep" | wc -l)
if [[ ${count} -eq 0 ]]; then
rm ./bin/$1.pid
rm ./bin/broker.pid
unset pid
fi
fi

}

mklogsdir() {
Expand All @@ -114,27 +115,6 @@ start() {
getpid $module
if [[ ! -n ${pid} ]]; then JAVA_OPT="${JAVA_OPT} "
mklogsdir

# case "${module}" in
# broker)
# main_class=com.osx.broker.Bootstrap
# ;;
# cluster-manager)
# main_class=com.firework.cluster.server.bootstrap.Bootstrap
# ;;
# dashboard)
# main_class=com.firework.admin.Bootstrap
# ;;
# cli)
# main_class=com.firework.cli.bootstrap.Bootstrap
# ;;
# *)
# echo "module: $1 {transfer|cluster-manager|dashboard|cli}"
# exit 1
# esac



# if [[ -e "${module}.jar" ]]; then
# rm ${module}.jar
# fi
Expand Down
106 changes: 77 additions & 29 deletions java/osx/broker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,53 @@
<artifactId>core</artifactId>
<version>${osx.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>firework</groupId>-->
<!-- <artifactId>remoting</artifactId>-->
<!-- <version>${firework.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>

</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>

</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-core</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
</dependency>

<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-recipes</artifactId>

</dependency>

<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
Expand All @@ -48,29 +73,31 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>


</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<groupId>com.lmax</groupId>
<artifactId>disruptor</artifactId>


</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>

</dependency>
<!-- <dependency>-->
<!-- <groupId>org.assertj</groupId>-->
<!-- <artifactId>assertj-core</artifactId>-->
<!-- <version>2.6.0</version>-->
<!-- <scope>compile</scope>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.reflections</groupId>-->
<!-- <artifactId>reflections</artifactId>-->
<!-- <version>0.9.12</version>-->
<!-- </dependency>-->

<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
Expand All @@ -89,9 +116,30 @@
<version>4.12.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
</dependency>

<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
</dependency>

<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>

</dependency>
</dependencies>
<build>
<plugins>
Expand Down
Loading

0 comments on commit d75efc2

Please sign in to comment.