|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Job com.ibm.etools.iseries.subsystems.qsys.comm.CheckHostCallback
public class 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
|
Constructor Summary | |
---|---|
CheckHostCallback(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 |
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(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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(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 SystemMessageException
clientHostname
- TCP/IP hostname or address of the clientport
- TCP/IP port to connect back totimeout
- seconds to wait for socket to connect
SystemMessageException
public int checkHostCallback(int port, int timeout) throws SystemMessageException
port
- TCP/IP port to connect back totimeout
- seconds to wait for socket to connect
SystemMessageException
protected IStatus run(IProgressMonitor monitor)
public SystemMessageException getException()
public void setException(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()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |