Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.4 release #140

Merged
merged 42 commits into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
8c22dd6
fixed default controller url (#116)
Railag Oct 30, 2018
3f5d7f1
1.0.1 (#118)
Railag Oct 30, 2018
738fd1d
EWC-292 fixed iofog-agent info controller status when access token is…
Railag Oct 31, 2018
c36c083
Merge pull request #119 from ioFog/sergey/bug-controller-status-expir…
mchepelev Oct 31, 2018
8bccf9a
build for dev env added
dbusel Oct 31, 2018
589d46d
fix travis
dbusel Oct 31, 2018
345b17e
renaming client (#120)
Railag Oct 31, 2018
b6b1b95
Merge branch 'master' into develop
dbusel Oct 31, 2018
eaacc6f
adding dev packages
dbusel Nov 2, 2018
a7fa454
invalid error message during provision (#122)
epankou Nov 2, 2018
b4d6663
update build packages
dbusel Nov 2, 2018
69751ec
Epankou/feature microservice removal ewc 306 (#123)
epankou Nov 8, 2018
2fd1317
EWC-336 added default device scan frequency value & update error message
Railag Nov 9, 2018
f30e778
Merge pull request #124 from ioFog/sergey/bug-config-ewc-336
alexandershpak Nov 9, 2018
7f477a5
EWC-335 fixed config logging parameters validation (#125)
Railag Nov 12, 2018
9293d57
microservice update fix (#126)
epankou Nov 12, 2018
14bb6e4
WIP: EWC-345 add notifications (#127)
dbusel Nov 13, 2018
7b15a50
Update .travis.yml
dbusel Nov 14, 2018
e1fad5e
Update .travis.yml
dbusel Nov 15, 2018
1f7fd43
Update .travis.yml
dbusel Nov 15, 2018
293e3e7
Merge branch 'master' into develop
dbusel Nov 15, 2018
74dc251
Update .travis.yml
dbusel Nov 15, 2018
6631ded
1.0.3 version (#129)
Railag Nov 20, 2018
08b3b5b
Merge branch 'master' into develop
dbusel Nov 20, 2018
cf9f9b8
EWC-366 now deprovision works if agent hasn't connection to controlle…
mchepelev Nov 23, 2018
d3db0a0
EWC-359 controller status renaming ok -> online (#133)
mchepelev Nov 23, 2018
a251dec
Update HornetQ version
Nov 28, 2018
ffcd5e3
Fix `isolated_docker_container` configuration
Nov 28, 2018
9242fd6
Merge pull request #134 from ioFog/saeid/hornetq-update
alexandershpak Nov 28, 2018
050e5a1
EWC-375 config switcher
Railag Nov 28, 2018
c122fcf
cleanup
Railag Nov 28, 2018
374c445
EWC-375 config switcher import fix
epankou Nov 28, 2018
05157e2
Merge branch 'sergey/feature-config-switcher-ewc-375' of https://gith…
epankou Nov 28, 2018
e0c417b
Merge pull request #135 from ioFog/sergey/feature-config-switcher-ewc…
alexandershpak Nov 28, 2018
d412af2
EWC-375 fixed help for iofog-agent client
epankou Nov 30, 2018
be5b22a
EWC-375 fixed help for iofog-agent client
alexandershpak Nov 30, 2018
b80e8cc
updating config switcher
Railag Nov 30, 2018
c1cfdbf
Updating config switcher
alexandershpak Nov 30, 2018
51b34ca
iofog agent os group fix
epankou Nov 30, 2018
dd00e3c
Iofog agent os group fix
alexandershpak Nov 30, 2018
241a24f
version 1.0.4 (#139)
Railag Nov 30, 2018
c582f42
Merge branch 'master' into develop
dbusel Nov 30, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<parent>
<groupId>org.eclipse</groupId>
<artifactId>iofog-agent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
148 changes: 77 additions & 71 deletions client/src/org/eclipse/iofog/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,80 +95,86 @@ private static boolean sendCommandlineParameters(String... args) {
* @return String
*/
private static String showHelp() {

return ("Usage 1: iofog-agent [OPTION]\n" + "Usage 2: iofog-agent [COMMAND] <Argument>\n"
+ "Usage 3: iofog-agent [COMMAND] [Parameter] <Value>\n" + "\n"
+ "Option GNU long option Meaning\n"
+ "====== =============== =======\n"
+ "-h, -? --help Show this message\n"
+ "-v --version Display the software version and\n"
+ " license information\n" + "\n" + "\n"
+ "Command Arguments Meaning\n"
+ "======= ========= =======\n"
+ "help Show this message\n"
+ "version Display the software version and\n"
+ " license information\n"
+ "status Display current status information\n"
+ " about the software\n"
+ "provision <provisioning key> Attach this software to the\n"
+ " configured ioFog controller\n"
+ "deprovision Detach this software from all\n"
+ " ioFog controllers\n"
+ "info Display the current configuration\n"
+ " and other information about the\n"
+ " software\n"
+ "login -u <username> Login to Oro Networks application\n"
+ " -p <password> \n"
+ "config [Parameter] [VALUE] Change the software configuration\n"
+ " according to the options provided\n"
+ " defaults Reset configuration to default values\n"
+ " -d <#GB Limit> Set the limit, in GiB, of disk space\n"
+ " that the software is allowed to use\n"
+ " -dl <dir> Set the directory to use for disk\n"
+ " storage\n"
+ " -m <#MB Limit> Set the limit, in MiB, of RAM memory that\n"
+ " the software is allowed to use for\n"
+ " messages\n"
+ " -p <#cpu % Limit> Set the limit, in percentage, of CPU\n"
+ " time that the software is allowed\n"
+ " to use\n"
+ " -a <uri> Set the uri of the fog controller\n"
+ " to which this software connects\n"
+ " -ac <filepath> Set the file path of the SSL/TLS\n"
+ " certificate for validating the fog\n"
+ " controller identity\n"
+ " -c <uri> Set the UNIX socket or network address\n"
+ " that the Docker daemon is using\n"
+ " -n <network adapter> Set the name of the network adapter\n"
+ " that holds the correct IP address of \n"
+ " this machine\n"
+ " -l <#MB Limit> Set the limit, in MiB, of disk space\n"
+ " that the log files can consume\n"
+ " -ld <dir> Set the directory to use for log file\n"
+ " storage\n"
+ " -lc <#log files> Set the number of log files to evenly\n"
+ " split the log storage limit\n"
+ " -sf <#seconds> Set the status update frequency\n"
+ " -cf <#seconds> Set the get changes frequency\n"
+ " -df <#seconds> Set the post diagnostics frequency\n"
+ " -idc <on/off> Set the mode on which any not\\n"
+ " registered docker container will be\n"
+ " shutted down\n" + "\n" + "\n"
+ " -gps <auto/off Set gps location of fog.\n"
+ " /#GPS DD.DDD(lat), Use auto to get coordinates by IP,\n"
+ " DD.DDD(lon) use off to forbid gps,\n"
+ " use GPS coordinates in DD format to set them manually\n"
+ " -ft <auto Set fog type.\n"
+ " /intel_amd/arm> Use auto to detect fog type by system commands,\n"
+ " use arm or intel_amd to set it manually\n"
+ " -dev <on/off> Set the developer's mode without using ssl \\n"
+ " certificates. \\n" + "\n" + "\n"
+ "Report bugs to: edgemaster@iofog.org\n" + "ioFog Agent home page: http://iofog.org\n"
+ "For users with Eclipse accounts, report bugs to: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=iofog");
return ("Usage 1: iofog-agent [OPTION]\\n" +
"Usage 2: iofog-agent [COMMAND] <Argument>\\n" +
"Usage 3: iofog-agent [COMMAND] [Parameter] <Value>\\n" +
"\\n" +
"Option GNU long option Meaning\\n" +
"====== =============== =======\\n" +
"-h, -? --help Show this message\\n" +
"-v --version Display the software version and\\n" +
" license information\\n" +
"\\n" +
"\\n" +
"Command Arguments Meaning\\n" +
"======= ========= =======\\n" +
"help Show this message\\n" +
"version Display the software version and\\n" +
" license information\\n" +
"status Display current status information\\n" +
" about the software\\n" +
"provision <provisioning key> Attach this software to the\\n" +
" configured ioFog controller\\n" +
"deprovision Detach this software from all\\n" +
" ioFog controllers\\n" +
"info Display the current configuration\\n" +
" and other information about the\\n" +
" software\\n" +
"switch <dev|prod|def> Switch to different config \\n" +
"config [Parameter] [VALUE] Change the software configuration\\n" +
" according to the options provided\\n" +
" defaults Reset configuration to default values\\n" +
" -d <#GB Limit> Set the limit, in GiB, of disk space\\n" +
" that the software is allowed to use\\n" +
" -dl <dir> Set the directory to use for disk\\n" +
" storage\\n" +
" -m <#MB Limit> Set the limit, in MiB, of RAM memory that\\n" +
" the software is allowed to use for\\n" +
" messages\\n" +
" -p <#cpu % Limit> Set the limit, in percentage, of CPU\\n" +
" time that the software is allowed\\n" +
" to use\\n" +
" -a <uri> Set the uri of the fog controller\\n" +
" to which this software connects\\n" +
" -ac <filepath> Set the file path of the SSL/TLS\\n" +
" certificate for validating the fog\\n" +
" controller identity\\n" +
" -c <uri> Set the UNIX socket or network address\\n" +
" that the Docker daemon is using\\n" +
" -n <network adapter> Set the name of the network adapter\\n" +
" that holds the correct IP address of \\n" +
" this machine\\n" +
" -l <#MB Limit> Set the limit, in MiB, of disk space\\n" +
" that the log files can consume\\n" +
" -ld <dir> Set the directory to use for log file\\n" +
" storage\\n" +
" -lc <#log files> Set the number of log files to evenly\\n" +
" split the log storage limit\\n" +
" -sf <#seconds> Set the status update frequency\\n" +
" -cf <#seconds> Set the get changes frequency\\n" +
" -df <#seconds> Set the post diagnostics frequency\\n" +
" -sd <#seconds> Set the scan devices frequency\\n" +
" -idc <on/off> Set the mode on which any not\\n" +
" registered docker container will be\\n" +
" shut down\\n" +
" -gps <auto/off Set gps location of fog.\\n" +
" /#GPS DD.DDD(lat), Use auto to get coordinates by IP,\\n" +
" DD.DDD(lon) use off to forbid gps,\\n" +
" use GPS coordinates in DD format to set them manually\\n" +
" -ft <auto Set fog type.\\n" +
" /intel_amd/arm> Use auto to detect fog type by system commands,\\n" +
" use arm or intel_amd to set it manually\\n" +
" -dev <on/off> Set the developer's mode without using ssl \\n" +
" certificates. \\n" +
"\\n" +
"\\n" +
"Report bugs to: edgemaster@iofog.org\\n" +
"ioFog home page: http://iofog.org\\n" +
"For users with Eclipse accounts, report bugs to: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=iofog");
}

private static String version() {
return "ioFog Agent 1.0.0 " +
return "ioFog Agent 1.0.4 " +
"\nCopyright (C) 2018 Edgeworx, Inc." +
"\nEclipse ioFog is provided under the Eclipse Public License (EPL2)" +
"\nhttps://www.eclipse.org/legal/epl-v20.html";
Expand Down
11 changes: 8 additions & 3 deletions daemon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<parent>
<groupId>org.eclipse</groupId>
<artifactId>iofog-agent</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -117,8 +117,13 @@
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-core</artifactId>
<version>2.3.0.BETA1</version>
<artifactId>hornetq-core-client</artifactId>
<version>2.3.0.Final</version>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-server</artifactId>
<version>2.3.0.Final</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
Expand Down
28 changes: 3 additions & 25 deletions daemon/src/org/eclipse/iofog/Daemon.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,6 @@ private static void setupEnvironment() {
daemonFilePath.mkdirs();
}

/**
* loads config.xml
*/
private static void loadConfiguration() {
try {
Configuration.loadConfig();
} catch (ConfigurationItemException e) {
System.out.println("invalid configuration item(s).");
System.out.println(e.getMessage());
System.exit(1);
} catch (Exception e) {
System.out.println("Error while parsing " + Constants.CONFIG_DIR + ". " + e.getMessage());
System.exit(1);
}
}

/**
* starts logging service
*/
Expand Down Expand Up @@ -165,7 +149,7 @@ public void write(int b) {
}

public static void main(String[] args) throws ParseException {
loadConfiguration();
Configuration.load();

setupEnvironment();

Expand All @@ -183,14 +167,8 @@ public static void main(String[] args) throws ParseException {

outToNull();

LoggingService.logInfo(MODULE_NAME, "starting supervisor");
Supervisor supervisor = new Supervisor();
try {
supervisor.start();
} catch (Exception exp) {
LoggingService.logWarning(MODULE_NAME, exp.getMessage());
}

Configuration.setupSupervisor();

System.setOut(Constants.systemOut);
}
}
Expand Down
Loading