com.waveset.adapter
Class ScriptedHostResourceAdapter

java.lang.Object
  extended bycom.waveset.adapter.ResourceAdapterBase
      extended bycom.waveset.adapter.HostAccessResourceAdapter
          extended bycom.waveset.adapter.ScriptedHostResourceAdapter
All Implemented Interfaces:
HostAccessLogin, ResourceAdapter

public class ScriptedHostResourceAdapter
extends HostAccessResourceAdapter
implements HostAccessLogin

The ScriptedHostResourceAdapter is an application-agnostic mainframe adapter. The real logic of how to provision the custom host application is delegated to Rhino Javascripts provided by the customer.


Nested Class Summary
static interface ScriptedHostResourceAdapter.ObjectIterator
           
static class ScriptedHostResourceAdapter.ScriptedAccountIterator
           
 
Nested classes inherited from class com.waveset.adapter.ResourceAdapterBase
ResourceAdapterBase.SimpleAccountIterator
 
Nested classes inherited from class com.waveset.adapter.ResourceAdapter
ResourceAdapter.ActionResult, ResourceAdapter.Features, ResourceAdapter.ObjectType
 
Field Summary
protected  HostAccess _hostAccess
          Wrapper around IBM SecureWay Host Access Class Library to provide 3270 emulation access to a mainframe
protected  java.util.Properties _properties
          Properties to set for the 3270 emulation, primarily used to enable tracing
static java.lang.String code_id
           
static java.lang.String DIRECT_MAP_MODE
          Possible values for RA_ATTR_MAP_MODE
static java.lang.String RA_ACCT_ITER_ACTION
           
static java.lang.String RA_AFFINITY_LIST
          The account name used to connect to the resource.
static java.lang.String RA_ATTR_MAP_MODE
           
static java.lang.String RA_CREATE_USER_ACTION
           
static java.lang.String RA_DELETE_USER_ACTION
           
static java.lang.String RA_DISABLE_USER_ACTION
           
static java.lang.String RA_ENABLE_USER_ACTION
           
static java.lang.String RA_GET_USER_ACTION
          The list of resource attributes which will hold the name of a ResourceAction to accomplish the respective provisioning method.
static java.lang.String RA_HOST
           
static java.lang.String RA_IDLETIMEOUT
           
static java.lang.String RA_LIST_TIMEOUT
           
static java.lang.String RA_LISTALL_ACTION
           
static java.lang.String RA_MAX_CONNECTIONS
          Maximum connections which can be maintained simultaneously for each user in the User Affinity list
static java.lang.String RA_PORT
          The port on which to communicate to the resource.
static java.lang.String RA_PROPS
          Additional 3270 session properties
static java.lang.String RA_SUPPORTS_PASSWORDS
          A boolean ("true" or "false") used to toggle the PASSWORD feature
static java.lang.String RA_TIMEOUT
           
static java.lang.String RA_UPDATE_USER_ACTION
           
static java.lang.String RA_UPPERCASE_IDENTITY
          If true, always convert the identity to uppercase
static java.lang.String STRING_MAP_MODE
           
 
Fields inherited from class com.waveset.adapter.HostAccessResourceAdapter
HOST_ACCESS_GLOBAL_NAME, JAVASCRIPT_GLOBALS_ACTION_PROPERTY, USER_ATTRS_GLOBAL_NAME, USER_IDENTITY_GLOBAL_NAME
 
Fields inherited from class com.waveset.adapter.ResourceAdapterBase
_cache, _context, _excludedAccountsRule, _excludedAccountsRuleInited, _listAllObjectsAttrParse, _listAllObjectsAttrParseName, _listUserAttrParse, _listUserAttrParseName, _listUserGroupsAttrParse, _listUserGroupsAttrParseName, _resource, _thread, _trace, displayInfoCode, RA_BLOCKCOUNT, RA_LOGIN_ACTION, RA_LOGOFF_ACTION, RA_MULTI_VALUED_ATTRS, RA_TEST_MODE
 
Fields inherited from interface com.waveset.adapter.ResourceAdapter
CHANGE_PASSWORD_LOCATION, DISABLE, ENABLE, EXPIRE_PASSWORD, GUID, IGNORE_ATTR, NEW_ACCOUNT_ID, OP_DAYS_INACTIVE, OP_DISABLED, OP_DORMANT, OP_EXPIRED, OP_EXPIREDPWD, OP_INACTIVE, OP_LOCKED, OP_NO_PASSWORD_SET, OP_NOOWNERSHIP, OP_NOPASSWORDREQ, OP_NUMINACTIVEDAYS, OP_NUMPWDAYS, OP_PWNUMDAYS, RA_BASE_CTX, RA_DISPLAY_NAME_ATTR, RA_NEW_OBJECT_ID, RA_NEW_OBJECT_NAME, RA_OBJECT_ATTRIBUTES, RA_OBJECT_CLASS, RA_OBJECT_ID, RA_OBJECT_TYPE, RA_OP_TYPE, RA_RENAME_OP, RA_REQUESTOR, RA_SAVEAS_OP, RA_SEARCH_ATTRIBUTE_NAMES, RA_SEARCH_ATTRS_TO_GET, RA_SEARCH_CONTEXT, RA_SEARCH_FILTER, RA_SEARCH_RUN_AS_PASSWORD, RA_SEARCH_RUN_AS_USER, RA_SEARCH_SCOPE, RA_SEARCH_SCOPE_OBJECT, RA_SEARCH_SCOPE_ONE_LEVEL, RA_SEARCH_SCOPE_SUBTREE, RA_SEARCH_TIME_LIMIT, RESET_PASSWORD, SYSTEM_ATTRIBUTES, UNLOCK, WS_USER_PASSWORD
 
Constructor Summary
ScriptedHostResourceAdapter()
           
ScriptedHostResourceAdapter(Resource res, ObjectCache cache)
           
 
Method Summary
protected  java.lang.String addEol(java.lang.String s, java.lang.String eol, int width)
          Add a specified EOL character to lines.
 WavesetResult authenticate(java.util.HashMap loginInfo)
          Authenticates the user against the resource.
static java.lang.Exception buildJavascriptException(java.lang.Throwable throwable)
           
 WavesetResult checkCreateAccount(WSUser user)
           
 WavesetResult checkDeleteAccount(WSUser user)
           
 WavesetResult checkUpdateAccount(WSUser user)
           
 java.lang.String createIdentity(WSUser user)
          Override createIdentity() to uppercase the identity if RA_UPPERCASE_IDENTITY is true.
 Resource createPrototypeResource()
           
protected  boolean errorReported(java.lang.String resp, java.lang.String[] errorMessages)
           
static void formatError(WavesetResult result, java.lang.Throwable throwable)
           
 WSAttributes getAccountAttributes(java.lang.String accountIdentity)
          This method is obsolete.
 AccountIterator getAccountIterator()
           
 java.util.List getAffinityList()
           
 AttrParse getAttrParseObject(java.lang.String attrParseName)
           
 GenericObject getFeatures()
          Expose features supported by the Resource Adapter.
 java.lang.String getHost()
           
protected  HostAccess getHostAccess()
           
 int getIdleTimeout()
           
 java.lang.String getKey()
           
 int getListTimeout()
           
 int getMaxConnections()
           
 java.lang.String getPort()
           
 java.util.Properties getProperties()
           
 int getRequestTimeout()
           
 java.lang.String getUser()
           
 WSUser getUser(WSUser user)
          Retrieve information about an account, and package it as a WSUser object.
 java.util.ArrayList listAllObjects(java.lang.String resourceObjectType, java.util.Map options, java.lang.String runAsUser, EncryptedData runAsPassword)
          This method will return a list of object names of the specified object type.
 void login(HostAccess hostAccess)
           
 void login(HostAccess hostAccess, ServerAffinity affinity)
           
 void logoff(HostAccess hostAccess)
           
static void main(java.lang.String[] argv)
           
protected  void realCreate(WSUser user, WavesetResult result)
          Create a new user account on the resource This method is called by createAccounts (the multiuser create method).
protected  void realCreateOrUpdate(WSUser user, WavesetResult result, java.lang.String operation)
          This method is called by realCreate and realUpdate
protected  void realDelete(WSUser user, WavesetResult result)
          Needs to be overridden by subclass if default deleteAccounts() implementation is used.
 void realDisable(WSUser user, WavesetResult result)
           
 void realEnable(WSUser user, WavesetResult result)
           
protected  WSUser realGetUser(WSUser user)
           
protected  void realUpdate(WSUser user, WavesetResult result)
          Needs to be overridden by subclass if default updateAccounts() implementation is used.
protected  WSAttributes reverseMap(java.util.Map map)
          Convert the host attribute map into WSAttributes
protected  void startConnection()
          Needs to be overridden by subclass if default createAccounts() implementation is used.
static Resource staticCreatePrototypeResource()
           
protected  void stopConnection()
          Needs to be overridden by subclass if default createAccounts() implementation is used.
 boolean supportsAccountDisable()
          Indicates whether or not this resource supports account disable.
 boolean supportsExcludedAccounts()
           
 WavesetResult testConfiguration()
          Default implementation of test method, calls check create.
 
Methods inherited from class com.waveset.adapter.HostAccessResourceAdapter
filterAndParseData, formatOutputStr, getResourceId, lookupAndRunJavascriptAction, parseDataFromFile, readDataFile, run, runAfterJavascriptAction, runBeforeJavascriptAction, runJavascript, runJavascriptAction, runResourceAttributeJavascriptAction, supportsActions, verifyUsers
 
Methods inherited from class com.waveset.adapter.ResourceAdapterBase
checkForNoPasswordInSchema, checkSyntax, createAccount, createAccounts, createObject, deleteAccount, deleteAccount, deleteAccounts, deleteObject, disableAccount, disableAccounts, dnsEqual, dnsEqual, enableAccount, enableAccounts, executeResourceAttributeJavascriptAction, fillInResourceInfo, fillInResourceInfo, getAccountIterator, getAccountIterator, getAction, getActionNotFoundErrorMessage, getActionNotFoundMessage, getActionRunAsPassword, getActionRunAsUser, getActionTimeout, getActionType, getAdapter, getAdapter, getAdapter, getAdapterProxy, getAdapterProxy, getAllAccounts, getAttrNameFromMapName, getAttrNameFromMapName, getAttrParse, getAttrTypeFromMapName, getAttrTypeFromMapName, getAUserName, getBaseContextAttrName, getBaseContextObject, getBaseContexts, getBlockSize, getContext, getExcludedAccountsRule, getIdentity, getListAllObjectsAttrParse, getListUserAttrParse, getListUserGroupsAttrParse, getObject, getOptionalBooleanResAttrVal, getOptionalBooleanResAttrVal, getOptionalEncryptedResAttrVal, getOptionalResAttrVal, getOptionalStringResAttrVal, getRequiredResAttr, getRequiredResAttr, getRequiredResAttrVal, getRequiredResAttrVal, getRequiredResAttrVals, getRequiredUserAttributeNames, getResAttrValActionOnUser, getResAttrVals, getResource, getResourceAccounts, getResourceInfo, getResourceObjectAttrValNameAttr, getResourceObjectClassAttr, getResourceObjectTypePrefix, getSchemaMap, getUser, getWSAttrByMapName, getWSAttrByMapName, getWSAttrFromMap, handleActionResult, handleJavascriptActionResult, isAccountAttributeSecret, isExcludedAccount, isExcludedAccount, isFeatureEnabled, isSupported, isTestMode, listAllObjects, listObjects, listObjects, listObjectsOfType, lookupAction, lookupAction, lookupActions, namesEqual, objectClassesMatchType, println, restoreResourceObjectClassAttr, run, runResourceAttributeJavascriptAction, scan, setCache, setContext, setDisabled, setFromResource, setResource, setResourceObjectClassAttr, setResourceOptionAttrs, startConnectionWrapper, supportsAccountActions, supportsCaseInsensitiveAccountIds, supportsContainerObjectTypes, supportsResourceAccount, supportsScanning, updateAccount, updateAccounts, updateObject, updateResourceAccount, updateResourceIdentity, vmStoreBoot, vmStoreGet, vmStoreInit, vmStoreLatch, vmStorePut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

_hostAccess

protected HostAccess _hostAccess
Wrapper around IBM SecureWay Host Access Class Library to provide 3270 emulation access to a mainframe


_properties

protected java.util.Properties _properties
Properties to set for the 3270 emulation, primarily used to enable tracing


RA_HOST

public static final java.lang.String RA_HOST
See Also:
Constant Field Values

RA_PORT

public static final java.lang.String RA_PORT
The port on which to communicate to the resource.

See Also:
Constant Field Values

RA_AFFINITY_LIST

public static final java.lang.String RA_AFFINITY_LIST
The account name used to connect to the resource.

See Also:
Constant Field Values

RA_TIMEOUT

public static final java.lang.String RA_TIMEOUT
See Also:
Constant Field Values

RA_IDLETIMEOUT

public static final java.lang.String RA_IDLETIMEOUT
See Also:
Constant Field Values

RA_LIST_TIMEOUT

public static final java.lang.String RA_LIST_TIMEOUT
See Also:
Constant Field Values

RA_MAX_CONNECTIONS

public static final java.lang.String RA_MAX_CONNECTIONS
Maximum connections which can be maintained simultaneously for each user in the User Affinity list

See Also:
Constant Field Values

RA_PROPS

public static final java.lang.String RA_PROPS
Additional 3270 session properties

See Also:
Constant Field Values

RA_UPPERCASE_IDENTITY

public static final java.lang.String RA_UPPERCASE_IDENTITY
If true, always convert the identity to uppercase

See Also:
Constant Field Values

RA_ATTR_MAP_MODE

public static final java.lang.String RA_ATTR_MAP_MODE
See Also:
Constant Field Values

DIRECT_MAP_MODE

public static final java.lang.String DIRECT_MAP_MODE
Possible values for RA_ATTR_MAP_MODE

See Also:
Constant Field Values

STRING_MAP_MODE

public static final java.lang.String STRING_MAP_MODE
See Also:
Constant Field Values

RA_SUPPORTS_PASSWORDS

public static final java.lang.String RA_SUPPORTS_PASSWORDS
A boolean ("true" or "false") used to toggle the PASSWORD feature

See Also:
Constant Field Values

RA_GET_USER_ACTION

public static final java.lang.String RA_GET_USER_ACTION
The list of resource attributes which will hold the name of a ResourceAction to accomplish the respective provisioning method.

See Also:
Constant Field Values

RA_CREATE_USER_ACTION

public static final java.lang.String RA_CREATE_USER_ACTION
See Also:
Constant Field Values

RA_UPDATE_USER_ACTION

public static final java.lang.String RA_UPDATE_USER_ACTION
See Also:
Constant Field Values

RA_DELETE_USER_ACTION

public static final java.lang.String RA_DELETE_USER_ACTION
See Also:
Constant Field Values

RA_DISABLE_USER_ACTION

public static final java.lang.String RA_DISABLE_USER_ACTION
See Also:
Constant Field Values

RA_ENABLE_USER_ACTION

public static final java.lang.String RA_ENABLE_USER_ACTION
See Also:
Constant Field Values

RA_LISTALL_ACTION

public static final java.lang.String RA_LISTALL_ACTION
See Also:
Constant Field Values

RA_ACCT_ITER_ACTION

public static final java.lang.String RA_ACCT_ITER_ACTION
See Also:
Constant Field Values
Constructor Detail

ScriptedHostResourceAdapter

public ScriptedHostResourceAdapter(Resource res,
                                   ObjectCache cache)
                            throws WavesetException

ScriptedHostResourceAdapter

public ScriptedHostResourceAdapter()
                            throws WavesetException
Method Detail

staticCreatePrototypeResource

public static Resource staticCreatePrototypeResource()
                                              throws WavesetException
Throws:
WavesetException

createPrototypeResource

public Resource createPrototypeResource()
                                 throws WavesetException
Specified by:
createPrototypeResource in interface ResourceAdapter
Specified by:
createPrototypeResource in class ResourceAdapterBase
Throws:
WavesetException

createIdentity

public java.lang.String createIdentity(WSUser user)
                                throws WavesetException
Override createIdentity() to uppercase the identity if RA_UPPERCASE_IDENTITY is true.

Specified by:
createIdentity in interface ResourceAdapter
Overrides:
createIdentity in class ResourceAdapterBase
Throws:
WavesetException

getUser

public WSUser getUser(WSUser user)
               throws WavesetException
Retrieve information about an account, and package it as a WSUser object.

Information required to identify the resource account is supplied in another WSUser object.

The returned user object will resemble the source object, but will have its account attribute list filled in.

Specified by:
getUser in interface ResourceAdapter
Overrides:
getUser in class ResourceAdapterBase
Returns:
"null" if there is no account that corresponds to the user.
Throws:
WavesetException

getAccountIterator

public AccountIterator getAccountIterator()
                                   throws WavesetException
Specified by:
getAccountIterator in interface ResourceAdapter
Overrides:
getAccountIterator in class ResourceAdapterBase
Throws:
WavesetException

realCreate

protected void realCreate(WSUser user,
                          WavesetResult result)
                   throws WavesetException
Create a new user account on the resource This method is called by createAccounts (the multiuser create method). CreateAccounts will open a connection, call realCreate for each user being created, then close the connection.

Overrides:
realCreate in class ResourceAdapterBase
Throws:
WavesetException

realDelete

protected void realDelete(WSUser user,
                          WavesetResult result)
                   throws WavesetException
Description copied from class: ResourceAdapterBase
Needs to be overridden by subclass if default deleteAccounts() implementation is used.

Overrides:
realDelete in class ResourceAdapterBase
Throws:
WavesetException

realDisable

public void realDisable(WSUser user,
                        WavesetResult result)
                 throws WavesetException
Overrides:
realDisable in class ResourceAdapterBase
Throws:
WavesetException

realEnable

public void realEnable(WSUser user,
                       WavesetResult result)
                throws WavesetException
Overrides:
realEnable in class ResourceAdapterBase
Throws:
WavesetException

realUpdate

protected void realUpdate(WSUser user,
                          WavesetResult result)
                   throws WavesetException
Description copied from class: ResourceAdapterBase
Needs to be overridden by subclass if default updateAccounts() implementation is used.

Overrides:
realUpdate in class ResourceAdapterBase
Throws:
WavesetException

realGetUser

protected WSUser realGetUser(WSUser user)
                      throws WavesetException
Throws:
WavesetException

realCreateOrUpdate

protected void realCreateOrUpdate(WSUser user,
                                  WavesetResult result,
                                  java.lang.String operation)
                           throws WavesetException
This method is called by realCreate and realUpdate

Throws:
WavesetException

reverseMap

protected WSAttributes reverseMap(java.util.Map map)
                           throws WavesetException
Convert the host attribute map into WSAttributes

Parameters:
map - Map of host field names and values
Returns:
WSAttributes corresponding to the initial Map
Throws:
WavesetException

formatError

public static void formatError(WavesetResult result,
                               java.lang.Throwable throwable)

buildJavascriptException

public static java.lang.Exception buildJavascriptException(java.lang.Throwable throwable)

errorReported

protected boolean errorReported(java.lang.String resp,
                                java.lang.String[] errorMessages)

checkCreateAccount

public WavesetResult checkCreateAccount(WSUser user)
                                 throws WavesetException
Specified by:
checkCreateAccount in interface ResourceAdapter
Specified by:
checkCreateAccount in class ResourceAdapterBase
Throws:
WavesetException

checkUpdateAccount

public WavesetResult checkUpdateAccount(WSUser user)
                                 throws WavesetException
Specified by:
checkUpdateAccount in interface ResourceAdapter
Specified by:
checkUpdateAccount in class ResourceAdapterBase
Throws:
WavesetException

checkDeleteAccount

public WavesetResult checkDeleteAccount(WSUser user)
                                 throws WavesetException
Specified by:
checkDeleteAccount in interface ResourceAdapter
Specified by:
checkDeleteAccount in class ResourceAdapterBase
Throws:
WavesetException

getAccountAttributes

public WSAttributes getAccountAttributes(java.lang.String accountIdentity)
                                  throws WavesetException
Description copied from interface: ResourceAdapter
This method is obsolete. ResourceAdapterBase provides a default implementation that throws a "not implemented" WavesetException.

Specified by:
getAccountAttributes in interface ResourceAdapter
Overrides:
getAccountAttributes in class ResourceAdapterBase
Throws:
WavesetException

authenticate

public WavesetResult authenticate(java.util.HashMap loginInfo)
                           throws WavesetException
Description copied from interface: ResourceAdapter
Authenticates the user against the resource. If authentication is successful, the authenticated id will be returned. If more info is required to complete authentication the result will contain the required info

Specified by:
authenticate in interface ResourceAdapter
Specified by:
authenticate in class ResourceAdapterBase
Throws:
WavesetException

startConnection

protected void startConnection()
                        throws WavesetException
Description copied from class: ResourceAdapterBase
Needs to be overridden by subclass if default createAccounts() implementation is used.

Overrides:
startConnection in class ResourceAdapterBase
Throws:
WavesetException

stopConnection

protected void stopConnection()
                       throws WavesetException
Description copied from class: ResourceAdapterBase
Needs to be overridden by subclass if default createAccounts() implementation is used.

Overrides:
stopConnection in class ResourceAdapterBase
Throws:
WavesetException

getFeatures

public GenericObject getFeatures()
Expose features supported by the Resource Adapter. Note: ActiveSync is considered a facet, not a feature.

Specified by:
getFeatures in interface ResourceAdapter
Overrides:
getFeatures in class ResourceAdapterBase
Returns:
GenericObject containing Features, as both key and value, which are supported by this resource adapter.
See Also:
ResourceAdapter.Features

addEol

protected java.lang.String addEol(java.lang.String s,
                                  java.lang.String eol,
                                  int width)
Add a specified EOL character to lines.

Parameters:
s - input string
eol - end-of-line separator used to wrap lines
width - maximum length before wrapping
Returns:
wrapped text

supportsAccountDisable

public boolean supportsAccountDisable()
Description copied from interface: ResourceAdapter
Indicates whether or not this resource supports account disable. If it does not, the provisioning engine will attempt to simulate disable by generating random passwords. If we end up with more of these "can you do this" methods, we might want to generalize it into a more extensible way to describe features and levels of support.

Specified by:
supportsAccountDisable in interface ResourceAdapter
Overrides:
supportsAccountDisable in class ResourceAdapterBase

listAllObjects

public java.util.ArrayList listAllObjects(java.lang.String resourceObjectType,
                                          java.util.Map options,
                                          java.lang.String runAsUser,
                                          EncryptedData runAsPassword)
                                   throws WavesetException
Description copied from interface: ResourceAdapter
This method will return a list of object names of the specified object type. If you need to be able to specify which attrs to return, use listObjects instead

Specified by:
listAllObjects in interface ResourceAdapter
Overrides:
listAllObjects in class ResourceAdapterBase
Parameters:
resourceObjectType - - a type of object that is either well-known or is meaningful to the resource. Every resource is expected to recognize certain values. For example, listAllObjects(ACCOUNT) should return a list of all account names.
options - - a map of options
runAsUser - - (optional) if specified, connect as this user to list all objects of the specified type.
runAsPassword - - (optional) if specified, connect with this password to list all objects of the specified type.
Returns:
a list of all objects of a specified type.
Throws:
WavesetException

supportsExcludedAccounts

public boolean supportsExcludedAccounts()
Specified by:
supportsExcludedAccounts in interface ResourceAdapter
Overrides:
supportsExcludedAccounts in class ResourceAdapterBase

testConfiguration

public WavesetResult testConfiguration()
                                throws WavesetException
Description copied from class: ResourceAdapterBase
Default implementation of test method, calls check create. It is strongly preferred that this is overrided by derived classes so that a real test can be done without burdening the checkCreate method with a large overhead. On errors, an exception can be thrown or the error can be returned in the WavesetResult. Errors in the result will generate a test failure message, messages will appear for success or failure.

Specified by:
testConfiguration in interface ResourceAdapter
Overrides:
testConfiguration in class ResourceAdapterBase
Throws:
WavesetException

getAttrParseObject

public AttrParse getAttrParseObject(java.lang.String attrParseName)
                             throws WavesetException
Throws:
WavesetException

login

public void login(HostAccess hostAccess)
           throws java.lang.Exception
Specified by:
login in interface HostAccessLogin
Throws:
java.lang.Exception

login

public void login(HostAccess hostAccess,
                  ServerAffinity affinity)
           throws java.lang.Exception
Specified by:
login in interface HostAccessLogin
Throws:
java.lang.Exception

logoff

public void logoff(HostAccess hostAccess)
            throws java.lang.Exception
Specified by:
logoff in interface HostAccessLogin
Throws:
java.lang.Exception

getHost

public java.lang.String getHost()
                         throws java.lang.Exception
Specified by:
getHost in interface HostAccessLogin
Throws:
java.lang.Exception

getPort

public java.lang.String getPort()
                         throws java.lang.Exception
Specified by:
getPort in interface HostAccessLogin
Throws:
java.lang.Exception

getUser

public java.lang.String getUser()
                         throws java.lang.Exception
Specified by:
getUser in interface HostAccessLogin
Throws:
java.lang.Exception

getAffinityList

public java.util.List getAffinityList()
                               throws java.lang.Exception
Specified by:
getAffinityList in interface HostAccessLogin
Throws:
java.lang.Exception

getKey

public java.lang.String getKey()
                        throws java.lang.Exception
Specified by:
getKey in interface HostAccessLogin
Throws:
java.lang.Exception

getRequestTimeout

public int getRequestTimeout()
                      throws java.lang.Exception
Specified by:
getRequestTimeout in interface HostAccessLogin
Throws:
java.lang.Exception

getIdleTimeout

public int getIdleTimeout()
                   throws java.lang.Exception
Specified by:
getIdleTimeout in interface HostAccessLogin
Throws:
java.lang.Exception

getListTimeout

public int getListTimeout()
                   throws java.lang.Exception
Throws:
java.lang.Exception

getProperties

public java.util.Properties getProperties()
Specified by:
getProperties in interface HostAccessLogin

getMaxConnections

public int getMaxConnections()
Specified by:
getMaxConnections in interface HostAccessLogin

getHostAccess

protected HostAccess getHostAccess()
Overrides:
getHostAccess in class HostAccessResourceAdapter
Returns:
Returns the hostAccess.

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Throwable
Throws:
java.lang.Throwable