Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 8c773e6

Browse files
author
asaveljevs
committed
- [ZBX-3710] renamed "Zabbix Java Proxy" to "Zabbix Java Gateway"
git-svn-id: svn://svn.zabbix.com/trunk/src/zabbix_java@22824 f4e7fd02-d210-4e34-a1e0-d4093fb66cc2
1 parent 9939c5e commit 8c773e6

22 files changed

+52
-52
lines changed

Makefile.am

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,37 @@ EXTRA_DIST = \
99
shutdown.sh \
1010
startup.sh
1111

12-
ZJP = bin/zabbix-java-proxy-$(VERSION).jar
12+
ZJG = bin/zabbix-java-gateway-$(VERSION).jar
1313
LIB = lib/org-json-2010-12-28.jar:lib/logback-core-0.9.27.jar:lib/logback-classic-0.9.27.jar:lib/slf4j-api-1.6.1.jar
1414
JUNIT = tests/junit-4.8.2.jar
1515

16-
ZJP_DEST = $(DESTDIR)$(sbindir)/zabbix_java
16+
ZJG_DEST = $(DESTDIR)$(sbindir)/zabbix_java
1717

18-
all: $(ZJP)
18+
all: $(ZJG)
1919

20-
$(ZJP): class src/com/zabbix/proxy/*.java
21-
$(JAVAC) -d class/src -classpath $(LIB) src/com/zabbix/proxy/*.java
22-
$(JAR) cf $(ZJP) -C class/src .
20+
$(ZJG): class src/com/zabbix/gateway/*.java
21+
$(JAVAC) -d class/src -classpath $(LIB) src/com/zabbix/gateway/*.java
22+
$(JAR) cf $(ZJG) -C class/src .
2323

2424
test: class
25-
$(JAVAC) -d class/tests -classpath class/src:$(JUNIT) tests/com/zabbix/proxy/*.java
26-
java -classpath class/tests:$(LIB):$(ZJP):$(JUNIT) com.zabbix.proxy.AllTestRunner
25+
$(JAVAC) -d class/tests -classpath class/src:$(JUNIT) tests/com/zabbix/gateway/*.java
26+
java -classpath class/tests:$(LIB):$(ZJG):$(JUNIT) com.zabbix.gateway.AllTestRunner
2727

2828
class:
2929
$(MKDIR_P) class/src
3030
$(MKDIR_P) class/tests
3131

3232
install: all
33-
$(MKDIR_P) "$(ZJP_DEST)/bin"
34-
$(MKDIR_P) "$(ZJP_DEST)/lib"
35-
cp startup.sh shutdown.sh "$(ZJP_DEST)"
36-
if test ! -f "$(ZJP_DEST)/settings.sh"; then cp settings.sh "$(ZJP_DEST)"; fi
37-
cp $(ZJP) "$(ZJP_DEST)/bin"
38-
cp lib/*.jar "$(ZJP_DEST)/lib"
39-
if test ! -f "$(ZJP_DEST)/lib/logback.xml"; then cp lib/logback.xml "$(ZJP_DEST)/lib"; fi
40-
if test ! -f "$(ZJP_DEST)/lib/logback-console.xml"; then cp lib/logback-console.xml "$(ZJP_DEST)/lib"; fi
33+
$(MKDIR_P) "$(ZJG_DEST)/bin"
34+
$(MKDIR_P) "$(ZJG_DEST)/lib"
35+
cp startup.sh shutdown.sh "$(ZJG_DEST)"
36+
if test ! -f "$(ZJG_DEST)/settings.sh"; then cp settings.sh "$(ZJG_DEST)"; fi
37+
cp $(ZJG) "$(ZJG_DEST)/bin"
38+
cp lib/*.jar "$(ZJG_DEST)/lib"
39+
if test ! -f "$(ZJG_DEST)/lib/logback.xml"; then cp lib/logback.xml "$(ZJG_DEST)/lib"; fi
40+
if test ! -f "$(ZJG_DEST)/lib/logback-console.xml"; then cp lib/logback-console.xml "$(ZJG_DEST)/lib"; fi
4141

4242
clean:
43-
rm -f $(ZJP)
43+
rm -f $(ZJG)
4444
rm -rf class/src/*
4545
rm -rf class/tests/*

settings.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This is a configuration file for Zabbix Java Proxy.
1+
# This is a configuration file for Zabbix Java Gateway.
22
# It is sourced by startup.sh and shutdown.sh scripts.
33

44
### Option: zabbix.listenIP
@@ -14,11 +14,11 @@
1414
# Mandatory: no
1515
# Range: 1024-32767
1616
# Default:
17-
# LISTEN_PORT=10051
17+
# LISTEN_PORT=10052
1818

1919
### Option: zabbix.pidFile
2020
# Name of PID file.
21-
# If omitted, Zabbix Java Proxy is started as a console application.
21+
# If omitted, Zabbix Java Gateway is started as a console application.
2222
#
2323
# Mandatory: no
2424
# Default:

shutdown.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ if [ -n "$PID_FILE" ]; then
77
if [ -e "$PID_FILE" ]; then
88
kill `cat $PID_FILE`
99
else
10-
echo "Zabbix Java Proxy is not running"
10+
echo "Zabbix Java Gateway is not running"
1111
exit 1
1212
fi
1313
else
14-
echo "Zabbix Java Proxy is not configured as a daemon: variable \$PID_FILE is not set"
14+
echo "Zabbix Java Gateway is not configured as a daemon: variable \$PID_FILE is not set"
1515
exit 1
1616
fi

src/com/zabbix/proxy/BinaryProtocolSpeaker.java renamed to src/com/zabbix/gateway/BinaryProtocolSpeaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1818
**/
1919

20-
package com.zabbix.proxy;
20+
package com.zabbix.gateway;
2121

2222
import java.io.*;
2323
import java.net.Socket;

src/com/zabbix/proxy/ConfigurationManager.java renamed to src/com/zabbix/gateway/ConfigurationManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1818
**/
1919

20-
package com.zabbix.proxy;
20+
package com.zabbix.gateway;
2121

2222
import java.io.File;
2323
import java.io.IOException;
@@ -63,7 +63,7 @@ public void execute(Object value)
6363
new ConfigurationParameter(LISTEN_IP, ConfigurationParameter.TYPE_INETADDRESS, null,
6464
null,
6565
null),
66-
new ConfigurationParameter(LISTEN_PORT, ConfigurationParameter.TYPE_INTEGER, 10051,
66+
new ConfigurationParameter(LISTEN_PORT, ConfigurationParameter.TYPE_INTEGER, 10052,
6767
new IntegerValidator(1024, 32767),
6868
null),
6969
new ConfigurationParameter(START_POLLERS, ConfigurationParameter.TYPE_INTEGER, 5,
@@ -105,6 +105,6 @@ public static int getIntegerParameterValue(String name)
105105

106106
public static String getPackage()
107107
{
108-
return "com.zabbix.proxy";
108+
return "com.zabbix.gateway";
109109
}
110110
}

src/com/zabbix/proxy/ConfigurationParameter.java renamed to src/com/zabbix/gateway/ConfigurationParameter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1818
**/
1919

20-
package com.zabbix.proxy;
20+
package com.zabbix.gateway;
2121

2222
import java.io.File;
2323
import java.net.InetAddress;

src/com/zabbix/proxy/GeneralInformation.java renamed to src/com/zabbix/gateway/GeneralInformation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1818
**/
1919

20-
package com.zabbix.proxy;
20+
package com.zabbix.gateway;
2121

2222
class GeneralInformation
2323
{
24-
public static final String APPLICATION_NAME = "Zabbix Java Proxy";
24+
public static final String APPLICATION_NAME = "Zabbix Java Gateway";
2525
public static final String REVISION_DATE = "27 October 2011";
2626
public static final String REVISION = "{ZABBIX_REVISION}";
2727
public static final String VERSION = "1.9.8";

src/com/zabbix/proxy/HelperFunctionChest.java renamed to src/com/zabbix/gateway/HelperFunctionChest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1818
**/
1919

20-
package com.zabbix.proxy;
20+
package com.zabbix.gateway;
2121

2222
class HelperFunctionChest
2323
{

src/com/zabbix/proxy/InputValidator.java renamed to src/com/zabbix/gateway/InputValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1818
**/
1919

20-
package com.zabbix.proxy;
20+
package com.zabbix.gateway;
2121

2222
interface InputValidator
2323
{

src/com/zabbix/proxy/IntegerValidator.java renamed to src/com/zabbix/gateway/IntegerValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1818
**/
1919

20-
package com.zabbix.proxy;
20+
package com.zabbix.gateway;
2121

2222
class IntegerValidator implements InputValidator
2323
{

0 commit comments

Comments
 (0)