public class Environment
extends com.itko.util.env.EnvProperties
Modifier and Type | Field and Description |
---|---|
static int |
APP_COORDINATOR |
static int |
APP_ENTERPRISE_DASHBOARD |
static int |
APP_JUNIT |
static int |
APP_OTHER |
static int |
APP_PATHFINDER_BROKER |
static int |
APP_PATHFINDER_CMD_LINE_TOOL |
static int |
APP_PATHFINDER_DEV_CONSOLE |
static int |
APP_REGISTRY |
static int |
APP_SERVICE_IMAGE_MANAGER |
static int |
APP_SERVICE_MANAGER |
static int |
APP_SIMULATOR |
static int |
APP_TESTMANAGER |
static int |
APP_TESTRUNNER |
static int |
APP_VSE |
static int |
APP_VSE_GUIMANAGER |
static int |
APP_VSE_MANAGER |
static int |
APP_WS_SIMULATOR |
static java.lang.String |
BRAND_KEY |
static java.lang.String |
BUILD_INFO
name of the LISA build info file
|
static java.lang.String |
BUILD_NUMBER_KEY |
static java.lang.String |
BUILD_TEXT_KEY |
protected static org.apache.commons.logging.Log |
cat |
static java.lang.String |
CLIENT_ALIAS |
static java.lang.String |
CLIENT_CERT_PASSWD |
static java.lang.String |
CLIENT_CERT_PASSWD_ENCRYPT |
static java.lang.String |
CLIENT_CERT_PATH |
static java.lang.String |
CLIENT_KEY_PASSWD |
static java.lang.String |
CLIENT_KEY_PASSWD_ENCRYPT |
static int |
COMMUNITY_EDITION |
static java.lang.String |
copyrightNotice |
static int |
CORPORATE_EDITION |
static java.lang.String |
DEFAULT_LOG_FILE |
static java.lang.String |
EVAL_LIC_KEY |
static int |
EXIT_STATUS_BADCRED
Exit constant: bad security credentials
|
static int |
EXIT_STATUS_BADPARAM
Exit constant: Bad parameter error
|
static int |
EXIT_STATUS_LICBAD
Exit constant: bad license or attempt to dupe
|
static int |
EXIT_STATUS_NAMEBINDFAILED
Exit constant: Name binding failed
|
static int |
EXIT_STATUS_NOPERM
Exit constant: Security error, permission denied
|
static int |
EXIT_STATUS_OK
Exit constant: OK
|
static java.lang.String |
HOT_DEPLOY_KEY |
static int |
INVALID_EDITION |
static int |
ITKO_EDITION |
static java.lang.String |
JAVA_KEYSTORE_PASSWD |
static java.lang.String |
JAVA_KEYSTORE_PASSWD_ENCRYPT |
static java.lang.String |
JAVA_TRUSTSTORE_PASSWD |
static java.lang.String |
JAVA_TRUSTSTORE_PASSWD_ENCRYPT |
static java.lang.String |
KERBEROS_KRB5_CONF |
static java.lang.String |
KERBEROS_LOGIN_CONFIG |
static java.lang.String |
LISA_DEFAULT_CERT_PASSWD |
static java.lang.String |
LISA_DEFAULT_CERT_PASSWD_ENCRYPT |
static java.lang.String |
LISA_DEFAULT_CERT_PATH |
static java.lang.String |
LISA_HOME
path to LISA_HOME
|
static java.lang.String |
LISA_LIC
name of the LISA license file
|
static java.lang.String |
LISA_TMPDIR_ENV_VAR |
static java.lang.String |
LISA_TMPDIR_PROP |
static java.lang.String |
LOG4J_CONFIGURATION |
static java.lang.String |
LOG4J_LOG_FILE_SYS_PROP_KEY
If a System property is specified against the key
LOG4J_LOG_FILE_SYS_PROP_KEY , then logs
will go to the specified log file
else they will be logged to the file indicated by DEFAULT_LOG_FILE
|
static java.lang.String |
NTLM_DOMAIN |
static java.lang.String |
NTLM_DOMAIN_ENCRYPT |
static java.lang.String |
NTLM_PASS |
static java.lang.String |
NTLM_PASS_ENCRYPT |
static java.lang.String |
NTLM_USER |
static java.lang.String |
NTLM_USER_ENCRYPT |
static int |
PERSONAL_EDITION |
static java.lang.String |
PRODUCT_NAME
product name
|
static java.lang.String |
REGISTRY_AUTO_SHUTDOWN_KEY_PREFIX |
static java.lang.String |
REGISTRY_AUTO_SHUTDOWN_KEY_SUFFIX |
static int |
SERVER_EDITION |
static java.lang.String |
SERVER_EDITION_NAME |
static java.lang.String |
SSL_CHECK_CRL |
static java.lang.String |
SSL_CHECK_EXPIRY |
static java.lang.String |
TEST_TYPE_CBT |
static java.lang.String |
TEST_TYPE_COORDINATOR |
static java.lang.String |
TEST_TYPE_CVS |
static java.lang.String |
TEST_TYPE_DCM |
static java.lang.String |
TEST_TYPE_ESB |
static java.lang.String |
TEST_TYPE_J2EE |
static java.lang.String |
TEST_TYPE_LEK |
static java.lang.String |
TEST_TYPE_PATHFINDER |
static java.lang.String |
TEST_TYPE_PATHFINDER_DEV_CONSOLE |
static java.lang.String |
TEST_TYPE_PATHFINDER_PRO |
static java.lang.String |
TEST_TYPE_PF_CREATE_BASELINE_ASSETS |
static java.lang.String |
TEST_TYPE_PF_CREATE_VSE_ASSETS |
static java.lang.String |
TEST_TYPE_PF_EXTRACT_DATA |
static java.lang.String |
TEST_TYPE_PF_MANAGE_CASES |
static java.lang.String |
TEST_TYPE_REGISTRY |
static java.lang.String |
TEST_TYPE_SIMULATOR |
static java.lang.String |
TEST_TYPE_SWING |
static java.lang.String |
TEST_TYPE_VSE |
static java.lang.String |
TEST_TYPE_VSE_LOAD |
static java.lang.String |
TEST_TYPE_WEB |
static java.lang.String |
TEST_TYPE_WS |
static java.lang.String |
VERSION_NUMBER_KEY |
static int |
VSE_EDITION |
static javax.net.ssl.SSLContext |
WEBLOGIC_SSLCONTEXT |
static int |
WORKSTATION_EDITION |
static java.lang.String |
WORKSTATION_EDITION_NAME |
static java.lang.String |
WS_CLIENT_ALIAS |
static java.lang.String |
WS_CLIENT_CERT_PASSWD |
static java.lang.String |
WS_CLIENT_CERT_PASSWD_ENCRYPT |
static java.lang.String |
WS_CLIENT_CERT_PATH |
static java.lang.String |
WS_CLIENT_KEY_PASSWD |
static java.lang.String |
WS_CLIENT_KEY_PASSWD_ENCRYPT |
Constructor and Description |
---|
Environment(java.lang.String appName)
Constructs this Environment object, causes the initializations to occur
|
Environment(java.lang.String appName,
boolean lightVersion)
Constructs this Environment object, causes the initializations to occur
|
Environment(java.lang.String appName,
int appId)
Constructs this Environment object, causes the initializations to occur
|
Environment(java.lang.String appName,
int appId,
boolean useAutoHotDeploy) |
Environment(java.lang.String appName,
int appId,
boolean useAutoHotDeploy,
boolean lightVersion)
Constructs this Environment object, causes the initializations to occur
|
Modifier and Type | Method and Description |
---|---|
static void |
banner(java.io.PrintWriter out,
java.lang.String appLine)
Streams the LISA banner message to the PrintStream given.
|
static void |
banner(java.lang.String appLine)
Banner used throughout LISA to provide a consistent copyright message
that you are displaying a banner for
|
static org.apache.http.conn.scheme.Scheme |
buildDefaultScheme(boolean webservice,
boolean checkHostname,
boolean setAsDefault) |
static org.apache.http.conn.scheme.Scheme |
buildSslScheme(com.itko.lisa.http.SslCertInfo certInfo,
boolean checkHostname) |
static java.lang.ClassLoader |
changeHotDeployPath(java.lang.String newHotDeployPath) |
static boolean |
confirmJavaSupportedVersion() |
static void |
disconnectTestRegistry()
Disconnect from the current test registry.
|
static boolean |
enableServerFeatures()
Deprecated.
- use FeatureMatrix.canBeAServer()
|
static void |
forceLicReset() |
static java.lang.String |
getAppDataDir()
Where will we store semi permanent LISA data (cvsDeploy, vseDeploy, reporting db, etc)
Used to be LISA_HOME but that doesn't make sense on windows, especially if we are
installed in "Program Files".
|
static int |
getAppId()
What application is running?
|
static java.lang.String |
getAppName()
If an application name has been set, this will let you know
|
static java.lang.String |
getBrand()
Will read and return the brand string.
|
static java.lang.String |
getBuildNumber() |
static java.lang.String |
getBuildText() |
static java.lang.ClassLoader |
getClassLoader()
Lisa supports loading classes not only from the system CLASSPATH, but
from a hotdeploy path set as a propery lisa.hotDeploy.
|
static java.lang.String |
getClientKeyStorePassword() |
static java.lang.String |
getClientKeyStorePath() |
static com.itko.lisa.http.SslCertInfo |
getDefaultKeyStoreProperties(boolean webService)
This is a helper method for determining the default keystore path, certificate
password and keystore password.
|
static org.apache.http.conn.scheme.SchemeRegistry |
getDefaultSchemeRegistry() |
static java.io.File |
getDefaultsDir()
Gives you the defaults directory where system defaults are stored.
|
static java.lang.String |
getDefaultTestRegistryUrl() |
static int |
getEdition()
Tells us what edition of LISA we are running.
|
static java.lang.String |
getEditionName()
When we need to know what to call the edition of LISA that's running
Can be Workstation or Server
|
static java.lang.String |
getHotDeployPath() |
static java.lang.String |
getJustBuildNumber() |
static com.itko.util.license.ILicense |
getLicense()
This Environment object finds and loads the license file upon construction, so
we can read it whenever we need to.
|
static com.itko.util.license.ILicense |
getLicense(boolean force) |
static java.lang.String |
getLisaHomeFile(java.lang.String fname)
Gets the LISA home path spec and builds a full path to the file you pass in,
so you can use it to grab files or resources as needed.
|
static java.lang.String |
getLisaLicenseFile() |
static com.codahale.metrics.MetricRegistry |
getMetricsRegistry() |
static java.io.File |
getReportsDir()
Gives you the reporting directory where reports are dropped.
|
static java.io.File |
getTempDir()
Returns a File instance of the lisatmp directory
|
static TestRegistry |
getTestRegistry()
Get the current test registry after validating that the connection is still working.
|
static java.lang.String |
getTestRegistryFullName()
Tells us the full RMI-style name of the registry that we are attached to
|
static java.lang.String |
getTestRegistryName()
Get the test registry name, if one is registered.
|
static java.lang.Object |
getThreadProperty(java.lang.String key)
Gets a property valid on the calling thread
|
static java.lang.String |
getTrustStorePassword() |
static java.lang.String |
getTrustStorePath() |
static java.lang.String |
getVersionNumber()
Will read and return the version string.
|
static java.lang.String |
getVersionString()
Will read and return the version string, including build number
|
static void |
installCustomClientSSLScheme() |
static void |
invalidateLicense()
Remove any references to a license
FRAME-1298: Be REALLY careful calling this, it checks in and wipes out EVERYTHING having to do with a license
|
static boolean |
isEvalLicense()
There's a custom license key that tells us if this license we're running is eval or not...
|
static boolean |
isLicenseLoaded()
See if a license has been read yet
Typically only needed very early in LISA startup
FRAME-1298
|
static boolean |
isLicenseValid()
Should be called by all full-fledged Lisa suite components.
|
static boolean |
isLicenseValid(boolean force)
If you would like to force license information to be re-read from file or server,
call this with true.
|
static boolean |
isLocalRegistryAutoShutdown()
Determine whether the current application should shut down any Registry that it starts or whether it should
leave the Registry running.
|
static boolean |
isRegistryProcess()
CORE-613: Determine whether the Registry is running embedded in the current JVM
|
static boolean |
isVse()
Are we a VSE?
|
static boolean |
isVseEdition()
Convenience method for determining whether LISA is running with a VSE Edition license.
|
static boolean |
isWorkstation()
Are we a workstation?
|
static java.lang.String |
loadEncryptedProp(java.util.Properties systemProps,
TestExec ts,
java.lang.String unencryptedPropertyKey,
java.lang.String encryptedPropertyKey,
java.lang.String defaultValue) |
static java.lang.String |
loadEncryptedProp(java.lang.String unencryptedPropertyKey,
java.lang.String encryptedPropertyKey) |
static java.lang.String |
loadEncryptedProp(java.lang.String unencryptedPropertyKey,
java.lang.String encryptedPropertyKey,
java.lang.String defaultValue) |
static java.lang.String |
loadEncryptedProp(TestExec ts,
java.lang.String unencryptedPropertyKey,
java.lang.String encryptedPropertyKey) |
static java.lang.String |
loadEncryptedProp(TestExec ts,
java.lang.String unencryptedPropertyKey,
java.lang.String encryptedPropertyKey,
java.lang.String defaultValue) |
static void |
nullLicense() |
static void |
readBuildInfo(java.util.Properties systemProps)
Read the buildinfo-???.
|
static void |
refreshSystemProperties()
This should be called when the Registry changes.
|
static void |
registerMetric(java.lang.String name,
com.codahale.metrics.Metric metric) |
static void |
removeThreadProperty(java.lang.String key)
Removes a property valid on the calling thread
|
static java.lang.ClassLoader |
resetClassLoader()
There may be times, like in the Test Manager, when the hot deploy path has been
changed and you want to reload the hot deploy classpath.
|
static java.lang.ClassLoader |
resetClassLoader(java.lang.Runnable runner) |
static void |
setCurrentThreadContextClassLoader() |
static TestRegistry |
setDefaultTestRegistry()
CORE-464: Connect to the default Registry.
|
static void |
setLicense(com.itko.util.license.ILicense newLicense) |
static TestRegistry |
setTestRegistry(java.lang.String url) |
static TestRegistry |
setTestRegistry(java.lang.String url,
boolean autostart)
CORE-464:
Set the current registry using its name.
|
static void |
setTestRegistry(TestRegistry _tr)
CORE-464:
Set the test registry directly.
|
static void |
setTestRegistry(TestRegistry _tr,
boolean configurePathfinderConsole) |
static void |
setThreadProperty(java.lang.String key,
java.lang.Object value)
Sets a property valid on the calling thread
|
void |
setUpCustomHttpSocketFactory() |
static void |
setupShutdownHook(java.lang.Runnable runme)
Deprecated.
use
#LisaShutdownHooks.add() instead |
static void |
setUseAutoRedeployClassLoader(boolean b)
Used by the Test Manger to make the class loader the one that senses changes and
redploys itself as needed.
|
static TestRegistry |
startLocalTestRegistry(java.lang.String url)
Launch a Registry instance on the local host bound to the given name and connect to it.
|
static void |
uninstallCustomClientSSLScheme()
Don't call this unless you know what your're doing.
|
static void |
updateBrokerUrl(TestRegistry tr) |
public static final java.lang.String copyrightNotice
public static final java.lang.String LISA_TMPDIR_PROP
public static final java.lang.String LISA_TMPDIR_ENV_VAR
public static final java.lang.String LOG4J_CONFIGURATION
protected static org.apache.commons.logging.Log cat
public static final java.lang.String HOT_DEPLOY_KEY
public static final java.lang.String LOG4J_LOG_FILE_SYS_PROP_KEY
public static final java.lang.String DEFAULT_LOG_FILE
public static final java.lang.String LISA_LIC
public static final java.lang.String BUILD_INFO
public static final java.lang.String BRAND_KEY
public static final java.lang.String BUILD_NUMBER_KEY
public static final java.lang.String VERSION_NUMBER_KEY
public static final java.lang.String BUILD_TEXT_KEY
public static final java.lang.String LISA_DEFAULT_CERT_PATH
public static final java.lang.String LISA_DEFAULT_CERT_PASSWD
public static final java.lang.String LISA_DEFAULT_CERT_PASSWD_ENCRYPT
public static final java.lang.String CLIENT_CERT_PATH
public static final java.lang.String CLIENT_CERT_PASSWD
public static final java.lang.String CLIENT_CERT_PASSWD_ENCRYPT
public static final java.lang.String CLIENT_KEY_PASSWD
public static final java.lang.String CLIENT_KEY_PASSWD_ENCRYPT
public static final java.lang.String CLIENT_ALIAS
public static final java.lang.String WS_CLIENT_CERT_PATH
public static final java.lang.String WS_CLIENT_CERT_PASSWD
public static final java.lang.String WS_CLIENT_CERT_PASSWD_ENCRYPT
public static final java.lang.String WS_CLIENT_KEY_PASSWD
public static final java.lang.String WS_CLIENT_KEY_PASSWD_ENCRYPT
public static final java.lang.String WS_CLIENT_ALIAS
public static final java.lang.String JAVA_KEYSTORE_PASSWD
public static final java.lang.String JAVA_KEYSTORE_PASSWD_ENCRYPT
public static final java.lang.String JAVA_TRUSTSTORE_PASSWD
public static final java.lang.String JAVA_TRUSTSTORE_PASSWD_ENCRYPT
public static final java.lang.String SSL_CHECK_EXPIRY
public static final java.lang.String SSL_CHECK_CRL
public static final java.lang.String NTLM_DOMAIN
public static final java.lang.String NTLM_DOMAIN_ENCRYPT
public static final java.lang.String NTLM_USER
public static final java.lang.String NTLM_USER_ENCRYPT
public static final java.lang.String NTLM_PASS
public static final java.lang.String NTLM_PASS_ENCRYPT
public static final java.lang.String KERBEROS_LOGIN_CONFIG
public static final java.lang.String KERBEROS_KRB5_CONF
public static final java.lang.String REGISTRY_AUTO_SHUTDOWN_KEY_PREFIX
public static final java.lang.String REGISTRY_AUTO_SHUTDOWN_KEY_SUFFIX
public static final java.lang.String LISA_HOME
public static final java.lang.String PRODUCT_NAME
public static final int APP_TESTMANAGER
public static final int APP_SIMULATOR
public static final int APP_COORDINATOR
public static final int APP_REGISTRY
public static final int APP_JUNIT
public static final int APP_TESTRUNNER
public static final int APP_OTHER
public static final int APP_WS_SIMULATOR
public static final int APP_VSE
public static final int APP_VSE_MANAGER
public static final int APP_VSE_GUIMANAGER
public static final int APP_SERVICE_MANAGER
public static final int APP_SERVICE_IMAGE_MANAGER
public static final int APP_PATHFINDER_DEV_CONSOLE
public static final int APP_PATHFINDER_CMD_LINE_TOOL
public static final int APP_ENTERPRISE_DASHBOARD
public static final int APP_PATHFINDER_BROKER
public static final java.lang.String WORKSTATION_EDITION_NAME
public static final java.lang.String SERVER_EDITION_NAME
public static final int INVALID_EDITION
public static final int COMMUNITY_EDITION
public static final int PERSONAL_EDITION
public static final int WORKSTATION_EDITION
public static final int SERVER_EDITION
public static final int CORPORATE_EDITION
public static final int ITKO_EDITION
public static final int VSE_EDITION
public static final int EXIT_STATUS_OK
public static final int EXIT_STATUS_BADPARAM
public static final int EXIT_STATUS_NAMEBINDFAILED
public static final int EXIT_STATUS_LICBAD
public static final int EXIT_STATUS_BADCRED
public static final int EXIT_STATUS_NOPERM
public static final java.lang.String TEST_TYPE_WEB
public static final java.lang.String TEST_TYPE_WS
public static final java.lang.String TEST_TYPE_J2EE
public static final java.lang.String TEST_TYPE_SWING
public static final java.lang.String TEST_TYPE_ESB
public static final java.lang.String TEST_TYPE_SIMULATOR
public static final java.lang.String TEST_TYPE_COORDINATOR
public static final java.lang.String TEST_TYPE_REGISTRY
public static final java.lang.String TEST_TYPE_CBT
public static final java.lang.String TEST_TYPE_LEK
public static final java.lang.String TEST_TYPE_VSE
public static final java.lang.String TEST_TYPE_VSE_LOAD
public static final java.lang.String TEST_TYPE_PATHFINDER
public static final java.lang.String TEST_TYPE_PATHFINDER_PRO
public static final java.lang.String TEST_TYPE_PATHFINDER_DEV_CONSOLE
public static final java.lang.String TEST_TYPE_PF_MANAGE_CASES
public static final java.lang.String TEST_TYPE_PF_CREATE_BASELINE_ASSETS
public static final java.lang.String TEST_TYPE_PF_CREATE_VSE_ASSETS
public static final java.lang.String TEST_TYPE_PF_EXTRACT_DATA
public static final java.lang.String TEST_TYPE_DCM
public static final java.lang.String TEST_TYPE_CVS
public static final java.lang.String EVAL_LIC_KEY
public static javax.net.ssl.SSLContext WEBLOGIC_SSLCONTEXT
public Environment(java.lang.String appName)
appName
- - the one-line string that represents the applicationpublic Environment(java.lang.String appName, boolean lightVersion)
public Environment(java.lang.String appName, int appId)
appName
- - the one-line string that represents the applicationappId
- - the application we are initializing (APP_OTHER)APP_COORDINATOR
,
APP_REGISTRY
,
APP_SIMULATOR
,
APP_TESTMANAGER
,
APP_TESTRUNNER
,
APP_JUNIT
,
APP_OTHER
public Environment(java.lang.String appName, int appId, boolean useAutoHotDeploy)
public Environment(java.lang.String appName, int appId, boolean useAutoHotDeploy, boolean lightVersion)
appName
- - the one-line string that represents the applicationappId
- - the application we are initializing (APP_OTHER)useAutoHotDeploy
- - set to use hotdepoly in auto modeAPP_COORDINATOR
,
APP_REGISTRY
,
APP_SIMULATOR
,
APP_TESTMANAGER
,
APP_TESTRUNNER
,
APP_JUNIT
,
APP_OTHER
public static void refreshSystemProperties()
public static void invalidateLicense()
public static boolean isLicenseValid()
public static boolean isLicenseValid(boolean force)
force
- public static void banner(java.lang.String appLine)
appLine
- An additional application line to print.public static void banner(java.io.PrintWriter out, java.lang.String appLine)
out
- - the PrintStream to push the banner message intoappLine
- An additional application line to print.public static java.lang.String getAppName()
public static int getAppId()
APP_COORDINATOR
,
APP_REGISTRY
,
APP_SIMULATOR
,
APP_TESTMANAGER
,
APP_TESTRUNNER
,
APP_JUNIT
,
APP_OTHER
public static boolean isLicenseLoaded()
public static boolean isWorkstation()
public static boolean isVse()
public static com.itko.util.license.ILicense getLicense()
License
public static com.itko.util.license.ILicense getLicense(boolean force)
public static int getEdition()
public static boolean isVseEdition()
@Deprecated public static boolean enableServerFeatures()
public static boolean isEvalLicense()
public static java.lang.String getLisaHomeFile(java.lang.String fname)
fname
- - your file name to appendpublic static java.lang.String getLisaLicenseFile()
public static void nullLicense()
public static void setLicense(com.itko.util.license.ILicense newLicense)
public static java.lang.String getEditionName()
public static java.lang.String getBrand()
public static java.lang.String getVersionNumber()
public static java.lang.String getVersionString()
public static java.lang.String getBuildNumber()
public static java.lang.String getJustBuildNumber()
public static java.lang.String getBuildText()
public static void readBuildInfo(java.util.Properties systemProps)
public static void setUseAutoRedeployClassLoader(boolean b)
b
- true if you want it, false to use a static one (the default is use static)public static java.lang.ClassLoader getClassLoader()
public static java.lang.ClassLoader changeHotDeployPath(java.lang.String newHotDeployPath)
public static java.lang.ClassLoader resetClassLoader()
public static java.lang.ClassLoader resetClassLoader(java.lang.Runnable runner)
public static void setCurrentThreadContextClassLoader()
public static java.lang.String getHotDeployPath()
public static java.lang.Object getThreadProperty(java.lang.String key)
key
- the name of the thread-specific propertypublic static void setThreadProperty(java.lang.String key, java.lang.Object value)
key
- the name of the thread-specific propertyvalue
- the value of the thread-specific propertypublic static void removeThreadProperty(java.lang.String key)
key
- the name of the thread-specific propertypublic static java.io.File getTempDir()
public static java.io.File getReportsDir()
public static java.io.File getDefaultsDir()
public static boolean confirmJavaSupportedVersion()
public static void uninstallCustomClientSSLScheme()
public static void installCustomClientSSLScheme()
public static java.lang.String loadEncryptedProp(java.lang.String unencryptedPropertyKey, java.lang.String encryptedPropertyKey)
public static java.lang.String loadEncryptedProp(java.lang.String unencryptedPropertyKey, java.lang.String encryptedPropertyKey, java.lang.String defaultValue)
public static java.lang.String loadEncryptedProp(TestExec ts, java.lang.String unencryptedPropertyKey, java.lang.String encryptedPropertyKey)
public static java.lang.String loadEncryptedProp(TestExec ts, java.lang.String unencryptedPropertyKey, java.lang.String encryptedPropertyKey, java.lang.String defaultValue)
public static java.lang.String loadEncryptedProp(java.util.Properties systemProps, TestExec ts, java.lang.String unencryptedPropertyKey, java.lang.String encryptedPropertyKey, java.lang.String defaultValue)
public static org.apache.http.conn.scheme.Scheme buildDefaultScheme(boolean webservice, boolean checkHostname, boolean setAsDefault) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
java.io.IOException
public static org.apache.http.conn.scheme.Scheme buildSslScheme(com.itko.lisa.http.SslCertInfo certInfo, boolean checkHostname) throws java.security.KeyManagementException, java.security.UnrecoverableKeyException, java.security.NoSuchAlgorithmException, java.security.KeyStoreException
java.security.KeyManagementException
java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
public static com.itko.lisa.http.SslCertInfo getDefaultKeyStoreProperties(boolean webService)
webService
- a flag indicating whether we are interested in web services.public static java.lang.String getClientKeyStorePath()
public static java.lang.String getClientKeyStorePassword()
public static java.lang.String getTrustStorePath()
public static java.lang.String getTrustStorePassword()
public void setUpCustomHttpSocketFactory()
@Deprecated public static void setupShutdownHook(java.lang.Runnable runme)
#LisaShutdownHooks.add()
insteadpublic static void forceLicReset()
public static java.lang.String getDefaultTestRegistryUrl()
public static TestRegistry setDefaultTestRegistry() throws java.io.IOException
java.rmi.RemoteException
- If the Registry connection failsjava.io.IOException
- If an attempt to start a Regsitry as a separate process failspublic static TestRegistry setTestRegistry(java.lang.String url) throws java.io.IOException
java.io.IOException
public static TestRegistry setTestRegistry(java.lang.String url, boolean autostart) throws java.io.IOException
autostart
- if true
, we'll boot up the registry; if false
, we assume Registry is already upjava.rmi.RemoteException
- If the Registry connection failsjava.io.IOException
- If an attempt to start a Regsitry as a separate process failspublic static java.lang.String getTestRegistryFullName() throws java.rmi.RemoteException
java.rmi.RemoteException
public static void setTestRegistry(TestRegistry _tr) throws java.rmi.RemoteException
_tr
- The registry instancejava.rmi.RemoteException
- If communucations with the registry failpublic static void setTestRegistry(TestRegistry _tr, boolean configurePathfinderConsole) throws java.rmi.RemoteException
java.rmi.RemoteException
public static void updateBrokerUrl(TestRegistry tr) throws java.rmi.RemoteException
java.rmi.RemoteException
public static boolean isLocalRegistryAutoShutdown()
public static TestRegistry startLocalTestRegistry(java.lang.String url) throws java.io.IOException
java.rmi.RemoteException
java.io.IOException
public static void disconnectTestRegistry()
public static TestRegistry getTestRegistry()
public static java.lang.String getTestRegistryName()
public static boolean isRegistryProcess() throws java.rmi.RemoteException
java.rmi.RemoteException
public static org.apache.http.conn.scheme.SchemeRegistry getDefaultSchemeRegistry()
public static java.lang.String getAppDataDir()
public static com.codahale.metrics.MetricRegistry getMetricsRegistry()
public static void registerMetric(java.lang.String name, com.codahale.metrics.Metric metric)
Copyright © 1998-2014 CA, Inc. All Rights Reserved.