Page tree

The application state API contains several informations about the application. This API was implemented for interface testing, where the tests has to check the application before they can be run.

If the API changes in an incompatible manner this is listed explicitly in the "important release notes" section of each releases changelog.

Provides a snapshot of the current application state.

URL:

/editor/index/applicationstate

Available Methods:

GET

Specialities:

-

JSON Example


{
    "isUptodate": true,
    "version": "development",
    "branch": "## master...origin/master",
    "worker": {
        "scheduled": 0,
        "waiting": 0,
        "running": 0,
        "defunct": 0,
        "done": 19
	},
	"pluginsLoaded": [
	    "editor_Plugins_Debug_Bootstrap",
    	"editor_Plugins_Transit_Bootstrap",
	    "editor_Plugins_SegmentStatistics_Bootstrap",
    	"editor_Plugins_TermTagger_Bootstrap",
    	"editor_Plugins_MtComparEval_Bootstrap"
	],
	"termtagger": {
	    "configured": {
		    "default": [
		        "http://localhost:9001"
			],
		    "import": [ ],
		    "gui": [ ]
		},
		"runningAll": false,
		"running": {
            "http://localhost:9001": false
        }
    }
}

Resource Layout

Name

Type

Info

isUptodate

boolean

returns if application is uptodate, false if there are updates available.

version

string

contains application version on installed instances, "development" on developer machines.

branchstringonly available if version is development, contains the branch of the master repository.
workerobjectcontains informations about the workers. Displays per worker state, how many workers are in this state.
pluginsLoadedarraycontains the loaded Plugin classes.
termtaggerobjectdetailed object information see below, for termtagger in general go here.
termtagger.configuredobjectcontains the configured termtagger instances, grouped by type.
termtagger.runningAllbooleanreturns true if all configured termtaggers are running, false otherwise.
termtagger.runningobjectcontains the configured termtagger URL as key, and true (if running) or false (if not) as value.
  • No labels