You can communicate with the JCD using commands issued as URL parameters. The syntax and values are explained below.
The general URL syntax for commands sent manually to the Endeca JCD is as follows:
http://[host]:[port]/[op]?[param]=[val]&[param]=[val]...
Alternatively, you can access some of the parameters through the Endeca JCD home page.
Valid [op] values are listed below, along with associated [param] keys. Note that some of the operations require a job name. Job names are defined in the Control Interpreter’s control script.
Description |
Gets a brief status for a job. Returns the status for all running jobs if no job parameter is specified. Note: Active returns status for
running jobs only, in contrast to status, which returns status for all jobs,
running or not.
|
Parameter Keys |
|
Accessible from JCD Home Page |
Yes. Go to the JCD home page and click “Display running jobs”. |
Example |
http://JCDServerNameorIP:JCDPort Number/active?job=wine_dgidx |
Description |
Deletes the job definition for a stopped job. After the definition is deleted, the job can no longer be restarted. |
Parameter Keys |
|
Accessible from JCD Home Page |
No. |
Example |
http://JCDServerNameorIP:JCDPort Number/delete?job=wine_dgraph |
Description |
Lists the contents of a directory path. |
Parameter Keys |
|
Accessible from JCD Home Page |
Yes. Go to the JCD home page and click “Browse the file system”. |
Example |
On Windows: http://JCDServerNameorIP:JCDPort Number/get?path=c:\endeca\platformservices\6.1.0\reference\sample_wine_ data\logs\ On UNIX: http://JCDServerNameorIP:JCDPort Number/get?path=c:\endeca\platformservices\6.1.0\reference\sample_wine_ data\logs\ |
Description |
Shuts down all jobs and terminates the JCD. |
Parameter Keys |
None. |
Accessible from JCD Home Page |
No. |
Example |
http://JCDServerNameorIP:JCDPort Number/exit |
Description |
Retrieves the complete contents of a file. |
Parameter Keys |
|
Accessible from JCD Home Page |
Yes. Go to the JCD home page and click “Browse the file system". |
Example |
On Windows: http://JCDServerNameorIP:JCDPort Number/get?path=c:\endeca\platformservices\6.1.0\reference\sample_wine_ data\logs\wine_forge.out On UNIX: http://JCDServerNameorIP:JCDPort Number/get?path=/usr/local/endeca/ current/reference/sample_wine_data/ logs/wine_forge.out |
Description |
Terminates the JCD, leaving active jobs running. Note: On UNIX, If the Endeca JCD is running under init, then
init will immediately restart the JCD after a halt command.
|
Parameter Keys |
None. |
Accessible from JCD Home Page |
No. |
Example |
http://JCDServerNameorIP:JCDPort Number/halt |
Description |
Displays the help page. |
Parameter Keys |
None. |
Accessible from JCD Home Page |
Yes. Go to the JCD home page and click “Help”. |
Example |
http://JCDServerNameorIP:JCDPort Number/help |
Description |
Prints the environment variables that the Endeca JCD is using. |
Parameter Keys |
None. |
Accessible from JCD Home Page |
Yes. Go to the JCD home page and click “Display environment variables”. |
Example |
http://JCDServerNameorIP:JCDPort Number/printenv |
Description |
Roll (close and re-open) the Endeca JCD log file. If you roll the log to a new file, you will also have to update your jcd.conf file to point to the new log location. If you don’t update the jcd.conf, the Endeca JCD goes back to using the old log location when it is restarted. |
Parameter Keys |
|
Accessible from JCD Home Page |
No. |
Example |
On Windows: http://JCDServerNameorIP:JCDPort Number/roll?path=c:\endeca\platformservices\workspace\logs\jcdlog.txt On UNIX: On UNIX: http://JCDServerNameorIP:JCDPort Number/roll?path=/usr/local/endeca/logs/jcdlog.txt |
Description |
Starts a stopped job and returns the success or failure of the operation. |
Parameter Keys |
|
Accessible from JCD Home Page |
Yes. Go to the JCD home page and click “Display all defined jobs”. Find the job you want to start and click “Run again”. |
Example |
http://JCDServerNameorIP:JCDPort Number/start?job=wine_dgraph |
Description |
Gets the status for a job. Returns the status for all jobs if no job parameter is specified. Note: Status returns status for all jobs,
running or not, in contrast to
active, which returns status for running
jobs only.
|
Parameter Keys |
|
Accessible from JCD Home Page |
Yes. Go to the JCD home page and click “Display all defined jobs”. |
Example |
http://JCDServerNameorIP:JCDPort Number/status?job=wine_dgraph |
Description |
Stops a running job. |
Parameter Keys |
|
Accessible from JCD Home Page |
Yes. Go to the JCD home page and click either “Display all running jobs” or “Display all defined jobs”. In the Status line of the job in question, click Stop. |
Example |
http://JCDServerNameorIP:JCDPort Number/stop?job=wine_dgraph |
Description |
Returns the tail (that is, the last 1 KB) of a file. |
Parameter Keys |
path: Path of the file to tail. |
Accessible from JCD Home Page |
No. |
Example |
On Windows: http://JCDServerNameorIP:JCDPort Number/tail?path=c:\endeca\platformservices\6.1.0\reference\sample_wine_data\ logs\wine_forge.err On UNIX: http://JCDServerNameorIP:JCDPort Number/tail?path=/usr/local/endeca/ current/reference/sample_wine_data/ logs/wine_forge.err |