org.wso2.carbon.registry.core.config
Class Mount

java.lang.Object
  extended by org.wso2.carbon.registry.core.config.Mount

public class Mount
extends Object

This class is represents a mount defined in the registry.xml file.
<mount path="/localPath"> <instanceId>instanceId</instanceId> <targetPath>/remotePath</targetPath> </mount>


Constructor Summary
Mount()
           
 
Method Summary
 String getInstanceId()
          Method to obtain the database configuration instance identifier used by the mount.
 String getPath()
          Method to obtain the local path of the mount.
 String getTargetPath()
          Method to obtain the remote path of the mount.
 boolean isOverwrite()
          Method to obtain whether an existing resource/collection is overwritten when creating a new mount.
 boolean isVirtual()
          Method to obtain whether the created mount is a virtual replacement to an existing physical path.
 void setInstanceId(String instanceId)
          Method to set the database configuration instance identifier used by the mount.
 void setOverwrite(boolean overwrite)
          Method to set whether an existing resource/collection is overwritten when creating a new mount.
 void setPath(String path)
          Method to set the local path of the mount.
 void setTargetPath(String targetPath)
          Method to set the remote path of the mount.
 void setVirtual(boolean virtual)
          Method to set whether the created mount is a virtual replacement to an existing physical path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mount

public Mount()
Method Detail

getPath

public String getPath()
Method to obtain the local path of the mount.

Returns:
the local path of the mount.

setPath

public void setPath(String path)
Method to set the local path of the mount.

Parameters:
path - the local path of the mount.

getInstanceId

public String getInstanceId()
Method to obtain the database configuration instance identifier used by the mount.

Returns:
the database configuration instance identifier used by the mount.

setInstanceId

public void setInstanceId(String instanceId)
Method to set the database configuration instance identifier used by the mount.

Parameters:
instanceId - the database configuration instance identifier used by the mount.

getTargetPath

public String getTargetPath()
Method to obtain the remote path of the mount.

Returns:
the remote path of the mount.

setTargetPath

public void setTargetPath(String targetPath)
Method to set the remote path of the mount.

Parameters:
targetPath - the remote path of the mount.

isOverwrite

public boolean isOverwrite()
Method to obtain whether an existing resource/collection is overwritten when creating a new mount.

Returns:
whether an existing resource/collection is overwritten when creating a new mount.

setOverwrite

public void setOverwrite(boolean overwrite)
Method to set whether an existing resource/collection is overwritten when creating a new mount.

Parameters:
overwrite - whether an existing resource/collection is overwritten when creating a new mount.

isVirtual

public boolean isVirtual()
Method to obtain whether the created mount is a virtual replacement to an existing physical path.

Returns:
whether the created mount is a virtual replacement to an existing physical path.

setVirtual

public void setVirtual(boolean virtual)
Method to set whether the created mount is a virtual replacement to an existing physical path.

Parameters:
virtual - whether the created mount is a virtual replacement to an existing physical path.


Copyright © 2014 WSO2 Inc. All Rights Reserved.