Class StateReporter
- All Implemented Interfaces:
ISVNReporter
public class StateReporter extends JNIObject implements ISVNReporter
- Since:
- 1.9
-
Field Summary
Fields Modifier and Type Field Description protected RemoteSessionsessionStores a reference to the session that created this reporter. -
Constructor Summary
Constructors Modifier Constructor Description protectedStateReporter(long cppAddr, RemoteSession session)This constructor is called from the factory method. -
Method Summary
Modifier and Type Method Description voidabortReport()If an error occurs during a report, this routine should cause the filesystem transaction to be aborted and cleaned up.voiddeletePath(String path)Describe a working copypathas missing.voiddispose()Release the native peer (should not depend on finalize), and abort the report if it has not been completed yet.voidfinalize()longfinishReport()The report driver calls this when the state report is finished.voidlinkPath(String url, String path, long revision, Depth depth, boolean startEmpty, String lockToken)LikesetPath(), but differs in thatpathin the working copy (relative to the root of the report driver) isn't a reflection ofpathin the repository (relative to the URL specified when opening the remote session), but is instead a reflection of a different repositoryurlatrevision, and has depthdepth.voidsetPath(String path, long revision, Depth depth, boolean startEmpty, String lockToken)Describe a working copypathas being at a particularrevisionand having the givendepth.
-
Field Details
-
session
Stores a reference to the session that created this reporter.
-
-
Constructor Details
-
StateReporter
This constructor is called from the factory method.
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:ISVNReporterRelease the native peer (should not depend on finalize), and abort the report if it has not been completed yet.- Specified by:
disposein interfaceISVNReporter
-
setPath
public void setPath(String path, long revision, Depth depth, boolean startEmpty, String lockToken) throws ClientExceptionDescription copied from interface:ISVNReporterDescribe a working copypathas being at a particularrevisionand having the givendepth.revisionmay beRevision.SVN_INVALID_REVNUMif (for example)pathrepresents a locally-added path with no revision number, ordepthisDepth.exclude.pathmay not be underneath a path on which setPath() was previously called withDepth.excludein this report.If
startEmptyis set andpathis a directory, the implementor should assume the directory has no entries or properties.This will override any previous setPath() calls made on parent paths.
pathis relative to the URL of the remote session that created this reporter instance.If
lockTokenis notnull, it is the lock token forpathin the working copy.- Specified by:
setPathin interfaceISVNReporter- Throws:
ClientException
-
deletePath
Description copied from interface:ISVNReporterDescribe a working copypathas missing.pathmay not be underneath a path on which setPath() was previously called withDepth.excludein this report.- Specified by:
deletePathin interfaceISVNReporter- Throws:
ClientException
-
linkPath
public void linkPath(String url, String path, long revision, Depth depth, boolean startEmpty, String lockToken) throws ClientExceptionDescription copied from interface:ISVNReporterLikesetPath(), but differs in thatpathin the working copy (relative to the root of the report driver) isn't a reflection ofpathin the repository (relative to the URL specified when opening the remote session), but is instead a reflection of a different repositoryurlatrevision, and has depthdepth.pathmay not be underneath a path on which setPath() was previously called withDepth.excludein this report.If
startEmptyis set andpathis a directory, the implementor should assume the directory has no entries or properties.If
lockTokenis notnull, it is the lock token forpathin the working copy.- Specified by:
linkPathin interfaceISVNReporter- Throws:
ClientException
-
finishReport
Description copied from interface:ISVNReporterThe report driver calls this when the state report is finished. Any directories or files not explicitly "set" are assumed to be at the baseline revision originally passed into do_update(). No other reporting functions, includingISVNReporter.abortReport(), should be called after calling this function.- Specified by:
finishReportin interfaceISVNReporter- Returns:
- The target revision of the resulting editor drive. In
the case of
ISVNRemote.status(java.lang.String, long, org.apache.subversion.javahl.types.Depth, org.apache.subversion.javahl.callback.RemoteStatus), this is the revision against which the status call was performed; in the case ofISVNRemote#update, it is the revision updated to. - Throws:
ClientException
-
abortReport
Description copied from interface:ISVNReporterIf an error occurs during a report, this routine should cause the filesystem transaction to be aborted and cleaned up. No other reporting functions should be called after calling this function.- Specified by:
abortReportin interfaceISVNReporter- Throws:
ClientException
-
finalize
-