hudson.plugins.clearcase
Class ClearToolDynamic

java.lang.Object
  extended by hudson.plugins.clearcase.ClearToolExec
      extended by hudson.plugins.clearcase.ClearToolDynamic
All Implemented Interfaces:
ClearTool

public class ClearToolDynamic
extends ClearToolExec


Field Summary
 
Fields inherited from class hudson.plugins.clearcase.ClearToolExec
launcher, variableResolver
 
Constructor Summary
ClearToolDynamic(hudson.util.VariableResolver variableResolver, ClearToolLauncher launcher, java.lang.String viewDrive)
           
 
Method Summary
protected  hudson.FilePath getRootViewPath(ClearToolLauncher launcher)
           
 void mkview(java.lang.String viewName, java.lang.String streamSelector)
          Creates and registers a view
 void rmview(java.lang.String viewName)
          Removes the view from a VOB
 void rmviewtag(java.lang.String viewName)
          Removes the view tag from the ClearCase registry - used when the view storage in the workspace has already been deleted.
 void setcs(java.lang.String viewName, java.lang.String configSpec)
          The view tag does need not be active.
 void startView(java.lang.String viewTags)
          Starts or connects to a dynamic view's view_server process
 void syncronizeViewWithStream(java.lang.String viewName, java.lang.String stream)
          Syncronizes the Dynamic UCM view with the streams recomended baseline
 void update(java.lang.String viewName, java.lang.String loadRules)
          Updates the elements in the view
 
Methods inherited from class hudson.plugins.clearcase.ClearToolExec
catcs, getLauncher, lsactivity, lshistory, lsview, lsvob, mklabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearToolDynamic

public ClearToolDynamic(hudson.util.VariableResolver variableResolver,
                        ClearToolLauncher launcher,
                        java.lang.String viewDrive)
Method Detail

getRootViewPath

protected hudson.FilePath getRootViewPath(ClearToolLauncher launcher)
Specified by:
getRootViewPath in class ClearToolExec

setcs

public void setcs(java.lang.String viewName,
                  java.lang.String configSpec)
           throws java.io.IOException,
                  java.lang.InterruptedException
The view tag does need not be active. However, it is possible to set the config spec of a dynamic view from within a snapshot view using "-tag view-tag"

Parameters:
viewName - the name of the view
configSpec - the name of the file containing a config spec
Throws:
java.io.IOException
java.lang.InterruptedException
See Also:
http://www.ipnom.com/ClearCase-Commands/setcs.html

mkview

public void mkview(java.lang.String viewName,
                   java.lang.String streamSelector)
            throws java.io.IOException,
                   java.lang.InterruptedException
Description copied from interface: ClearTool
Creates and registers a view

Parameters:
viewName - the name of the view
streamSelector - optional stream selector, null if not used.
Throws:
java.io.IOException
java.lang.InterruptedException

rmview

public void rmview(java.lang.String viewName)
            throws java.io.IOException,
                   java.lang.InterruptedException
Description copied from interface: ClearTool
Removes the view from a VOB

Parameters:
viewName - the name of the view
Throws:
java.io.IOException
java.lang.InterruptedException

rmviewtag

public void rmviewtag(java.lang.String viewName)
               throws java.io.IOException,
                      java.lang.InterruptedException
Description copied from interface: ClearTool
Removes the view tag from the ClearCase registry - used when the view storage in the workspace has already been deleted.

Parameters:
viewName - the name of the view
Throws:
java.io.IOException
java.lang.InterruptedException

update

public void update(java.lang.String viewName,
                   java.lang.String loadRules)
            throws java.io.IOException,
                   java.lang.InterruptedException
Description copied from interface: ClearTool
Updates the elements in the view

Parameters:
viewName - the name of the view
loadRules - optional load rules, null if not used.
Throws:
java.io.IOException
java.lang.InterruptedException

syncronizeViewWithStream

public void syncronizeViewWithStream(java.lang.String viewName,
                                     java.lang.String stream)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
Description copied from interface: ClearTool
Syncronizes the Dynamic UCM view with the streams recomended baseline

Throws:
java.io.IOException
java.lang.InterruptedException

startView

public void startView(java.lang.String viewTags)
               throws java.io.IOException,
                      java.lang.InterruptedException
Description copied from interface: ClearTool
Starts or connects to a dynamic view's view_server process

Parameters:
viewTags - One or more currently registered view tags (that is, view tags visible to lsview).
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2009. All Rights Reserved.