|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
com.ibm.etools.iseries.core.comm.CheckHostCallback
API class for testing if host callbacks can be done.
Field Summary | |
---|---|
static byte |
RC_CLIENTCONN_ERR
|
static byte |
RC_CLIENTCONN_ERROR
|
static byte |
RC_CLIENTCONN_FAILED
|
static byte |
RC_CLIENTCONN_INVALID_HOSTNAME
|
static byte |
RC_CLIENTCONN_OK
|
static byte |
RC_CLIENTCONN_TIMEOUT
|
Fields inherited from class org.eclipse.core.runtime.jobs.Job |
---|
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING |
Constructor Summary | |
---|---|
CheckHostCallback(com.ibm.as400.access.AS400 as400)
Constructor |
Method Summary | |
---|---|
int |
checkHostCallback(int port,
int timeout)
Test if a socket connection can be created from the iSeries back to the client. |
int |
checkHostCallback(String clientHostname,
int port,
int timeout)
Test if a socket connection can be created from the iSeries back to the client |
com.ibm.etools.systems.core.messages.SystemMessageException |
getException()
For use when scheduled as a Job. |
String |
getHostname()
For use when scheduled as a Job. |
int |
getPort()
For use when scheduled as a Job. |
int |
getReturnCode()
For use when scheduled as a Job. |
int |
getTimeout()
For use when scheduled as a Job. |
boolean |
isDone()
For use when scheduled as a Job. |
void |
reset()
For use when scheduled as a Job. |
protected IStatus |
run(IProgressMonitor monitor)
run method for using the CheckHostCallback as a separate runnable Job. |
void |
setException(com.ibm.etools.systems.core.messages.SystemMessageException exception)
For use when scheduled as a Job. |
void |
setHostname(String hostname)
For use when scheduled as a Job. |
void |
setPort(int port)
For use when scheduled as a Job. |
void |
setReturnCode(int returnCode)
For use when scheduled as a Job. |
void |
setTimeout(int timeout)
For use when scheduled as a Job. |
Methods inherited from class org.eclipse.core.runtime.jobs.Job |
---|
addJobChangeListener, belongsTo, cancel, done, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, wakeUp, wakeUp |
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob |
---|
compareTo, toString |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
---|
getAdapter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
public static final byte RC_CLIENTCONN_ERROR
public static final byte RC_CLIENTCONN_OK
public static final byte RC_CLIENTCONN_FAILED
public static final byte RC_CLIENTCONN_TIMEOUT
public static final byte RC_CLIENTCONN_INVALID_HOSTNAME
public static final byte RC_CLIENTCONN_ERR
Constructor Detail |
public CheckHostCallback(com.ibm.as400.access.AS400 as400)
as400
- Toolbox object used to perform host program call (the host program in turn
tries the callback)Method Detail |
public int checkHostCallback(String clientHostname, int port, int timeout) throws com.ibm.etools.systems.core.messages.SystemMessageException
clientHostname
- TCP/IP hostname or address of the clientport
- TCP/IP port to connect back totimeout
- seconds to wait for socket to connect
com.ibm.etools.systems.core.messages.SystemMessageException
public int checkHostCallback(int port, int timeout) throws com.ibm.etools.systems.core.messages.SystemMessageException
port
- TCP/IP port to connect back totimeout
- seconds to wait for socket to connect
com.ibm.etools.systems.core.messages.SystemMessageException
protected IStatus run(IProgressMonitor monitor)
public com.ibm.etools.systems.core.messages.SystemMessageException getException()
public void setException(com.ibm.etools.systems.core.messages.SystemMessageException exception)
public String getHostname()
public void setHostname(String hostname)
public int getPort()
public void setPort(int port)
public int getReturnCode()
public void setReturnCode(int returnCode)
public int getTimeout()
public void setTimeout(int timeout)
public boolean isDone()
public void reset()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |