Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.files.ui.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.
 
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

CHANGES_NONE

static final int CHANGES_NONE
Constant indicating no changes.

See Also:
Constant Field Values

CHANGES_OUTGOING

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

See Also:
Constant Field Values

CHANGES_INCOMING

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

See Also:
Constant Field Values

CHANGES_CONFLICT

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

See Also:
Constant Field Values
Method Detail

lastRemoteModified

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

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

Returns:
the last modified time on the client

lastSuccessfulSynch

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

Returns:
the time of the last download or synchronization

isSynchronized

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

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

getState

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

void dispose()
Dispose of the cache.


RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire