public class AppServerDefinition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
activate
The activate procedure; may be null/empty.
|
private java.lang.String |
appServer
The appserver's name.
|
private java.lang.Integer |
autoTrimTimeout
The number of seconds waiting before auto-trimming the agents, if they exceed the
minimum capacity.
|
private java.lang.String |
connect
The connect procedure; may be null/empty.
|
private java.lang.String |
deactivate
The deactivate procedure; may be null/empty.
|
private static java.util.Map<java.lang.String,AppServerDefinition> |
definitions
A map of all initialized appserver definitions.
|
private java.lang.String |
disconnect
The disconnect procedure; may be null/empty.
|
private java.lang.Integer |
initialAgents
The number of agents to start initially.
|
private static java.util.logging.Logger |
LOG
Logger.
|
private java.lang.Integer |
maxAgents
The maximum number of agents which can be alive.
|
private java.lang.Integer |
minAgents
The minimum number of agents required for this appserver.
|
private AppServerOperatingMode |
operatingMode
The appserver's operating mode.
|
private java.lang.String |
projectToken
The project token.
|
private java.lang.String |
propath
Appserver's explicit propath.
|
private java.util.Map<java.lang.String,java.lang.String> |
properties
Environment settings incoming from progress.ini, global per appserver.
|
private java.lang.Integer |
requestTimeout
The amount of time (in seconds) to wait for an agent to be available, before attempting
to auto-start a new one.
|
private java.lang.String |
shutdown
The shutdown procedure; may be null/empty.
|
private java.lang.String |
startup
The startup procedure; may be null/empty.
|
private java.lang.String |
startupParameter
The parameter for the startup procedure; may be null/empty.
|
Modifier | Constructor and Description |
---|---|
private |
AppServerDefinition(java.lang.String appServer)
Read the definition for the given appserver, and save it in this instance.
|
Modifier and Type | Method and Description |
---|---|
static AppServerDefinition |
get(java.lang.String appServer)
Get the settings for the specified appserver.
|
java.lang.String |
getActivate()
Getter for the
activate field. |
java.lang.String |
getAppServer()
Getter for the
appServer field. |
java.lang.Integer |
getAutoTrimTimeout()
Getter for the
autoTrimTimeout field. |
java.lang.String |
getConnect()
Getter for the
connect field. |
java.lang.String |
getDeactivate()
Getter for the
deactivate field. |
java.lang.String |
getDisconnect()
Getter for the
disconnect field. |
java.lang.Integer |
getInitialAgents()
Getter for the
initialAgents field. |
java.lang.Integer |
getMaxAgents()
Getter for the
maxAgents field. |
java.lang.Integer |
getMinAgents()
Getter for the
minAgents field. |
AppServerOperatingMode |
getOperatingMode()
Getter for the
operatingMode field. |
java.lang.String |
getProjectToken()
Get the project token that this agent serves.
|
java.lang.String |
getPropath()
Getter for the
propath field. |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Getter for
properties properties. |
java.lang.Integer |
getRequestTimeout()
Getter for the
requestTimeout field. |
java.lang.String |
getShutdown()
Getter for the
shutdown field. |
java.lang.String |
getStartup()
Getter for the
startup field. |
java.lang.String |
getStartupParameter()
Getter for the
startupParameter field. |
void |
refresh()
Refresh this appserver instance from the directory.
|
(package private) static void |
remove(java.lang.String appServer)
Remove the definition for the given appserver.
|
void |
setActivate(java.lang.String activate)
Setter for the
activate field. |
void |
setAppServer(java.lang.String appServer)
Setter for the
appServer field. |
void |
setAutoTrimTimeout(java.lang.Integer autoTrimTimeout)
Setter for the
autoTrimTimeout field. |
void |
setConnect(java.lang.String connect)
Setter for the
connect field. |
void |
setDeactivate(java.lang.String deactivate)
Setter for the
deactivate field. |
void |
setDisconnect(java.lang.String disconnect)
Setter for the
disconnect field. |
void |
setInitialAgents(java.lang.Integer initialAgents)
Setter for the
initialAgents field. |
void |
setMaxAgents(java.lang.Integer maxAgents)
Setter for the
maxAgents field. |
void |
setMinAgents(java.lang.Integer minAgents)
Setter for the
minAgents field. |
void |
setOperatingMode(AppServerOperatingMode operatingMode)
Setter for the
operatingMode field. |
void |
setPropath(java.lang.String propath)
Setter for the
propath field. |
void |
setRequestTimeout(java.lang.Integer requestTimeout)
Setter for the
requestTimeout field. |
void |
setShutdown(java.lang.String shutdown)
Setter for the
shutdown field. |
void |
setStartup(java.lang.String startup)
Setter for the
startup field. |
void |
setStartupParameter(java.lang.String startupParameter)
Setter for the
startupParameter field. |
private static final java.util.logging.Logger LOG
private static final java.util.Map<java.lang.String,AppServerDefinition> definitions
private java.lang.String appServer
private AppServerOperatingMode operatingMode
private java.lang.Integer requestTimeout
private java.lang.Integer autoTrimTimeout
private java.lang.String propath
private java.lang.Integer initialAgents
private java.lang.Integer minAgents
private java.lang.Integer maxAgents
private java.lang.String activate
private java.lang.String deactivate
private java.lang.String connect
private java.lang.String disconnect
private java.lang.String startup
private java.lang.String shutdown
private java.lang.String startupParameter
private java.lang.String projectToken
private java.util.Map<java.lang.String,java.lang.String> properties
private AppServerDefinition(java.lang.String appServer)
appServer
- The application's server name.java.lang.IllegalArgumentException
- If no appserver (with the given name) is configured in the directory.public static AppServerDefinition get(java.lang.String appServer)
The initial call (which creates the instance) must be coming from a thread with its context
authorized to access the appservers
node for the P2J server.
appServer
- The name of the appserver.static void remove(java.lang.String appServer)
appServer
- The appserver name.public void refresh()
appservers
node for the P2J server.public java.lang.String getAppServer()
appServer
field.public void setAppServer(java.lang.String appServer)
appServer
field.appServer
- The new value for the appServer
field.public AppServerOperatingMode getOperatingMode()
operatingMode
field.public void setOperatingMode(AppServerOperatingMode operatingMode)
operatingMode
field.operatingMode
- The new value for the operatingMode
field.public java.lang.Integer getRequestTimeout()
requestTimeout
field.public void setRequestTimeout(java.lang.Integer requestTimeout)
requestTimeout
field.requestTimeout
- The new value for the requestTimeout
field.public java.lang.Integer getAutoTrimTimeout()
autoTrimTimeout
field.public void setAutoTrimTimeout(java.lang.Integer autoTrimTimeout)
autoTrimTimeout
field.autoTrimTimeout
- The new value for the autoTrimTimeout
field.public java.lang.String getPropath()
propath
field.public void setPropath(java.lang.String propath)
propath
field.propath
- The new value for the propath
field.public java.lang.Integer getInitialAgents()
initialAgents
field.public void setInitialAgents(java.lang.Integer initialAgents)
initialAgents
field.initialAgents
- The new value for the initialAgents
field.public java.lang.Integer getMinAgents()
minAgents
field.public void setMinAgents(java.lang.Integer minAgents)
minAgents
field.minAgents
- The new value for the minAgents
field.public java.lang.Integer getMaxAgents()
maxAgents
field.public void setMaxAgents(java.lang.Integer maxAgents)
maxAgents
field.maxAgents
- The new value for the maxAgents
field.public java.lang.String getActivate()
activate
field.public void setActivate(java.lang.String activate)
activate
field.activate
- The new value for the activate
field.public java.lang.String getDeactivate()
deactivate
field.public void setDeactivate(java.lang.String deactivate)
deactivate
field.deactivate
- The new value for the deactivate
field.public java.lang.String getConnect()
connect
field.public void setConnect(java.lang.String connect)
connect
field.connect
- The new value for the connect
field.public java.lang.String getDisconnect()
disconnect
field.public void setDisconnect(java.lang.String disconnect)
disconnect
field.disconnect
- The new value for the disconnect
field.public java.lang.String getStartup()
startup
field.public void setStartup(java.lang.String startup)
startup
field.startup
- The new value for the startup
field.public java.lang.String getShutdown()
shutdown
field.public void setShutdown(java.lang.String shutdown)
shutdown
field.shutdown
- The new value for the shutdown
field.public java.lang.String getStartupParameter()
startupParameter
field.public void setStartupParameter(java.lang.String startupParameter)
startupParameter
field.startupParameter
- The new value for the startupParameter
field.public java.lang.String getProjectToken()
prokectToken
the agent serves.public java.util.Map<java.lang.String,java.lang.String> getProperties()
properties
properties.null
is the map is null
or empty.