Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.subsystems.qsys.comm
Class QSYSCommunicationsDiagnostic

java.lang.Object
  extended by com.ibm.etools.iseries.subsystems.qsys.comm.QSYSCommunicationsDiagnostic

public class QSYSCommunicationsDiagnostic
extends Object

This class collects the active server job information for problem investigation


Field Summary
static int CANCEL_WAIT_REQUESTED
           
static String copyright
           
static int WAIT_REQUESTED
           
 
Constructor Summary
QSYSCommunicationsDiagnostic(String id, boolean quiet, QSYSObjectSubSystem system, Thread targetThread)
          Setup for the diagnostic
 
Method Summary
 void checkServerActive()
           
 void diagnostic()
           
 int diagnosticStatus()
          Returns the message dialog action taken by user
 void displayMessage(String messageText, String messageDetails, String id, int stats)
          Prompt user the message
 Thread getTargetThread()
           
 boolean isNetworkDown()
          Check if the host system is connected by - pinging the server
 boolean isServerActive()
          Check for active server job associated with this connection user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

WAIT_REQUESTED

public static final int WAIT_REQUESTED
See Also:
Constant Field Values

CANCEL_WAIT_REQUESTED

public static final int CANCEL_WAIT_REQUESTED
See Also:
Constant Field Values
Constructor Detail

QSYSCommunicationsDiagnostic

public QSYSCommunicationsDiagnostic(String id,
                                    boolean quiet,
                                    QSYSObjectSubSystem system,
                                    Thread targetThread)
Setup for the diagnostic

Parameters:
String - id: assign an ID for this diagnostic instance boolean quiet: true if user to be prompted for a dialog ISystem system: the connection to be investigated
Method Detail

diagnostic

public void diagnostic()
See Also:
Runnable.run()

checkServerActive

public void checkServerActive()
See Also:
Runnable.run()

isNetworkDown

public boolean isNetworkDown()
Check if the host system is connected by - pinging the server

Returns:
true if ping host failed

isServerActive

public boolean isServerActive()
Check for active server job associated with this connection user. All active QZRCSRVS job for this user will be listed

Returns:
true if server job active

displayMessage

public void displayMessage(String messageText,
                           String messageDetails,
                           String id,
                           int stats)
Prompt user the message

Parameters:
message - associated with string id be displayed null indicates default to be used.

diagnosticStatus

public int diagnosticStatus()
Returns the message dialog action taken by user


getTargetThread

public Thread getTargetThread()

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.