Remote Systems
v6.4.1

com.ibm.etools.systems.core.resources
Class DefaultMountPathMapper

java.lang.Object
  extended bycom.ibm.etools.systems.core.resources.DefaultMountPathMapper
All Implemented Interfaces:
ISystemMountPathMapper

public class DefaultMountPathMapper
extends Object
implements ISystemMountPathMapper


Field Summary
static String Copyright
           
 
Constructor Summary
DefaultMountPathMapper()
           
 
Method Summary
 String getActualHostFor(String hostname, String remotePath)
          Returns the corresponding hostname for the specified path on the specified host.
 String getMountedMappingFor(String hostname, String remotePath)
          Returns the remote path.
 String getWorkspaceMappingFor(String hostname, String remotePath)
          Returns the qualified workspace path for a replica of this mounted file.
 boolean handlesMappingFor(String hostname, String remotePath)
          Indicates whether this mapper handles remapping of the specified resource
 
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

DefaultMountPathMapper

public DefaultMountPathMapper()
Method Detail

handlesMappingFor

public boolean handlesMappingFor(String hostname,
                                 String remotePath)
Description copied from interface: ISystemMountPathMapper
Indicates whether this mapper handles remapping of the specified resource

Specified by:
handlesMappingFor in interface ISystemMountPathMapper
Parameters:
hostname - the remote host
remotePath - the remote path as seen by the local file subsystem
Returns:
whether this mapper handles remapping of the specified remote resource

getActualHostFor

public String getActualHostFor(String hostname,
                               String remotePath)
Description copied from interface: ISystemMountPathMapper
Returns the corresponding hostname for the specified path on the specified host. If a file is mounted via local, then the actual host containing the file will not be local. If there is no mapping, then the hostname will be the same as the argument.

Specified by:
getActualHostFor in interface ISystemMountPathMapper
Parameters:
hostname - the system host
remotePath - the path on the system host
Returns:
the actual host that contains the specified remote path

getWorkspaceMappingFor

public String getWorkspaceMappingFor(String hostname,
                                     String remotePath)
Description copied from interface: ISystemMountPathMapper
Returns the qualified workspace path for a replica of this mounted file. Since the local system path is not unique for mounted files, this allows a vender to make sure it is unique. The workspace mapping should always be the remote path on the originating host.

Specified by:
getWorkspaceMappingFor in interface ISystemMountPathMapper
Parameters:
hostname - the remote host
remotePath - the remote path as seen by the local file subsystem
Returns:
the corresponding workspace replica mapping

getMountedMappingFor

public String getMountedMappingFor(String hostname,
                                   String remotePath)
Returns the remote path.

Specified by:
getMountedMappingFor in interface ISystemMountPathMapper
Parameters:
hostname - the remote host
remotePath - the remote path as seen by the local file subsystem
Returns:
the local system path that represents the mounted file

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.