Rational Developer for i
7.5.0

com.ibm.etools.systems.as400.debug.sep
Class ServiceEntryPointManager

java.lang.Object
  extended by com.ibm.etools.systems.as400.debug.sep.ServiceEntryPointManager
All Implemented Interfaces:
PhantomEngineStatusListener

public class ServiceEntryPointManager
extends Object
implements PhantomEngineStatusListener


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.systems.as400.debug.sep.internal.PhantomEngineStatusListener
COMM_LOST, START_FAIL
 
Constructor Summary
ServiceEntryPointManager()
          Constructor.
 
Method Summary
 void cleanProgramTimeInfo(String hostName)
          Clean up the cached program time information.
 boolean enableServiceEntryPoint(PhantomServiceEntryPoint phantomServiceEntryPoint, boolean enablementStatus)
          Disable/enable ServiceEntryPoint
 PhantomDebugTarget findPhantomDebugTarget(IBMiConnection iSeriesConnection)
          Find phantom debug session based on the iSeries host name
 String getCurrentMessage(IBMiConnection iSeriesConnection)
           
 String getCurrentMessage(String hostName, String userProfile)
           
 PhantomDebugTarget getPhantomDebugTarget(IBMiConnection iSeriesConnection)
          Find or create phantom debug session based on the iSeries host name
 PhantomDebugTarget getPhantomDebugTarget(String hostName, String userProfile)
          Find debug target.
 PhantomServiceEntryPointListManager getPhantomServiceEntryPointListManager()
          Getter method for the Model of Service Entry Points view
 List<String> getSessionHosts()
           
 Shell getShell()
          This is the method in your class that will be called to return the shell for your viewer
 List<String> getUserProfiles(String host)
           
 boolean hasPhantomDebugSession(String hostName, String userProfile)
           
 boolean hasSessions()
           
 boolean isFirstTime(IBMiConnection iSeriesConnection, String libraryName, String programName, String programType)
          Return true if this is the first time to handle this program.
 boolean isProgramUpdated(IBMiConnection iSeriesConnection, String libraryName, String programName, String programType)
          Return true if program last modified time has been updated.
 boolean modifyServiceEntryPoint(PhantomServiceEntryPoint phantomServiceEntryPoint, String newUserID, String newProgramDestination, String newProgramType, String newProgramName, String newModuleName, String newEntryName)
          Perform a modify ServiceEntryPoint operation
 void phantomDebugTargetJobStatusChanged(int status, String hostName, String userProfile)
          Process teh phantom debug target job change event.
 boolean refreshServiceEntryPointForProgram(String hostName, String setterUser, String programDestination, String programName, String programType, List<Integer> invalidSEPIDs)
          Refresh all ServiceEntryPoints which belong to same program of the specified service entry point.
 boolean removeServiceEntryPoint(PhantomServiceEntryPoint phantomServiceEntryPoint)
          Remove a ServiceEntryPoint
 boolean setServiceEntryPoint(IBMiConnection iSeriesConnection, String selectedUserID, String selectedProgramDestination, String selectedProgramType, String selectedProgramName, String selectedModuleName, String selectedEntryName)
          Perform a set ServiceEntryPoint operation
 boolean setServiceEntryPoint(IBMiConnection iSeriesConnection, String selectedUserID, String selectedProgramDestination, String selectedProgramType, String selectedProgramName, String selectedModuleName, String selectedEntryName, long timeStamp)
          Perform a set ServiceEntryPoint operation
 boolean stopPhantomEngine(String hostName, String userProfile)
          Stop Phantom engine
 void systemModelResourceChanged(ISystemModelChangeEvent event)
          This is the method in your class that will be called when a resource in the RSE model changes.
 void systemResourceChanged(ISystemResourceChangeEvent event)
          This is the method in your class that will be called when a system resource changes.
 boolean updateProgramTime(IBMiConnection iSeriesConnection, String libraryName, String programName, String programType)
          Return true if program last modified time has been updated.
 
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

ServiceEntryPointManager

public ServiceEntryPointManager()
Constructor.

Method Detail

getPhantomDebugTarget

public PhantomDebugTarget getPhantomDebugTarget(IBMiConnection iSeriesConnection)
Find or create phantom debug session based on the iSeries host name


findPhantomDebugTarget

public PhantomDebugTarget findPhantomDebugTarget(IBMiConnection iSeriesConnection)
Find phantom debug session based on the iSeries host name


getPhantomServiceEntryPointListManager

public PhantomServiceEntryPointListManager getPhantomServiceEntryPointListManager()
Getter method for the Model of Service Entry Points view


setServiceEntryPoint

public boolean setServiceEntryPoint(IBMiConnection iSeriesConnection,
                                    String selectedUserID,
                                    String selectedProgramDestination,
                                    String selectedProgramType,
                                    String selectedProgramName,
                                    String selectedModuleName,
                                    String selectedEntryName)
Perform a set ServiceEntryPoint operation

Parameters:
IBMiConnection -
String - userID, for hitter user profile
String - programDestination
String - programType
String - programName
String - moduleName
String - selectedEntryName

setServiceEntryPoint

public boolean setServiceEntryPoint(IBMiConnection iSeriesConnection,
                                    String selectedUserID,
                                    String selectedProgramDestination,
                                    String selectedProgramType,
                                    String selectedProgramName,
                                    String selectedModuleName,
                                    String selectedEntryName,
                                    long timeStamp)
Perform a set ServiceEntryPoint operation

Parameters:
IBMiConnection -
String - userID, for hitter user profile
String - programDestination
String - programType
String - programName
String - moduleName
String - selectedEntryName
long - timeStamp

modifyServiceEntryPoint

public boolean modifyServiceEntryPoint(PhantomServiceEntryPoint phantomServiceEntryPoint,
                                       String newUserID,
                                       String newProgramDestination,
                                       String newProgramType,
                                       String newProgramName,
                                       String newModuleName,
                                       String newEntryName)
Perform a modify ServiceEntryPoint operation

Parameters:
PhantomServiceEntryPoint: - service entry point to be modified
IBMiConnection -
String - userID
String - programDestination
String - programType
String - programName
String - moduleName
String - selectedEntryName

removeServiceEntryPoint

public boolean removeServiceEntryPoint(PhantomServiceEntryPoint phantomServiceEntryPoint)
Remove a ServiceEntryPoint

Parameters:
PhantomServiceEntryPoint - phantom service entry point to be removed

enableServiceEntryPoint

public boolean enableServiceEntryPoint(PhantomServiceEntryPoint phantomServiceEntryPoint,
                                       boolean enablementStatus)
Disable/enable ServiceEntryPoint

Parameters:
PhantomServiceEntryPoint: - service entry point to be enabled / disabled
boolean - enablementStatus: false - DISABLE true - ENABLE

refreshServiceEntryPointForProgram

public boolean refreshServiceEntryPointForProgram(String hostName,
                                                  String setterUser,
                                                  String programDestination,
                                                  String programName,
                                                  String programType,
                                                  List<Integer> invalidSEPIDs)
Refresh all ServiceEntryPoints which belong to same program of the specified service entry point. Called when pgm / srvpgm object has been updated, for example, recompiled.

Parameters:
PhantomServiceEntryPoint: - service entry point to be refreshed.

stopPhantomEngine

public boolean stopPhantomEngine(String hostName,
                                 String userProfile)
Stop Phantom engine

Parameters:
String - hostName
String - userProfile
boolean - false - failed to stop true - stopped

getCurrentMessage

public String getCurrentMessage(IBMiConnection iSeriesConnection)

getCurrentMessage

public String getCurrentMessage(String hostName,
                                String userProfile)

hasPhantomDebugSession

public boolean hasPhantomDebugSession(String hostName,
                                      String userProfile)

hasSessions

public boolean hasSessions()

getSessionHosts

public List<String> getSessionHosts()

getUserProfiles

public List<String> getUserProfiles(String host)

getPhantomDebugTarget

public PhantomDebugTarget getPhantomDebugTarget(String hostName,
                                                String userProfile)
Find debug target.

Parameters:
hostName -
userProfile -
Returns:

systemModelResourceChanged

public void systemModelResourceChanged(ISystemModelChangeEvent event)
This is the method in your class that will be called when a resource in the RSE model changes. You will be called after the resource is changed.

See Also:
ISystemModelChangeEvent

phantomDebugTargetJobStatusChanged

public void phantomDebugTargetJobStatusChanged(int status,
                                               String hostName,
                                               String userProfile)
Process teh phantom debug target job change event. Defined by PhantomEngineJobListener

Specified by:
phantomDebugTargetJobStatusChanged in interface PhantomEngineStatusListener
Parameters:
status -

isProgramUpdated

public boolean isProgramUpdated(IBMiConnection iSeriesConnection,
                                String libraryName,
                                String programName,
                                String programType)
Return true if program last modified time has been updated. False otherwise.

Parameters:
hostName -
libraryName -
programName -
programType -
Returns:

isFirstTime

public boolean isFirstTime(IBMiConnection iSeriesConnection,
                           String libraryName,
                           String programName,
                           String programType)
Return true if this is the first time to handle this program.

Parameters:
hostName -
libraryName -
programName -
programType -
Returns:

updateProgramTime

public boolean updateProgramTime(IBMiConnection iSeriesConnection,
                                 String libraryName,
                                 String programName,
                                 String programType)
Return true if program last modified time has been updated. False otherwise.

Parameters:
hostName -
libraryName -
programName -
programType -
Returns:

cleanProgramTimeInfo

public void cleanProgramTimeInfo(String hostName)
Clean up the cached program time information.

Parameters:
hostName -

systemResourceChanged

public void systemResourceChanged(ISystemResourceChangeEvent event)
This is the method in your class that will be called when a system resource changes.

See Also:
SE28525

getShell

public Shell getShell()
This is the method in your class that will be called to return the shell for your viewer


Rational Developer for i
7.5.0

Copyright 2009 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.