public class LocalAgentFactoryImpl extends java.lang.Object implements LocalAgentFactory
DEFAULT_AGENT_NAME, DEFAULT_AGENT_PACKAGE| Constructor and Description |
|---|
LocalAgentFactoryImpl()
Constructor for LocalAgentFactoryImpl.
|
LocalAgentFactoryImpl(java.lang.String agentpackage)
Constructor for LocalAgentFactoryImpl.
|
| Modifier and Type | Method and Description |
|---|---|
LocalAgent |
getAgent(java.lang.String agentname)
Locate and return the LocalAgent using the stored agentpackage and provided agentname.
|
LocalAgent |
getDefaultAgent()
By default we attempt to return a DEFAULT_AGENT_NAME instance from agentpackage.
|
LocalAgent |
getDerivedAgent(java.lang.Object testobject)
Locate and return the LocalAgent most appropriate for the testobject target.
|
LocalAgent |
getLocalAgent(java.lang.String fullclassname)
Return the LocalAgent for the fully specified agentclass.
|
void |
setAgentPackage(java.lang.String agentpackage)
Override the DEFAULT_AGENT_PACKAGE setting for instantiating local agent helpers.
|
void |
setDefaultAgentName(java.lang.String agentname)
Override the DEFAULT_AGENT_NAME setting for instantiating the default agent helper.
|
public LocalAgentFactoryImpl()
public LocalAgentFactoryImpl(java.lang.String agentpackage)
public void setAgentPackage(java.lang.String agentpackage)
LocalAgentFactorysetAgentPackage in interface LocalAgentFactoryLocalAgentFactory.setAgentPackage(String)public void setDefaultAgentName(java.lang.String agentname)
LocalAgentFactorysetDefaultAgentName in interface LocalAgentFactoryLocalAgentFactory.setDefaultAgentName(String)public LocalAgent getAgent(java.lang.String agentname) throws InvalidAgentException
LocalAgentFactorygetAgent in interface LocalAgentFactoryInvalidAgentException - if agent cannot be found/created/returned.LocalAgentFactory.getAgent(String)public LocalAgent getDerivedAgent(java.lang.Object testobject) throws InvalidAgentException
LocalAgentFactorygetDerivedAgent in interface LocalAgentFactoryInvalidAgentException - if agent cannot be found/created/returned.LocalAgentFactory.getDerivedAgent(Object)public LocalAgent getDefaultAgent() throws InvalidAgentException
getDefaultAgent in interface LocalAgentFactoryInvalidAgentException - if agent cannot be found/created/returned.LocalAgentFactory.getDefaultAgent()public LocalAgent getLocalAgent(java.lang.String fullclassname) throws InvalidAgentException
getLocalAgent in interface LocalAgentFactoryagentclass - the full proper class name for the desired LocalAgent. The
internal agent package is ignored.InvalidAgentException - if agent cannot be found/created/returned.Copyright © SAS Institute. All Rights Reserved.