public class StateReporter extends JNIObject implements ISVNReporter
Modifier and Type | Field and Description |
---|---|
protected RemoteSession |
session
Stores a reference to the session that created this reporter.
|
Modifier | Constructor and Description |
---|---|
protected |
StateReporter(long cppAddr,
RemoteSession session)
This constructor is called from the factory method.
|
Modifier and Type | Method and 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(java.lang.String path)
Describe a working copy
path 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(java.lang.String url,
java.lang.String path,
long revision,
Depth depth,
boolean startEmpty,
java.lang.String lockToken)
Like
setPath() ,
but differs in that path in the working copy
(relative to the root of the report driver) isn't a reflection
of path in the repository (relative to the URL
specified when opening the remote session), but is instead a
reflection of a different repository url at
revision , and has depth depth . |
void |
setPath(java.lang.String path,
long revision,
Depth depth,
boolean startEmpty,
java.lang.String lockToken)
Describe a working copy
path as being at a
particular revision and having the given
depth . |
protected RemoteSession session
protected StateReporter(long cppAddr, RemoteSession session)
public void dispose()
ISVNReporter
dispose
in interface ISVNReporter
public void setPath(java.lang.String path, long revision, Depth depth, boolean startEmpty, java.lang.String lockToken) throws ClientException
ISVNReporter
path
as being at a
particular revision
and having the given
depth
.
revision
may be
Revision.SVN_INVALID_REVNUM
if (for example) path
represents a locally-added
path with no revision number, or depth
is
Depth.exclude
.
path
may not be underneath a path on which
setPath() was previously called with
Depth.exclude
in this report.
If startEmpty
is set and path
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 not null
, it is the
lock token for path
in the working copy.
setPath
in interface ISVNReporter
ClientException
public void deletePath(java.lang.String path) throws ClientException
ISVNReporter
path
as missing.
path
may not be underneath a path on which
setPath() was previously called with
Depth.exclude
in this report.
deletePath
in interface ISVNReporter
ClientException
public void linkPath(java.lang.String url, java.lang.String path, long revision, Depth depth, boolean startEmpty, java.lang.String lockToken) throws ClientException
ISVNReporter
setPath()
,
but differs in that path
in the working copy
(relative to the root of the report driver) isn't a reflection
of path
in the repository (relative to the URL
specified when opening the remote session), but is instead a
reflection of a different repository url
at
revision
, and has depth depth
.
path
may not be underneath a path on which
setPath() was previously called with
Depth.exclude
in this report.
If startEmpty
is set and path
is a
directory, the implementor should assume the directory has no
entries or properties.
If lockToken
is not null
, it is the
lock token for path
in the working copy.
linkPath
in interface ISVNReporter
ClientException
public long finishReport() throws ClientException
ISVNReporter
ISVNReporter.abortReport()
,
should be called after calling this function.finishReport
in interface ISVNReporter
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 of ISVNRemote#update
, it is the
revision updated to.ClientException
public void abortReport() throws ClientException
ISVNReporter
abortReport
in interface ISVNReporter
ClientException
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable