com.esri.arcgis.geoprocessing.tools.datamanagementtools
Class ClearWorkspaceCache
java.lang.Object
com.esri.arcgis.geoprocessing.AbstractGPTool
com.esri.arcgis.geoprocessing.tools.datamanagementtools.ClearWorkspaceCache
- All Implemented Interfaces:
- GPTool
public class ClearWorkspaceCache
- extends AbstractGPTool
Clears any ArcSDE workspaces from the ArcSDE workspace cache.
The Clear Workspace Cache tool is contained in the Data Management Tools tool box.
Usage tips:
- This tool only works with ArcSDE workspaces.
- This tool can be used to help disconnect idle ArcSDE connections in a long-running application.
- If you run the tool without specifying an Input data element, all ArcSDE workspaces in the ArcSDE workspace cache will be cleared. Specify the specific .sde file associated with the workspace you want to clear in order to clear a specific ArcSDE workspace.
- Clearing an ArcSDE workspace from the ArcSDE workspace cache does not guarantee the connection to the ArcSDE server will be disconnected. It will only ensure the geoprocessor object no longer has any hold on the ArcSDE workspace that has been cleared. If any other process has references to this ArcSDE workspace the connection will be maintained.
- To clear the workspace cache correctly in ArcCatalog: After using this tool in ArcCatalog you will have to navigate to a different folder in the Table of Contents and refresh before the ArcSDE connection will be disconnected.
- To clear the workspace cache correctly in ArcMap: Remove all references to data in ArcMap that may be accessing the ArcSDE workspace and then run the Clear Workspace Cache tool to ensure the connection is disconnected.
- To clear the workspace cache correctly in a script: The call to ClearWorkspaceCache() should be the last call in your script making sure to remove all references to any objects that may be pointing to the ArcSDE workspace before making the call to ClearWorkspaceCache().
Constructor Summary |
ClearWorkspaceCache()
Creates the Clear Workspace Cache tool with defaults. |
Method Summary |
java.lang.Object |
getInData()
Returns the Input Data Element parameter of this tool . |
java.lang.String |
getOutResults()
Returns the Operation succeeded parameter of this tool (Read only). |
java.lang.String |
getToolboxAlias()
Returns the alias of the tool box containing this tool. |
java.lang.String |
getToolboxName()
Returns the name of the tool box containing this tool. |
java.lang.String |
getToolName()
Returns the name of this tool. |
void |
setInData(java.lang.Object inData)
Sets the Input Data Element parameter of this tool . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClearWorkspaceCache
public ClearWorkspaceCache()
- Creates the Clear Workspace Cache tool with defaults.
Initializes the array of tool parameters with the default values specified when the tool was created.
getInData
public java.lang.Object getInData()
- Returns the Input Data Element parameter of this tool .
This parameter is the ArcSDE database connection file representing the ArcSDE workspace to be removed from the cache. Specify the path to the ArcSDE connection file that was used in running your geoprocessing tools in order to remove the specific ArcSDE workspace from the cache. Passing no input parameter will clear all ArcSDE workspaces from the cache.
This is an optional parameter.
- Returns:
- the Input Data Element
setInData
public void setInData(java.lang.Object inData)
- Sets the Input Data Element parameter of this tool .
This parameter is the ArcSDE database connection file representing the ArcSDE workspace to be removed from the cache. Specify the path to the ArcSDE connection file that was used in running your geoprocessing tools in order to remove the specific ArcSDE workspace from the cache. Passing no input parameter will clear all ArcSDE workspaces from the cache.
This is an optional parameter.
- Parameters:
inData
- the ArcSDE database connection file representing the ArcSDE workspace to be removed from the cache. Specify the path to the ArcSDE connection file that was used in running your geoprocessing tools in order to remove the specific ArcSDE workspace from the cache. Passing no input parameter will clear all ArcSDE workspaces from the cache.
getOutResults
public java.lang.String getOutResults()
- Returns the Operation succeeded parameter of this tool (Read only).
This is an derived parameter.
- Returns:
- the Operation succeeded
getToolName
public java.lang.String getToolName()
- Returns the name of this tool.
- Returns:
- the tool name
getToolboxName
public java.lang.String getToolboxName()
- Returns the name of the tool box containing this tool.
- Returns:
- the tool box name
getToolboxAlias
public java.lang.String getToolboxAlias()
- Returns the alias of the tool box containing this tool.
- Returns:
- the tool box alias