|
JAVA API |
Top Previous Next |
|
NOTE: Please see the Examples section for more commands. Using the JAVA API is quit similar to the command line, but it enables you to do so directly from within a JAVA program. In this case the commands and parameters are passed to the NGAPIClient JAVA exec method via a Properties object. Below is a use-case example that details how to use the JAVA API from within a JAVA Program.
Create a sample JAVA source file, ~/apiclient/examples/MySaaSExample.java (note the example is included in the apiclient package) and add the following:
Compile the JAVA source file like so (edit the paths accordingly):
Next, deploy the application (or other command) by running MySaaSExample like so:
NOTE: Please see the Examples section for more commands. |