Remote Systems
v6.4.1

com.ibm.etools.systems.core.resources
Interface ISystemCachedRemoteResource


public interface ISystemCachedRemoteResource

This is the cached remote resource.


Field Summary
static int CHANGES_CONFLICT
          Constant indicating both local and server copy have changed.
static int CHANGES_INCOMING
          Constant indicating server copy has changed, but not local copy.
static int CHANGES_NONE
          Constant indicating no changes.
static int CHANGES_OUTGOING
          Constant indicating local copy has changed, but not server copy.
static String Copyright
           
 
Method Summary
 void dispose()
          Dispose of the cache.
 int getState()
          Get the state of the cache.
 boolean isSynchronized()
          Returns whether the local and remote copies are synchronized.
 long lastLocalModified()
          Get the last modified time on the client.
 long lastRemoteModified()
          Get the last modified time on the server.
 long lastSuccessfulSynch()
          Get the last time of download or synchronization.
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

CHANGES_NONE

public static final int CHANGES_NONE
Constant indicating no changes.

See Also:
Constant Field Values

CHANGES_OUTGOING

public static final int CHANGES_OUTGOING
Constant indicating local copy has changed, but not server copy.

See Also:
Constant Field Values

CHANGES_INCOMING

public static final int CHANGES_INCOMING
Constant indicating server copy has changed, but not local copy.

See Also:
Constant Field Values

CHANGES_CONFLICT

public static final int CHANGES_CONFLICT
Constant indicating both local and server copy have changed.

See Also:
Constant Field Values
Method Detail

lastRemoteModified

public long lastRemoteModified()
Get the last modified time on the server. Calling this when connected will query it from the server, but calling it in disconnected mode will query it from disk.

Returns:
the last modified time on the server

lastLocalModified

public long lastLocalModified()
Get the last modified time on the client.

Returns:
the last modified time on the client

lastSuccessfulSynch

public long lastSuccessfulSynch()
Get the last time of download or synchronization.

Returns:
the time of the last download or synchronization

isSynchronized

public boolean isSynchronized()
Returns whether the local and remote copies are synchronized.

Returns:
true if the local and remote copies are synchronized, false otherwise.

getState

public int getState()
Get the state of the cache.

Returns:
CHANGES_NONE if both local and remote copies are in sync, CHANGES_OUTGOING if the local copy has changed but not the server copy, CHANGES_INCOMING if the server copy has changed but not the local copy, CHANGES_CONFLICT if both the local copy and server copy have changed.

dispose

public void dispose()
Dispose of the cache.


Remote Systems
v6.4.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.