public interface PayaraMicroBoot
| Modifier and Type | Method and Description |
|---|---|
PayaraMicroBoot |
addDeployFromGAV(String GAV)
Adds a Maven GAV coordinate to the list of archives to be deployed at
boot.
|
PayaraMicroBoot |
addDeployment(String pathToWar)
Adds an archive to the list of archives to be deployed at boot.
|
PayaraMicroBoot |
addDeploymentFile(File file)
Adds an archive to the list of archives to be deployed at boot.
|
PayaraMicroBoot |
addLibrary(File lib)
Adds the library to the classloader and loads it
|
PayaraMicroBoot |
addRepoUrl(String... URLs)
Adds a Maven repository to the list of repositories to search for
artifacts in
|
PayaraMicroRuntime |
bootStrap()
Boots the Payara Micro Server.
|
File |
getAlternateDomainXML()
The path to an alternative domain.xml for PayaraMicro to use at boot
|
int |
getAutoBindRange()
Gets the maximum number of ports to check if free for autobinding
purposes
|
String |
getClusterMulticastGroup()
Gets the cluster group
|
int |
getClusterPort()
Gets the cluster multicast port used for cluster communications
|
int |
getClusterStartPort()
Gets the instance listen port number used by clustering.
|
File |
getDeploymentDir()
A directory which will be scanned for archives to deploy
|
boolean |
getHttpAutoBind()
Indicates whether autobinding of the HTTP port is enabled
|
int |
getHttpPort()
The configured port Payara Micro will use for HTTP requests.
|
String |
getHzClusterName()
Gets the name of the Hazelcast cluster group.
|
String |
getHzClusterPassword()
Gets the password of the Hazelcast cluster group
|
String |
getInstanceGroup()
Gets the name of the instance group
|
String |
getInstanceName()
Gets the logical name for this PayaraMicro Server within the server
cluster
|
int |
getMaxHttpThreads()
The maximum threads in the HTTP(S) threadpool processing HTTP(S)
requests.
|
int |
getMinHttpThreads()
The minimum number of threads in the HTTP(S) threadpool Default value is
10
|
File |
getRootDir()
The File path to a directory that PayaraMicro should use for storing its
configuration files
|
PayaraMicroRuntime |
getRuntime()
Get a handle on the running Payara instance to manipulate the server once
running
|
boolean |
getSslAutoBind()
Indicates whether autobinding of the HTTPS port is enabled
|
String |
getSslCert()
The name of the SSL certificate to use in the keystore
|
int |
getSslPort()
The configured port for HTTPS requests
|
File |
getUberJar()
The UberJar to create
|
boolean |
isLite()
Indicates whether this is a lite cluster member which means it stores no
cluster data although it participates fully in the cluster.
|
boolean |
isNoCluster()
Indicated whether clustering is enabled
|
PayaraMicroBoot |
setAccessLogDir(String filePath)
Set user defined file directory for the access log
|
PayaraMicroBoot |
setAccessLogFormat(String format)
Set user defined formatting for the access log
|
PayaraMicroBoot |
setAlternateDomainXML(File alternateDomainXML)
Sets the path to a domain.xml file PayaraMicro should use to boot.
|
PayaraMicroBoot |
setApplicationDomainXML(String domainXml)
Sets an application specific domain.xml file that is embedded on the
classpath of your application.
|
PayaraMicroBoot |
setAutoBindRange(int autoBindRange)
Sets the maximum number of ports to check if free for autobinding
purposes
|
PayaraMicroBoot |
setClusterMulticastGroup(String hzMulticastGroup)
Sets the cluster group used for Payara Micro clustering used for cluster
communications and discovery.
|
PayaraMicroBoot |
setClusterPort(int hzPort)
Sets the multicast group used for Payara Micro clustering used for
cluster communication and discovery.
|
PayaraMicroBoot |
setClusterStartPort(int hzStartPort)
Sets the start port number for the Payara Micro to listen on for cluster
communications.
|
PayaraMicroBoot |
setDeploymentDir(File deploymentRoot)
Sets a directory to scan for archives to deploy on boot.
|
PayaraMicroBoot |
setHttpAutoBind(boolean httpAutoBind)
Enables or disables autobinding of the HTTP port
|
PayaraMicroBoot |
setHttpPort(int httpPort)
Sets the port used for HTTP requests
|
PayaraMicroBoot |
setHzClusterName(String hzClusterName)
Sets the name of the Hazelcast cluster group
|
PayaraMicroBoot |
setHzClusterPassword(String hzClusterPassword)
Sets the Hazelcast cluster group password.
|
PayaraMicroBoot |
setInstanceGroup(String groupName)
Sets the instance group name
|
PayaraMicroBoot |
setInstanceName(String instanceName)
Sets the logical instance name for this PayaraMicro server within the
server cluster If this is not set a UUID is generated
|
PayaraMicroBoot |
setLite(boolean liteMember)
Sets the lite status of this cluster member.
|
PayaraMicroBoot |
setLogoFile(String filePath)
Sets the path to the logo file printed at boot.
|
PayaraMicroBoot |
setLogPropertiesFile(File fileName)
Set user defined properties file for logging
|
PayaraMicroBoot |
setMaxHttpThreads(int maxHttpThreads)
The maximum threads in the HTTP(S) threadpool processing HTTP(S)
requests.
|
PayaraMicroBoot |
setMinHttpThreads(int minHttpThreads)
The minimum number of threads in the HTTP(S) threadpool Default value is
10
|
PayaraMicroBoot |
setNoCluster(boolean noCluster)
Enables or disables clustering before bootstrap
|
PayaraMicroBoot |
setPrintLogo(boolean generate)
Set whether the logo should be generated on boot
|
PayaraMicroBoot |
setRootDir(File rootDir)
Sets the File path to a directory PayaraMicro should use to install its
configuration files.
|
PayaraMicroBoot |
setSniEnabled(boolean value)
Sets whether SNI enabled for SSL
|
PayaraMicroBoot |
setSslAutoBind(boolean sslAutoBind)
Enables or disables autobinding of the HTTPS port
|
PayaraMicroBoot |
setSslCert(String alias)
Sets the name of the certificate to use in the keystore
|
PayaraMicroBoot |
setSslPort(int sslPort)
Sets the configured port for HTTPS requests.
|
PayaraMicroBoot |
setUserLogFile(String fileName)
Set user defined file for the Log entries
|
void |
shutdown()
Stops and then shutsdown the Payara Micro Server
|
PayaraMicroBoot addDeployFromGAV(String GAV)
GAV - GAV coordinatePayaraMicroBoot addDeployment(String pathToWar)
pathToWar - File path to the deployment archivePayaraMicroBoot addDeploymentFile(File file)
file - File path to the deployment archivePayaraMicroBoot addRepoUrl(String... URLs)
URLs - URL to Maven repositoryPayaraMicroRuntime bootStrap() throws BootstrapException
BootstrapExceptionFile getAlternateDomainXML()
int getAutoBindRange()
String getClusterMulticastGroup()
int getClusterPort()
int getClusterStartPort()
File getDeploymentDir()
boolean getHttpAutoBind()
int getHttpPort()
String getHzClusterName()
String getHzClusterPassword()
String getInstanceName()
int getMaxHttpThreads()
int getMinHttpThreads()
File getRootDir()
PayaraMicroRuntime getRuntime() throws IllegalStateException
IllegalStateExceptionboolean getSslAutoBind()
int getSslPort()
String getSslCert()
File getUberJar()
boolean isLite()
boolean isNoCluster()
PayaraMicroBoot setAccessLogDir(String filePath)
filePath - PayaraMicroBoot setAccessLogFormat(String format)
format - PayaraMicroBoot setAlternateDomainXML(File alternateDomainXML)
alternateDomainXML - PayaraMicroBoot setApplicationDomainXML(String domainXml)
domainXml - This is a resource string for your domain.xmlPayaraMicroBoot setAutoBindRange(int autoBindRange)
autoBindRange - The maximum number of ports to increment the port
value byPayaraMicroBoot setClusterMulticastGroup(String hzMulticastGroup)
hzMulticastGroup - String representation of the multicast groupPayaraMicroBoot setClusterPort(int hzPort)
hzPort - The port numberPayaraMicroBoot setClusterStartPort(int hzStartPort)
hzStartPort - Start port numberPayaraMicroBoot setDeploymentDir(File deploymentRoot)
deploymentRoot - File path to the directoryPayaraMicroBoot setHttpAutoBind(boolean httpAutoBind)
httpAutoBind - The true or false value to enable or disable HTTP
autobindingPayaraMicroBoot setHttpPort(int httpPort)
httpPort - The port numberPayaraMicroBoot setHzClusterName(String hzClusterName)
hzClusterName - The name of the hazelcast clusterPayaraMicroBoot setHzClusterPassword(String hzClusterPassword)
hzClusterPassword - The password to setPayaraMicroBoot setInstanceName(String instanceName)
instanceName - The logical server namePayaraMicroBoot setLite(boolean liteMember)
liteMember - set to true to set as a lite cluster member with no
data storagePayaraMicroBoot setLogPropertiesFile(File fileName)
fileName - PayaraMicroBoot setLogoFile(String filePath)
filePath - PayaraMicroBoot setMaxHttpThreads(int maxHttpThreads)
maxHttpThreads - Maximum threads in the HTTP(S) threadpoolPayaraMicroBoot setMinHttpThreads(int minHttpThreads)
minHttpThreads - PayaraMicroBoot setNoCluster(boolean noCluster)
noCluster - set to true to disable clusteringPayaraMicroBoot setPrintLogo(boolean generate)
generate - PayaraMicroBoot setRootDir(File rootDir)
rootDir - Path to a valid directoryPayaraMicroBoot setSslAutoBind(boolean sslAutoBind)
sslAutoBind - The true or false value to enable or disable HTTPS
autobindingPayaraMicroBoot setSslPort(int sslPort)
sslPort - The HTTPS portPayaraMicroBoot setSslCert(String alias)
alias - the name of the certificate in the keystorePayaraMicroBoot setUserLogFile(String fileName)
fileName - PayaraMicroBoot setInstanceGroup(String groupName)
instanceGroup - The instance group nameString getInstanceGroup()
void shutdown()
throws BootstrapException
BootstrapExceptionPayaraMicroBoot addLibrary(File lib)
lib - The library to addPayaraMicroBoot setSniEnabled(boolean value)
value - true to enable SNICopyright © 2019. All rights reserved.