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 RemoteSession
session
Stores a reference to the session that created this reporter. -
Constructor Summary
Constructors Modifier Constructor Description protected
StateReporter(long cppAddr, RemoteSession session)
This constructor is called from the factory method. -
Method Summary
Modifier and Type Method Description void
abortReport()
If an error occurs during a report, this routine should cause the filesystem transaction to be aborted and cleaned up.void
deletePath(String path)
Describe a working copypath
as missing.void
dispose()
Release the native peer (should not depend on finalize), and abort the report if it has not been completed yet.void
finalize()
long
finishReport()
The report driver calls this when the state report is finished.void
linkPath(String url, String path, long revision, Depth depth, boolean startEmpty, String lockToken)
LikesetPath()
, but differs in thatpath
in the working copy (relative to the root of the report driver) isn't a reflection ofpath
in the repository (relative to the URL specified when opening the remote session), but is instead a reflection of a different repositoryurl
atrevision
, and has depthdepth
.void
setPath(String path, long revision, Depth depth, boolean startEmpty, String lockToken)
Describe a working copypath
as being at a particularrevision
and 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:ISVNReporter
Release the native peer (should not depend on finalize), and abort the report if it has not been completed yet.- Specified by:
dispose
in interfaceISVNReporter
-
setPath
public void setPath(String path, long revision, Depth depth, boolean startEmpty, String lockToken) throws ClientExceptionDescription copied from interface:ISVNReporter
Describe a working copypath
as being at a particularrevision
and having the givendepth
.revision
may beRevision.SVN_INVALID_REVNUM
if (for example)path
represents a locally-added path with no revision number, ordepth
isDepth.exclude
.path
may not be underneath a path on which setPath() was previously called withDepth.exclude
in this report.If
startEmpty
is set andpath
is a directory, the implementor should assume the directory has no entries or properties.This will override any previous setPath() calls made on parent paths.
path
is relative to the URL of the remote session that created this reporter instance.If
lockToken
is notnull
, it is the lock token forpath
in the working copy.- Specified by:
setPath
in interfaceISVNReporter
- Throws:
ClientException
-
deletePath
Description copied from interface:ISVNReporter
Describe a working copypath
as missing.path
may not be underneath a path on which setPath() was previously called withDepth.exclude
in this report.- Specified by:
deletePath
in interfaceISVNReporter
- Throws:
ClientException
-
linkPath
public void linkPath(String url, String path, long revision, Depth depth, boolean startEmpty, String lockToken) throws ClientExceptionDescription copied from interface:ISVNReporter
LikesetPath()
, but differs in thatpath
in the working copy (relative to the root of the report driver) isn't a reflection ofpath
in the repository (relative to the URL specified when opening the remote session), but is instead a reflection of a different repositoryurl
atrevision
, and has depthdepth
.path
may not be underneath a path on which setPath() was previously called withDepth.exclude
in this report.If
startEmpty
is set andpath
is a directory, the implementor should assume the directory has no entries or properties.If
lockToken
is notnull
, it is the lock token forpath
in the working copy.- Specified by:
linkPath
in interfaceISVNReporter
- Throws:
ClientException
-
finishReport
Description copied from interface:ISVNReporter
The 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:
finishReport
in 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:ISVNReporter
If 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:
abortReport
in interfaceISVNReporter
- Throws:
ClientException
-
finalize
-