hudson.plugins.clearcase
Class ClearToolSnapshot

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

public class ClearToolSnapshot
extends ClearToolExec


Field Summary
 
Fields inherited from class hudson.plugins.clearcase.ClearToolExec
launcher, variableResolver
 
Constructor Summary
ClearToolSnapshot(hudson.util.VariableResolver<java.lang.String> variableResolver, ClearToolLauncher launcher)
           
ClearToolSnapshot(hudson.util.VariableResolver<java.lang.String> variableResolver, ClearToolLauncher launcher, java.lang.String optionalParameters)
           
 
Method Summary
protected  hudson.FilePath getRootViewPath(ClearToolLauncher launcher)
           
 void mkview(java.lang.String viewName, java.lang.String streamSelector)
          Creates and registers a view
 void mkview(java.lang.String viewName, java.lang.String streamSelector, java.lang.String defaultStorageDir)
          Creates and registers a view
 void rmview(java.lang.String viewName)
          Removes the view from a VOB
 void setcs(java.lang.String viewName, java.lang.String configSpec)
          To set the config spec of a snapshot view, you must be in or under the snapshot view root directory.
 void setcsCurrent(java.lang.String viewName)
          To set the config spec of a snapshot view, you must be in or under the snapshot view root directory.
 void startView(java.lang.String viewTag)
          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, doesViewExist, endView, getLauncher, getViewData, logRedundantCleartoolError, lsactivity, lscurrentview, lshistory, lsview, lsvob, mklabel, mountVobs, pwv, rmviewtag, rmviewUuid, runAndProcessOutput, unregisterView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearToolSnapshot

public ClearToolSnapshot(hudson.util.VariableResolver<java.lang.String> variableResolver,
                         ClearToolLauncher launcher)

ClearToolSnapshot

public ClearToolSnapshot(hudson.util.VariableResolver<java.lang.String> variableResolver,
                         ClearToolLauncher launcher,
                         java.lang.String optionalParameters)
Method Detail

setcs

public void setcs(java.lang.String viewName,
                  java.lang.String configSpec)
           throws java.io.IOException,
                  java.lang.InterruptedException
To set the config spec of a snapshot view, you must be in or under the snapshot view root directory.

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

setcsCurrent

public void setcsCurrent(java.lang.String viewName)
                  throws java.io.IOException,
                         java.lang.InterruptedException
To set the config spec of a snapshot view, you must be in or under the snapshot view root directory.

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

mkview

public void mkview(java.lang.String viewName,
                   java.lang.String streamSelector,
                   java.lang.String defaultStorageDir)
            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

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

getRootViewPath

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

startView

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

Parameters:
viewTag - One or more currently registered view tags (that is, view tags visible to lsview).
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


Copyright © 2010. All Rights Reserved.