|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.subversion.javahl.JNIObject
org.apache.subversion.javahl.remote.StateReporter
public class StateReporter
Implementation of ISVNReporter.
| Field Summary | |
|---|---|
protected RemoteSession |
session
Stores a reference to the session that created this reporter. |
| Fields inherited from class org.apache.subversion.javahl.JNIObject |
|---|
cppAddr |
| Constructor Summary | |
|---|---|
protected |
StateReporter(long cppAddr,
RemoteSession session)
This constructor is called from the factory method. |
| Method Summary | |
|---|---|
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 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(String url,
String path,
long revision,
Depth depth,
boolean startEmpty,
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(String path,
long revision,
Depth depth,
boolean startEmpty,
String lockToken)
Describe a working copy path as being at a
particular revision and having the given
depth. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RemoteSession session
| Constructor Detail |
|---|
protected StateReporter(long cppAddr,
RemoteSession session)
| Method Detail |
|---|
public void dispose()
ISVNReporter
dispose in interface ISVNReporter
public void setPath(String path,
long revision,
Depth depth,
boolean startEmpty,
String lockToken)
throws ClientException
ISVNReporterpath 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 ISVNReporterClientException
public void deletePath(String path)
throws ClientException
ISVNReporterpath as missing.
path may not be underneath a path on which
setPath() was previously called with
Depth.exclude
in this report.
deletePath in interface ISVNReporterClientException
public void linkPath(String url,
String path,
long revision,
Depth depth,
boolean startEmpty,
String lockToken)
throws ClientException
ISVNReportersetPath(),
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 ISVNReporterClientException
public long finishReport()
throws ClientException
ISVNReporterISVNReporter.abortReport(),
should be called after calling this function.
finishReport in interface ISVNReporterISVNRemote.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 ISVNReporterClientException
public void finalize()
throws Throwable
finalize in class ObjectThrowable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||