iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.core.comm
Class ISeriesCommunicationsDiagnostic

java.lang.Object
  extended bycom.ibm.etools.iseries.core.comm.ISeriesCommunicationsDiagnostic
All Implemented Interfaces:
com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic, Runnable

public class ISeriesCommunicationsDiagnostic
extends Object
implements com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic

This class collects the active server job information for problem investigation


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic
CANCEL_WAIT_REQUESTED
 
Constructor Summary
ISeriesCommunicationsDiagnostic()
           
 
Method Summary
 int diagnosticStatus()
          Returns the message dialog action taken by user
 void displayMessage(String id)
          Prompt user the message
 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.
 void logError(String s)
          Log an error message to .log file
 void run()
           
 void setUp(String id, boolean quiet, String serverName, com.ibm.etools.systems.subsystems.ISystem system, String userName, String jobName, String jobNumber)
          Setup for the diagnostic
 
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
Constructor Detail

ISeriesCommunicationsDiagnostic

public ISeriesCommunicationsDiagnostic()
Method Detail

run

public void run()
Specified by:
run in interface Runnable
See Also:
Runnable.run()

setUp

public void setUp(String id,
                  boolean quiet,
                  String serverName,
                  com.ibm.etools.systems.subsystems.ISystem system,
                  String userName,
                  String jobName,
                  String jobNumber)
Setup for the diagnostic

Specified by:
setUp in interface com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic

logError

public void logError(String s)
Log an error message to .log file

Specified by:
logError in interface com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic

isNetworkDown

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

Specified by:
isNetworkDown in interface com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic
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

Specified by:
isServerActive in interface com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic
Returns:
true if server job active

displayMessage

public void displayMessage(String id)
Prompt user the message

Specified by:
displayMessage in interface com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic

diagnosticStatus

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

Specified by:
diagnosticStatus in interface com.ibm.etools.systems.universal.util.ICommunicationsDiagnostic

iSeries Remote Systems
v6.0.1

Copyright © 2005 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.