|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.attachmate.connectors.screen.ScreenConnectorAccessImpl
The screen connector.
Field Summary | |
static java.lang.String |
PARAM_CACHE
Parameter for specifying caching in IConnectorAccess.open . |
static java.lang.String |
PARAM_INSTANCE
Parameter for setting instance name in IConnectorAccess.open . |
static java.lang.String |
PARAM_JOB
Parameter for specifying caching in IConnectorAccess.open . |
static java.lang.String |
PARAM_PATH
Parameter for setting instance name in IConnectorAccess.open . |
Constructor Summary | |
ScreenConnectorAccessImpl()
Constructs a new ScreenConnectorAccessImpl . |
Method Summary | |
void |
cancel()
Cancels task execution. |
void |
cleanup()
Called my the ConnectionManager after a Connection is closed. |
void |
close()
Free the task server and the task context. |
void |
destroy()
Called by the ConnectionManager when it ready to remove this object from the pool. |
void |
execute(java.lang.String taskID,
java.lang.String inputs)
Execute loads and configures the ITaskServer and then
proceeds to process the inputs supplied along with the metadata schema. |
int |
getAvailable()
Returns the size of the output XML. |
java.lang.String |
getConnectorPath()
Gets the path to the xml file that was used to open the connector. |
java.lang.String |
getData()
Returns the data retrieved as a result of executing the task. |
java.util.Hashtable |
getInstanceInfo()
|
int |
getMaxSize()
Returns the maximum size of the output XML. |
java.lang.String |
getMetaData(java.lang.String taskID)
Uses ReadWriteMetaDataImpl to read and parse the MetaData
schema file. |
int |
getTimeOut()
Gets the execution timeout. |
java.lang.String |
open(java.lang.String path)
Initializes the Connector, must be successfully called before calling Execute(). |
void |
setMaxSize(int size)
Specifies a maximum size for the output XML. |
void |
setTimeOut(int time)
Sets the execution timeout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PARAM_PATH
IConnectorAccess.open
.
public static final java.lang.String PARAM_INSTANCE
IConnectorAccess.open
.
public static final java.lang.String PARAM_CACHE
IConnectorAccess.open
.
public static final java.lang.String PARAM_JOB
IConnectorAccess.open
.
Constructor Detail |
public ScreenConnectorAccessImpl()
ScreenConnectorAccessImpl
.
Method Detail |
public java.lang.String open(java.lang.String path) throws com.attachmate.connectors.ConnectorAccessException
open
in interface IConnectorAccess
path
- The XML Meta data schema file to be parsed. This can be a
file or URL. Parameters, such as instance name can be specified using the
standard URL ? & = characters. For example,
c:myConnector.xml?instance=LU.MyLuName&otherParam=otherParamValueThe following parameters are supported:
true
or false
(default=false
)).com.attachmate.connectors.ConnectorAccessException
- in the
event of an error.public java.lang.String getMetaData(java.lang.String taskID)
ReadWriteMetaDataImpl
to read and parse the MetaData
schema file.
getMetaData
in interface IConnectorAccess
taskID
- the transaction ID whose meta data we want to retreive.
public void execute(java.lang.String taskID, java.lang.String inputs) throws com.attachmate.connectors.ConnectorAccessException
ITaskServer
and then
proceeds to process the inputs supplied along with the metadata schema.
Once the inputs have been set, execute on the TaskServer is called and
then the outputs are retrieved.
execute
in interface IConnectorAccess
taskID
- the transaction ID whose inputs and outpus we want to
process.inputs
- the string of inputs to process that must match the
format of the metadata schema.
com.attachmate.connectors.ConnectorAccessException
- in the
event of an error.public java.lang.String getData() throws com.attachmate.connectors.ConnectorAccessException
getData
in interface IConnectorAccess
com.attachmate.connectors.ConnectorAccessException
public int getAvailable()
getAvailable
in interface IConnectorAccess
public int getMaxSize()
getMaxSize
in interface IConnectorAccess
public void setMaxSize(int size)
setMaxSize
in interface IConnectorAccess
size
- the maximum size of the output XML.public int getTimeOut()
getTimeOut
in interface IConnectorAccess
public void setTimeOut(int time)
setTimeOut
in interface IConnectorAccess
time
- the timeout.public void cancel()
cancel
in interface IConnectorAccess
public java.lang.String getConnectorPath()
public void close() throws com.attachmate.connectors.ConnectorAccessException
close
in interface IConnectorAccess
com.attachmate.connectors.ConnectorAccessException
- in the
event of an error.public java.util.Hashtable getInstanceInfo()
public void cleanup() throws com.attachmate.connectors.ConnectorAccessException
cleanup
in interface com.attachmate.resource.spi.IConnectorResource
com.attachmate.connectors.ConnectorAccessException
public void destroy() throws com.attachmate.connectors.ConnectorAccessException
destroy
in interface com.attachmate.resource.spi.IConnectorResource
com.attachmate.connectors.ConnectorAccessException
|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |