|
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.common.eai.tasks.BaseTaskBean | +--com.attachmate.common.eai.tasks.NavTaskBean | +--com.attachmate.common.eai.tasks.ScreenNativeAccess | +--com.attachmate.common.eai.tasks.ScreenNativeAccessEx
Implements INativeAccessEx
and supply a host neutral view of the screen.
Provides a mechnism to recover from tasks failures or render host screens.
com.attachmate.eai.tasks.INativeAccessEx
,
Serialized FormField Summary |
Fields inherited from class com.attachmate.common.eai.tasks.NavTaskBean |
m_InputFields, m_MapName, m_MultiValInputFields, m_MultiValInputVals, m_MultiValOutputFields, m_MultiValOutputVals, m_OutputFields, m_Route |
Fields inherited from class com.attachmate.common.eai.tasks.BaseTaskBean |
m_Config, m_InstanceName, m_JobName, m_ResourceName, m_ServerAddress, m_TaskName, m_Timeout, m_Version |
Fields inherited from interface com.attachmate.common.eai.tasks.INativeAccess |
PROPERTY_NOT_INITIALIZED |
Fields inherited from interface com.attachmate.tasks.ITask |
PRESERVE_ALWAYS, PRESERVE_NEVER, PRESERVE_ON_ERROR |
Constructor Summary | |
ScreenNativeAccessEx()
Configure the task bean for NativeAccess and settings to the defaults. |
Method Summary | |
void |
addHostUpdateListener(IHostUpdateListener listener)
Register class for host update events Tries to connect on every ip address for machine (if multiple network cards) |
void |
executeSync()
Synchronously executes the task using the current property settings. |
long[] |
getCharacterAttr()
Gets the extended attribute bits for the entire screen |
long |
getFieldAttr(java.lang.String fieldName)
Gets the attribute bit for the desired field. |
int |
getFieldEndColumn(java.lang.String fieldName)
Gets the ending column for the desired field |
int |
getFieldEndRow(java.lang.String fieldName)
Gets the ending row for the desired field |
int |
getFieldIndex(java.lang.String fieldName)
Gets the field index for the named field. |
java.lang.String |
getFieldInputText(int fieldIndex)
Gets the field input text from the desired field |
java.lang.String |
getFieldInputText(java.lang.String fieldName)
Gets the field input text from the desired field |
int |
getFieldLength(java.lang.String fieldName)
Gets the length for the desired field |
java.lang.String |
getFieldName(int fieldIndex)
Gets the name of the field from the index |
java.lang.String[] |
getFieldNames()
Gets an array containing field names. |
int |
getFieldPage(java.lang.String fieldName)
Gets the screen page of the desired field |
int |
getFieldStartColumn(java.lang.String fieldName)
Gets the starting column for the desired field |
int |
getFieldStartRow(java.lang.String fieldName)
Gets the starting row for the desired field |
java.lang.String |
getFieldText(java.lang.String fieldName)
Gets the visible text from the desired field |
java.lang.String |
getPoolName()
Gets the name of the pool that the bean is accessing |
int |
getScreenCount()
gets the number of Screen Changes (TN3270 EORs) before the screen is returned |
java.lang.String |
getVersion()
Retrieves the version of the Attachmate tool used to generate this bean. |
void |
removeHostUpdateListener()
Deprecated. As of 7.1, replaced by removeHostUpdateListener( listener ) |
boolean |
removeHostUpdateListener(IHostUpdateListener listener)
Unregisters the supplied listener |
void |
setCommand(int command)
Sets the command to execute on the screen. |
void |
setFieldInputText(java.lang.String fieldName,
java.lang.String fieldText)
Sets the text in the desired input field. |
void |
setHostUpdateListenerHostAddress(java.lang.String strOverridingHostAddress)
Set host address that overrides value(s) retrieved from the system Use if you machine has multiple network cards |
void |
setHostUpdateListenerPort(int iDefaultPort)
Change default port the socket will listen on |
void |
setHostUpdateListenerTimeout(long lDefaultTimeout)
Change default timeout on socket connections and reads |
void |
setScreenCount(int screenCount)
sets the number of screen changes (TN3270 EORs) processed before the screen is returned |
Methods inherited from class com.attachmate.common.eai.tasks.ScreenNativeAccess |
doExecute, getColumns, getCommand, getCurrentPage, getCursorColumn, getCursorRow, getFieldAttr, getFieldAttr, getFieldCount, getFieldEndColumn, getFieldEndColumn, getFieldEndRow, getFieldEndRow, getFieldInputText, getFieldLength, getFieldLength, getFieldPage, getFieldPage, getFieldStartColumn, getFieldStartColumn, getFieldStartRow, getFieldStartRow, getFieldText, getFieldText, getHostFlags, getHostMessage, getHostType, getPageCount, getRows, getScreenName, getSettleTime, getShare, setConfiguration, setCurrentPage, setCursorColumn, setCursorRow, setFieldInputText, setFieldInputText, setSettleTime, setShare |
Methods inherited from class com.attachmate.common.eai.tasks.NavTaskBean |
getMapName, getMultiValPropArray, getMultiValPropVal, getMultiValuePropArray, getMultiValuePropVal, getRecordCount, getRoute, getTaskContext, getUniqueIdentifier |
Methods inherited from class com.attachmate.common.eai.tasks.BaseTaskBean |
addTaskListener, cancel, clearContext, copyContext, executeAsync, freeTaskServer, getInstanceName, getJobName, getLocale, getPreserveContext, getResourceName, getStatus, getTimeout, lockTaskServer, removeTaskListener, setInstanceName, setJobName, setLocale, setPreserveContext, setResourceName, setTimeout, transferContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.attachmate.common.eai.tasks.INativeAccess |
getColumns, getCommand, getCurrentPage, getCursorColumn, getCursorRow, getFieldAttr, getFieldAttr, getFieldCount, getFieldEndColumn, getFieldEndColumn, getFieldEndRow, getFieldEndRow, getFieldInputText, getFieldLength, getFieldLength, getFieldPage, getFieldPage, getFieldStartColumn, getFieldStartColumn, getFieldStartRow, getFieldStartRow, getFieldText, getFieldText, getHostFlags, getHostMessage, getHostType, getPageCount, getRows, getScreenName, getSettleTime, getShare, setCurrentPage, setCursorColumn, setCursorRow, setFieldInputText, setFieldInputText, setSettleTime, setShare |
Methods inherited from interface com.attachmate.tasks.ITask |
addTaskListener, cancel, clearContext, copyContext, executeAsync, getInstanceName, getJobName, getLocale, getPreserveContext, getResourceName, getStatus, getTimeout, removeTaskListener, setInstanceName, setJobName, setLocale, setPreserveContext, setResourceName, setTimeout, transferContext |
Constructor Detail |
public ScreenNativeAccessEx()
ITask.PRESERVE_ALWAYS
. This may be overriden if necessary before calling
executeSync()
.
executeSync()
,
com.attachmate.common.tasks.ITask.PRESERVE_ALWAYS
Method Detail |
public java.lang.String getFieldInputText(int fieldIndex)
getFieldInputText
in interface INativeAccess
getFieldInputText
in class ScreenNativeAccess
fieldIndex
- the index of the field to retrieve text from
public long[] getCharacterAttr()
getCharacterAttr
in interface INativeAccess
getCharacterAttr
in class ScreenNativeAccess
INativeAccessConstants
public int getScreenCount()
getScreenCount
in interface INativeAccessEx
public void setScreenCount(int screenCount)
setScreenCount
in interface INativeAccessEx
screenCount
- the screen countpublic void setHostUpdateListenerTimeout(long lDefaultTimeout)
setHostUpdateListenerTimeout
in interface INativeAccessEx
lDefaultTimeout
- timeout in milliseconds, 0 for infinitepublic void setHostUpdateListenerPort(int iDefaultPort)
setHostUpdateListenerPort
in interface INativeAccessEx
iDefaultPort
- port, 0 for any free port. Note: ports < 1024 are reservedpublic void setHostUpdateListenerHostAddress(java.lang.String strOverridingHostAddress)
setHostUpdateListenerHostAddress
in interface INativeAccessEx
strOverridingHostAddress
- only host address to usepublic void setCommand(int command)
execute
is called, all modified fields are sent to the
host, and the command is sent to the screen at the current cursor
position. If command is null
, exec1ute
refreshes
the properties to reflect the current host screen. No command or data is
sent to the host.
setCommand
in interface INativeAccess
setCommand
in class ScreenNativeAccess
command
- a string representing a commandINativeAccessConstants
public void addHostUpdateListener(IHostUpdateListener listener) throws java.lang.Exception
addHostUpdateListener
in interface INativeAccessEx
listener
- class that implements the host update listener interface
java.lang.Exception
ScreenChangedEvent
,
ScreenShapeChangeEvent
,
ScreenTypeChangeEvent
public void removeHostUpdateListener()
removeHostUpdateListener
in interface INativeAccessEx
removeHostUpdateListener( IHostUpdateListener )
public boolean removeHostUpdateListener(IHostUpdateListener listener)
removeHostUpdateListener
in interface INativeAccessEx
listener
- the listener to remove from the list
public java.lang.String getFieldText(java.lang.String fieldName)
getFieldText
in interface INativeAccessEx
fieldName
- the name of the field to retrieve text from
public int getFieldPage(java.lang.String fieldName)
getFieldPage
in interface INativeAccessEx
fieldName
- the name of the field to retrieve page from
public java.lang.String getFieldInputText(java.lang.String fieldName)
getFieldInputText
in interface INativeAccessEx
fieldName
- the name of the field to retrieve text from
public void setFieldInputText(java.lang.String fieldName, java.lang.String fieldText)
setFieldInputText
in interface INativeAccessEx
fieldName
- the name of the field to write tofieldText
- the text to write to the desired fieldpublic long getFieldAttr(java.lang.String fieldName)
getFieldAttr
in interface INativeAccessEx
fieldName
- name of the desired field
INativeAccessConstants
public int getFieldStartRow(java.lang.String fieldName)
getFieldStartRow
in interface INativeAccessEx
fieldName
- name of the desired field
public int getFieldStartColumn(java.lang.String fieldName)
getFieldStartColumn
in interface INativeAccessEx
fieldName
- name of the desired field
public int getFieldEndRow(java.lang.String fieldName)
getFieldEndRow
in interface INativeAccessEx
fieldName
- name of the desired field
public int getFieldEndColumn(java.lang.String fieldName)
getFieldEndColumn
in interface INativeAccessEx
fieldName
- name of the desired field
public int getFieldLength(java.lang.String fieldName)
getFieldLength
in interface INativeAccessEx
fieldName
- name of the desired field
public java.lang.String getFieldName(int fieldIndex)
getFieldName
in interface INativeAccessEx
fieldIndex
- index of the field
public java.lang.String[] getFieldNames()
getFieldNames
in interface INativeAccessEx
public int getFieldIndex(java.lang.String fieldName)
INativeAccessEx
getFieldIndex
in interface INativeAccessEx
public java.lang.String getVersion()
getVersion
in interface ITask
getVersion
in class com.attachmate.common.eai.tasks.BaseTaskBean
public java.lang.String getPoolName()
getPoolName
in interface INativeAccess
getPoolName
in class ScreenNativeAccess
public void executeSync() throws ResourceInUseException
executeSync
in interface ITask
executeSync
in class com.attachmate.common.eai.tasks.BaseTaskBean
NoAvailableResourceException
- if no resource can be obtained
for execution
ResourceInUseException
- if task is already executingBaseTaskBean.executeAsync( )
,
BaseTaskBean.cancel( )
,
ITaskListener
,
TaskStatusChangeEvent
|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |