Payara Micro API
This section details documentation on the Payara Micro API. The Javadoc for the most recent version of the Payara Micro API can be found here.
PayaraMicro.class
methods are used during the bootstrap
process, whereas PayaraMicroRuntime.class
methods are used on running instances.
Configuration Methods
Configuration Methods of PayaraMicro.class
are detailed here.
Configuration Operand | Description | Get Method | Set Method | Default Value | Command Line Equivalent |
---|---|---|---|---|---|
Alternate Domain XML |
Gets or sets the domain.xml used to override the default server configuration. |
|
|
|
|
Cluster Multicast Group |
Gets or sets the cluster multicast group for the instance. |
|
|
|
|
Cluster Port |
Gets or sets the multicast cluster port. |
|
|
-2147483648 (MIN_VALUE) (Default value of 2904 set in default domain.xml is not read into instance variable) |
|
Cluster Start Port |
Gets or sets the start port number for the Payara Micro instance to listen on for cluster communications. |
|
|
-2147483648 (MIN_VALUE) (Default value of 5900 set in default configuration files is not read into instance variable) |
|
Deployment Directory |
Gets or sets the directory to be scanned for archives to deploy. |
|
|
|
|
HTTP Port |
Gets or sets the HTTP port for the instance to bind to. |
|
|
-2147483648 (MIN_VALUE) (Default value of 8080 set in default domain.xml is not read into instance variable) |
|
Instance Name |
Gets or sets the name of the instance. |
|
|
Generated Universally Unique Identifier. |
|
Maximum HTTP Threads |
Gets or sets the maximum number of threads in the HTTP thread pool. |
|
|
-2147483648 (MIN_VALUE) (Default value of 10 set in default domain.xml is not read into instance variable) |
|
Minimum HTTP Threads |
Gets or sets the minimum number of threads in the HTTP thread pool. |
|
|
-2147483648 (MIN_VALUE) (Default value of 10 set in default domain.xml is not read into instance variable) |
|
Root Directory |
Gets or sets the root configuartion directory. |
|
|
|
|
HTTPS Port |
Gets or sets the HTTPS port for the instance to bind to. A HTTPS port is not bound unless this value is manually set. |
|
|
-2147483648 (MIN_VALUE) (Default value of 8443 set in default domain.xml is not read into instance variable) |
|
No Clustering |
Gets or sets whether clustering is enabled or disabled for an instance. |
|
|
false |
|
HTTP Auto-Binding |
Enables or Disables auto-binding of the HTTP port for an instance. |
|
|
false |
|
HTTPS Auto-Binding |
Enables or Disables auto-binding of the HTTPS port for an instance. |
|
|
false |
|
Auto-Bind Range |
Sets the range for HTTP and HTTPS port auto-binding. |
|
|
5 |
|
Operation Methods
The other methods of the Payara Micro API that operate Payara Micro instances are detailed here.
The list of methods in the API:
Deployment Methods
Deployment methods are used for the deployment of applications to Payara Micro instances.
PayaraMicro.class
Methods
Method | Description | Command Line Equivalent |
---|---|---|
|
Adds the file found at the location of the |
|
|
Adds the file associated with the |
|
PayaraMicroRuntime.class
Methods
Method | Description |
---|---|
|
Deploys an application from an |
|
Deploys an application from an |
|
Deploys the application located at the war parameter path. |
|
Un-deploys the specified application. |
Setup and Shutdown Methods
These methods are required for setting up and cleaning Payara Micro instances.
PayaraMicro.class
Methods
Method | Description |
---|---|
|
Checks the supplied configuration parameters and starts a Payara Micro instance. |
|
Obtains the static singleton instance of the Payara Micro server. If one does not exist, one will be created and returned. |
|
Obtains the static singleton instance of the Payara Micro server. If one does
not exist and |
|
Stops and shuts down the Payara Micro instance. |
CDI Methods
These methods are used for firing CDI Events across running instances.
Method | Description |
---|---|
|
Adds a CDI Event Listener. |
|
Removes a CDI Event Listener. |
|
Adds a Cluster Listener. |
|
Removes a Cluster Listener. |
|
Publishes a CDI Event. |
Run Methods
These methods are used for running asadmin
commands or Callable
objects on bootstrapped instances.
Method | Description |
---|---|
|
Runs an asadmin command on all members of a Payara Micro Cluster. |
|
Runs an asadmin command on specified members of a Payara Micro Cluster. |
|
Runs a Callable object on all members of a Payara Micro Cluster. |
|
Runs a Callable object on specified members of a Payara Micro Cluster. |
Get Methods
These methods are used for getting information on running Payara Micro instances.
For information on the Get
methods of an non-bootstrapped instance, see the
Configuration Methods section.
Method | Description |
---|---|
|
Returns a collection of instance descriptors for all the Payara Micros instances in a cluster. |
|
Returns the names of the deployed applications. |
|
Returns the instance name. |
|
Returns the instance descriptor of the instance the method is run on. |