Oracle GlassFish Server 3.0.1 Administration Guide

Child Resources for Non-CRUD Operations

The GlassFish Server REST interfaces also support operations other than create, read, update, and delete (CRUD) operations, for example:

These operations are supported through child resources of the resource on which the operation is performed. The child resources do not represent nodes in the configuration object tree.

For example, the resource for managing a domain provides child resources for non-CRUD operations as shown in the following table.

Table 2–2 Child Resources for Non-CRUD Operations on a Domain

Resource 

Action 

host-port

Displays the host on which the DAS is running and the port on which the DAS listens for HTTP requests. 

restart

Stops and then restarts the DAS of the domain. 

rotate-log

Rotates the server log file by renaming the file with a timestamp name in the format server.log_date-and-time, and creating an empty log file.

stop

Stops the DAS of the domain. 

uptime

Displays the length of time that the DAS has been running since it was last restarted. 

version

Displays version information for GlassFish Server.