iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.core
Class ISeriesTempFileListener

java.lang.Object
  extended bycom.ibm.etools.systems.core.SystemTempFileListener
      extended bycom.ibm.etools.iseries.core.ISeriesTempFileListener
All Implemented Interfaces:
EventListener, IResourceChangeListener, IRunnableWithProgress, Runnable

public class ISeriesTempFileListener
extends com.ibm.etools.systems.core.SystemTempFileListener

This class manages listening for resource changes within our temp file project It is used for listening to saves made in the editor so that we can upload changes to the remote members.


Field Summary
static String copyright
           
 
Constructor Summary
ISeriesTempFileListener()
           
 
Method Summary
protected  boolean doesHandle(com.ibm.etools.systems.subsystems.SubSystem subsystem)
          Indicate whether this tempfile listener handles the specified
protected  void doResourceSynchronization(com.ibm.etools.systems.subsystems.SubSystem subsystem, IFile tempFile, String resourceId)
          Deprecated. now use monitor
protected  void doResourceSynchronization(com.ibm.etools.systems.subsystems.SubSystem subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor)
          Synchronize the specified remote file with the temporary local file using the specified remote file subsystemb
 ISeriesEditableSrcPhysicalFileMember getEditedMember(ISeriesMember member)
           
static ISeriesTempFileListener getListener()
          Return singleton
static boolean isSynchronizing()
           
 void registerEditedMember(ISeriesEditableSrcPhysicalFileMember editMember)
           
 void unregisterEditedMember(ISeriesEditableSrcPhysicalFileMember editMember)
           
 void upload(AS400SubSystemImpl subsystem, IFile tempFile, String resourceId, IProgressMonitor monitor)
           
 
Methods inherited from class com.ibm.etools.systems.core.SystemTempFileListener
addIgnoreFile, getRunnableContext, isIgnorable, preScanForTempFiles, processDelta, removeIgnoreFile, resourceChanged, run, run, setEnabled, synchronizeTempWithRemote
 
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

ISeriesTempFileListener

public ISeriesTempFileListener()
Method Detail

doesHandle

protected boolean doesHandle(com.ibm.etools.systems.subsystems.SubSystem subsystem)
Indicate whether this tempfile listener handles the specified

Parameters:
subsystem - the subsystem to check
Returns:
whether it handles this or not

doResourceSynchronization

protected void doResourceSynchronization(com.ibm.etools.systems.subsystems.SubSystem subsystem,
                                         IFile tempFile,
                                         String resourceId,
                                         IProgressMonitor monitor)
Synchronize the specified remote file with the temporary local file using the specified remote file subsystemb

Parameters:
subsystem - the remote file subsystem of the remote file
tempFile - the temporary file
resourceId - the remote file

doResourceSynchronization

protected void doResourceSynchronization(com.ibm.etools.systems.subsystems.SubSystem subsystem,
                                         IFile tempFile,
                                         String resourceId)
Deprecated. now use monitor

Parameters:
subsystem -
tempFile -
resourceId -

isSynchronizing

public static boolean isSynchronizing()

upload

public void upload(AS400SubSystemImpl subsystem,
                   IFile tempFile,
                   String resourceId,
                   IProgressMonitor monitor)

getListener

public static ISeriesTempFileListener getListener()
Return singleton


registerEditedMember

public void registerEditedMember(ISeriesEditableSrcPhysicalFileMember editMember)

unregisterEditedMember

public void unregisterEditedMember(ISeriesEditableSrcPhysicalFileMember editMember)

getEditedMember

public ISeriesEditableSrcPhysicalFileMember getEditedMember(ISeriesMember member)

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.