|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflux.agent.AgentConfiguration
public class AgentConfiguration
A specification of how to make a Flux agent.
| Field Summary | |
|---|---|
static java.lang.String |
CONCURRENCY_THROTTLE
The number of processes that can execute simultaneously on this agent. |
static int |
DEFAULT_CONCURRENCY_THROTTLE
Default value is 10. |
static int |
DEFAULT_ENGINE_PORT
Default value is 7520. |
static boolean |
DEFAULT_ENGINE_SSL
Default value is true. |
static java.lang.String |
DEFAULT_INTERNAL_LOGGER_FILE_DIRECTORY
The default value is " |
static long |
DEFAULT_INTERNAL_LOGGER_FILE_ROTATION_SIZE
The default size is 10485760 (ten megabytes, 10 * 1024 * 1024). |
static java.lang.String |
DEFAULT_LOG_FILENAME
Default value is flux-agent.log. |
static java.lang.String |
ENGINE_ENCRYPTED_PASSWORD
The encrypted password this agent uses to login to a remote Flux engine. |
static java.lang.String |
ENGINE_HOST
The host name of the Flux engine with which an agent intends to register. |
static java.lang.String |
ENGINE_PASSWORD
The password this agent uses to login to a remote Flux engine. |
static java.lang.String |
ENGINE_PORT
The TCP/IP port to which a remote Flux engine listens. |
static java.lang.String |
ENGINE_SSL
Indicates whether the remote Flux engine is secured using SSL. |
static java.lang.String |
ENGINE_USERNAME
The username this agent uses to login to a remote Flux engine. |
static java.lang.String |
ID_DESCRIPTION
A description of the agent instance intended for human consumption. |
static java.lang.String |
ID_NAME
The case-insensitive name of the agent instance. |
static java.lang.String |
INTERNAL_LOGGER_FILE_DIRECTORY
The directory where log files are placed. |
static java.lang.String |
INTERNAL_LOGGER_FILE_ROTATION_SIZE
The maximum size to which a log file for the internal asynchronous and internal synchronous loggers can grow before it is rotated. |
static java.lang.String |
LOG_FILENAME
The name of the log file to which agent logs are written. |
static java.lang.String |
POOL
The name of the agent pool in which this agent resides. |
| Constructor Summary | |
|---|---|
AgentConfiguration()
Creates a new agent configuration using default configuration properties. |
|
AgentConfiguration(java.io.InputStream propertiesInputStream)
Creates a new agent configuration using the supplied agent configuration input stream. |
|
AgentConfiguration(java.util.Properties properties)
Creates a new agent configuration using the supplied agent configuration properties. |
|
AgentConfiguration(java.lang.String propertiesFile)
Creates a new agent configuration using the supplied agent configuration file. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a deep copy of this Configuration object. |
int |
getConcurrencyThrottle()
Returns the CONCURRENCY_THROTTLE agent configuration property. |
java.lang.String |
getEngineEncryptedPassword()
Returns the ENGINE_ENCRYPTED_PASSWORD agent configuration property. |
java.lang.String |
getEngineHost()
Returns the ENGINE_HOST agent configuration property. |
java.lang.String |
getEnginePassword()
Returns the ENGINE_PASSWORD agent configuration property. |
int |
getEnginePort()
Returns the ENGINE_PORT agent configuration property. |
boolean |
getEngineSsl()
Returns the ENGINE_SSL agent configuration property. |
java.lang.String |
getEngineUsername()
Returns the ENGINE_USERNAME agent configuration property. |
java.lang.String |
getIdDescription()
Returns the ID_DESCRIPTION agent configuration property. |
java.lang.String |
getIdName()
Returns the ID_NAME agent configuration property. |
java.lang.String |
getInternalLoggerFileDirectory()
Returns the INTERNAL_LOGGER_FILE_DIRECTORY agent configuration property. |
long |
getInternalLoggerFileRotationSize()
Returns the INTERNAL_LOGGER_FILE_ROTATION_SIZE agent configuration property. |
java.lang.String |
getLogFilename()
Returns the LOG_FILENAME agent configuration property. |
java.lang.String |
getPool()
Returns the POOL agent configuration property. |
void |
setConcurrencyThrottle(int concurrencyThrottle)
Sets the CONCURRENCY_THROTTLE agent configuration property. |
void |
setEngineEncryptedPassword(java.lang.String engineEncryptedPassword)
Sets the ENGINE_ENCRYPTED_PASSWORD agent configuration property. |
void |
setEngineHost(java.lang.String engineHost)
Sets the ENGINE_HOST agent configuration property. |
void |
setEnginePassword(java.lang.String enginePassword)
Sets the ENGINE_PASSWORD agent configuration property. |
void |
setEnginePort(int port)
Sets the ENGINE_PORT agent configuration property. |
void |
setEngineSsl(boolean ssl)
Sets the ENGINE_SSL agent configuration property. |
void |
setEngineUsername(java.lang.String engineUsername)
Sets the ENGINE_USERNAME agent configuration property. |
void |
setIdDescription(java.lang.String idDescription)
Sets the ID_DESCRIPTION agent configuration property. |
void |
setIdName(java.lang.String idName)
Sets the ID_NAME agent configuration property. |
void |
setInternalLoggerFileDirectory(java.lang.String internalLoggerFileDirectory)
Returns the INTERNAL_LOGGER_FILE_DIRECTORY agent configuration property. |
void |
setInternalLoggerFileRotationSize(long internalLoggerFileRotationSize)
Returns the INTERNAL_LOGGER_FILE_ROTATION_SIZE agent configuration property. |
void |
setLogFilename(java.lang.String logFilename)
Sets the LOG_FILENAME agent configuration property. |
void |
setPool(java.lang.String pool)
Sets the POOL agent configuration property. |
void |
verify()
Indicates whether this agent configuration is valid. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONCURRENCY_THROTTLE
public static final int DEFAULT_CONCURRENCY_THROTTLE
public static final java.lang.String ENGINE_ENCRYPTED_PASSWORD
ENGINE_PASSWORD,
Constant Field Valuespublic static final java.lang.String ENGINE_HOST
public static final java.lang.String ENGINE_PASSWORD
ENGINE_ENCRYPTED_PASSWORD,
Constant Field Valuespublic static final java.lang.String ENGINE_PORT
public static final int DEFAULT_ENGINE_PORT
Configuration.DEFAULT_PORT,
Constant Field Valuespublic static final java.lang.String ENGINE_SSL
public static final boolean DEFAULT_ENGINE_SSL
Configuration.DEFAULT_SSL,
Constant Field Valuespublic static final java.lang.String ENGINE_USERNAME
public static final java.lang.String ID_DESCRIPTION
public static final java.lang.String ID_NAME
public static final java.lang.String LOG_FILENAME
public static final java.lang.String DEFAULT_LOG_FILENAME
public static final java.lang.String INTERNAL_LOGGER_FILE_DIRECTORY
public static final java.lang.String DEFAULT_INTERNAL_LOGGER_FILE_DIRECTORY
public static final java.lang.String INTERNAL_LOGGER_FILE_ROTATION_SIZE
public static final long DEFAULT_INTERNAL_LOGGER_FILE_ROTATION_SIZE
public static final java.lang.String POOL
| Constructor Detail |
|---|
public AgentConfiguration()
public AgentConfiguration(java.io.InputStream propertiesInputStream)
throws AgentException
propertiesInputStream - A specification of how to make an agent. The
input stream will not be closed.
AgentException - If a system error occurs.
public AgentConfiguration(java.util.Properties properties)
throws AgentException
properties - A specification of how to make an agent.
AgentException - If a system error occurs.
java.lang.IllegalArgumentException - If the specified properties object is
null.
public AgentConfiguration(java.lang.String propertiesFile)
throws AgentException
propertiesFile - A specification of how to make an agent.
AgentException - If a system error occurs.| Method Detail |
|---|
public int getConcurrencyThrottle()
CONCURRENCY_THROTTLE
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - If an error occurs.public java.lang.String getEngineEncryptedPassword()
ENGINE_ENCRYPTED_PASSWORDpublic java.lang.String getEngineHost()
ENGINE_HOSTpublic java.lang.String getEnginePassword()
ENGINE_PASSWORDpublic int getEnginePort()
ENGINE_PORTpublic boolean getEngineSsl()
ENGINE_SSLpublic java.lang.String getEngineUsername()
ENGINE_USERNAMEpublic java.lang.String getIdDescription()
ID_DESCRIPTIONpublic java.lang.String getIdName()
ID_NAMEpublic java.lang.String getLogFilename()
LOG_FILENAMEpublic java.lang.String getInternalLoggerFileDirectory()
INTERNAL_LOGGER_FILE_DIRECTORYpublic long getInternalLoggerFileRotationSize()
INTERNAL_LOGGER_FILE_ROTATION_SIZEpublic java.lang.String getPool()
POOLpublic void setConcurrencyThrottle(int concurrencyThrottle)
concurrencyThrottle - The CONCURRENCY_THROTTLE agent configuration
property.CONCURRENCY_THROTTLEpublic void setEngineEncryptedPassword(java.lang.String engineEncryptedPassword)
engineEncryptedPassword - The ENGINE_ENCRYPTED_PASSWORD agent
configuration property.ENGINE_ENCRYPTED_PASSWORDpublic void setEngineHost(java.lang.String engineHost)
engineHost - The ENGINE_HOST agent configuration property.ENGINE_HOSTpublic void setEnginePassword(java.lang.String enginePassword)
enginePassword - The ENGINE_PASSWORD agent configuration property.ENGINE_PASSWORDpublic void setEnginePort(int port)
port - The ENGINE_PORT agent configuration property.ENGINE_PORTpublic void setEngineSsl(boolean ssl)
ssl - The ENGINE_SSL agent configuration property.ENGINE_SSLpublic void setEngineUsername(java.lang.String engineUsername)
engineUsername - The ENGINE_USERNAME agent configuration property.ENGINE_USERNAMEpublic void setIdDescription(java.lang.String idDescription)
idDescription - The ID_DESCRIPTION agent configuration property.ID_DESCRIPTIONpublic void setIdName(java.lang.String idName)
idName - The ID_NAME agent configuration property.ID_NAMEpublic void setLogFilename(java.lang.String logFilename)
logFilename - The LOG_FILENAME agent configuration property.LOG_FILENAMEpublic void setInternalLoggerFileDirectory(java.lang.String internalLoggerFileDirectory)
internalLoggerFileDirectory - The INTERNAL_LOGGER_FILE_DIRECTORY
agent configuration property.INTERNAL_LOGGER_FILE_DIRECTORYpublic void setInternalLoggerFileRotationSize(long internalLoggerFileRotationSize)
internalLoggerFileRotationSize - The INTERNAL_LOGGER_FILE_ROTATION_SIZE
agent configuration property.INTERNAL_LOGGER_FILE_ROTATION_SIZE
public void setPool(java.lang.String pool)
throws java.lang.IllegalArgumentException
pool - The POOL agent configuration property.
java.lang.IllegalArgumentException - If the name of the pool is "*". Pool names
of "*" have special meaning for Process
Actions that set pool names. For a Process
Action, a pool name of "*" indicates that
a process may run on any agent.POOL
public void verify()
throws AgentException
AgentException - If this agent configuration is not valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||