Child pages
  • Wonder JavaMonitor and wotaskd

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • info : returns the details (number of deaths, state, etc.; see example above), in JavaScript Object Notation (JSON)
    • ?type=all : Returns details about all instances of all applications
    • ?type=app&name=AppName : Returns details about all instances of a specific application
    • ?type=ins&name=AppName-InstanceNoInstanceNumber : Returns details about one specific instance
  • running : Returns YES or NO
  • stopped : return NO if the instance is running, YES if not.
  • bounce : more on it later.
  • clearDeaths : clear the number of deaths (same action as clicking the "Clear deaths" in JavaMonitor)
  • turnScheduledOn : turn scheduling on for an application or instance. Call /turnScheduledOff to do the opposite.
  • turnRefuseNewSessionsOn : turn "Refuse new sessions" on, call turnRefuseNewSessionsOff to do the opposite.
  • turnAutoRecoverOn : guess what? It activate "Auto recover"! And guess again? /turnAutoRecoverOff do the opposite!
  • forceQuit : force quit an application, might be useful to call it from a monitoring system.
  • stop : stop an application/instance the normal way.
  • start : start an application/instance the normal way.

...

http://monitorhost:port/cgi-bin/WebObjects/JavaMonitor.woa/admin/info?type=ins&name=AjaxExample-1

The response for the direct actions will either send a JSON array or YES/NO. For example, the query info for all instances will return :

Code Block

[Hudson Build Server for Wonder|http://webobjects.mdimension.com/hudson/job/Wonder54/lastSuccessfulBuild/artifact/dist/]

List of available direct actions :

/info : return details (number of deaths, state, etc.; see above), in JSON, about an instance.
/running : return YES if the instance is running, NO if not.
/stopped : return NO if the instance is running, YES if not.
/bounce: more on it later.
/clearDeaths : clear the number of deaths (same action as clicking the "Clear deaths" in JavaMonitor)
/turnScheduledOn : turn scheduling on for an application or instance. Call /turnScheduledOff to do the opposite.
/turnRefuseNewSessionsOn : turn "Refuse new sessions" on, call turnRefuseNewSessionsOff to do the opposite.
/turnAutoRecoverOn : guess what? It activate "Auto recover"! And guess again? /turnAutoRecoverOff do the opposite!
/forceQuit : force quit an application, might be useful to call it from a monitoring system.
/stop : stop an application/instance the normal way.
/start : start an application/instance the normal way.

Remote Control via REST Routes

...