Operation Methods
This section details the other methods of the Payara Micro API that operate Payara
Micro Community instances. PayaraMicro.class
methods are used during the bootstrap
process, whereas PayaraMicroRuntime.class
methods are used on running instances.
The list of methods in the API:
Deployment Methods
Deployment methods are used for the deployment of applications to Payara Micro Community 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 Community 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 Community 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. |