|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.CheckoutManager
Provides a way to check out multiple files, applying a consistent set of options across all files.
| Constructor Summary | |
CheckoutManager(View view)
Deprecated. Use View.createCheckoutManager() instead. |
|
CheckoutManager(View view,
CheckoutManager checkoutManager)
Deprecated. |
|
CheckoutManager(View view,
CheckoutOptions options)
Deprecated. Use View.createCheckoutManager(CheckoutOptions) instead. |
|
| Method Summary | |
void |
addCheckoutListener(CheckoutListener listener)
Adds a listener for checkout-related events. |
void |
checkout(File file)
Checks out a single file to the default location. |
void |
checkout(Folder folder)
Checks out all the files in the given folder. |
void |
checkout(Folder folder,
int depth)
Checks out all the files in the given folder, and in all subfolders to the given depth. |
void |
checkout(Item[] files)
Checks out the given set of files. |
void |
checkout(ItemList files)
Checks out the given set of files. |
void |
checkout(Items files)
Checks out the given set of files. |
void |
checkoutTo(File file,
java.io.File workingFile)
Checks out a single file to an alternate location. |
void |
checkoutTo(File file,
java.io.OutputStream stream)
Checks out a single file to an output stream. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
java.lang.String |
getMPXCacheAgentAddress()
Deprecated. |
boolean |
getMPXCacheAgentEnabled()
Deprecated. |
int |
getMPXCacheAgentPort()
Deprecated. |
int |
getMPXCacheAgentThreadCount()
Deprecated. |
CheckoutOptions |
getOptions()
Gets the checkout options currently in effect. |
CheckoutProgress |
getProgress()
Gets a snapshot of the state of the current checkout operation. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isCanceled()
Indicates whether or not pending checkout operations have been canceled. |
boolean |
isRunning()
Determines whether or not there is currently a checkout operation in progress. |
void |
removeCheckoutListener(CheckoutListener listener)
Removes a listener for checkout-related events. |
void |
setCanceled()
Cancels any pending checkout operations. |
void |
setMPXCacheAgentAddress(java.lang.String address)
Deprecated. |
void |
setMPXCacheAgentEnabled(boolean bEnabled)
Deprecated. |
void |
setMPXCacheAgentPort(int port)
Deprecated. |
void |
setMPXCacheAgentThreadCount(int nThreads)
Deprecated. |
void |
setOptions(CheckoutOptions checkoutOptions)
Changes the checkout options currently in effect. |
java.lang.String |
toString()
Gets a string representation of this CheckoutManager, useful for debugging. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CheckoutManager(View view)
view - The View containing the files to be checked out.
public CheckoutManager(View view,
CheckoutOptions options)
Note that individual options can be overridden on a file-by-file basis by registering a CheckoutListener, and changing options as necessary in the onStartFile event handler.
view - The View containing the files to be checked out.options - The specific CheckoutOtions to be used.CheckoutOptions,
CheckoutManager.addCheckoutListener(com.starbase.starteam.CheckoutListener),
CheckoutListener.onStartFile(com.starbase.starteam.CheckoutEvent)
public CheckoutManager(View view,
CheckoutManager checkoutManager)
view - The View containing the files to be checked out.checkoutManager - The CheckoutManager whose options are to be copied.| Method Detail |
public void setMPXCacheAgentEnabled(boolean bEnabled)
bEnabled - True to enable checkouts via the MPX cache agent;
false to force all checkouts to use the StarTeam server directly.Server.setMPXCacheAgentEnabled(boolean)public boolean getMPXCacheAgentEnabled()
CheckoutManager.getMPXCacheAgentAddress(),
CheckoutManager.getMPXCacheAgentPort(),
CheckoutManager.getMPXCacheAgentThreadCount(),
Server.getMPXCacheAgentEnabled()public void setMPXCacheAgentAddress(java.lang.String address)
address - The host address of the MPX cache agent. Note that if
checkouts via the MPX cache agent are enabled, but no host address is
explicitly specified, then an attempt is made to automatically locate
the nearest cache agent on the network.ServerInfo.setMPXCacheAgentAddress(String)public java.lang.String getMPXCacheAgentAddress()
CheckoutManager.getMPXCacheAgentEnabled(),
CheckoutManager.getMPXCacheAgentPort(),
ServerInfo.getMPXCacheAgentAddress()public void setMPXCacheAgentPort(int port)
port - The port number of the MPX cache agent. Note that if
host address is specified but no port number is specified, then
the default cache agent port is assumed.ServerInfo.setMPXCacheAgentPort(int)public int getMPXCacheAgentPort()
CheckoutManager.getMPXCacheAgentEnabled(),
CheckoutManager.getMPXCacheAgentAddress(),
ServerInfo.getMPXCacheAgentPort()public void setMPXCacheAgentThreadCount(int nThreads)
nThreads - The number of threads used by the MPX cache agent to fetch
file content. The default value is 3.ServerInfo.setMPXCacheAgentThreadCount(int)public int getMPXCacheAgentThreadCount()
CheckoutManager.getMPXCacheAgentEnabled(),
ServerInfo.getMPXCacheAgentThreadCount()public void setCanceled()
CheckoutManager.isCanceled()public boolean isCanceled()
CheckoutManager.setCanceled()public void checkout(File file)
file - The file to be checked out.
public void checkoutTo(File file,
java.io.File workingFile)
file - The file to be checked out.workingFile - The alternate working file.
public void checkoutTo(File file,
java.io.OutputStream stream)
file - The file to be checked out.stream - The stream to which the checked out content is written.public void checkout(Items files)
files - The files to be checked out.Items,
ItemListManager.getItems(),
ItemListManager.getItemsForFolder(com.starbase.starteam.Folder, boolean),
ItemListManager.selectByLabel(com.starbase.starteam.Label),
ItemListManager.selectByQuery(com.starbase.starteam.QueryInfo)public void checkout(ItemList files)
files - The files to be checked out.ItemListpublic void checkout(Item[] files)
files - The files to be checked out.Folder.getItems(java.lang.String)public void checkout(Folder folder)
folder - The StarTeam folder whose files are to be checked out.Folder,
CheckoutManager.checkout(Folder,int)
public void checkout(Folder folder,
int depth)
folder - The StarTeam folder whose files are to be checked out.depth - Indicates which subfolders also contain files to be checked out. Zero indicates
that no subfolders should be included; 1 indicates that this folder and its immediate child folders
should be included; -1 indicates that this folder and all child folders at any depth should
be included.public boolean isRunning()
public void addCheckoutListener(CheckoutListener listener)
listener - Application-specific event handler for checkout-related
events.CheckoutListener,
CheckoutEvent,
CheckoutManager.removeCheckoutListener(com.starbase.starteam.CheckoutListener)public void removeCheckoutListener(CheckoutListener listener)
listener - A previously-registered event handler for checkout-related
events.CheckoutManager.addCheckoutListener(com.starbase.starteam.CheckoutListener)public java.lang.String toString()
toString in class java.lang.Objectpublic CheckoutOptions getOptions()
Note that individual options can be overridden on a file-by-file basis by registering a CheckoutListener, and changing options as necessary in the onStartFile event handler.
CheckoutOptions,
CheckoutManager.addCheckoutListener(com.starbase.starteam.CheckoutListener),
CheckoutListener.onStartFile(com.starbase.starteam.CheckoutEvent)public void setOptions(CheckoutOptions checkoutOptions)
checkoutOptions - The new checkout options.public CheckoutProgress getProgress()
CheckoutProgress,
CheckoutManager.isRunning(),
CheckoutEvent.getProgress()public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||