Package org.tmatesoft.svn.core.wc.admin
Class SVNAdminEvent
java.lang.Object
org.tmatesoft.svn.core.wc.admin.SVNAdminEvent
The SVNAdminEvent is a type of an event used to notify callers' handlers
in several methods of SVNAdminClient.
- Since:
- 1.2
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNAdminEventAction
private int
private long
private SVNErrorMessage
private SVNLock
private String
private long
private String
private long
private long
private File
private String
-
Constructor Summary
ConstructorsConstructorDescriptionSVNAdminEvent
(long revision, long originalRevision, SVNAdminEventAction action, String message) Creates a new event.SVNAdminEvent
(long revision, SVNAdminEventAction action, String message) Creates a new event.SVNAdminEvent
(String txnName, File txnDir, SVNAdminEventAction action) Creates a new event.SVNAdminEvent
(SVNAdminEventAction action) Creates a new event.SVNAdminEvent
(SVNAdminEventAction action, long shard) Creates a new event to notify about a next shard being packed.SVNAdminEvent
(SVNAdminEventAction action, String message) Creates a new event.SVNAdminEvent
(SVNAdminEventAction action, String path, String message) Creates a new event to notify about a next path being changed withing the revision being currently loaded.SVNAdminEvent
(SVNAdminEventAction action, SVNLock lock, SVNErrorMessage error, String message) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of an action this event is fired for.int
Returns the total number of nodes dropped during dumpfiltering.long
Returns the total number of revisions dropped during dumpfiltering.getError()
Returns the error message describing the error occurred while performing an operation.getLock()
Returns the lock information.Returns an event description message.long
Returns the original revision from which anew one
is loaded.getPath()
Returns an absolute repository path being changed within the current revision load iteration.long
Returns a revision.long
getShard()
Returns the number of the shard packed.Returns a transaction directoryReturns a transaction name.void
setDroppedNodesCount
(int droppedNodesCount) Sets the total number of nodes dropped during dumpfiltering.void
setDroppedRevisionsCount
(long droppedRevisionsCount) Sets the total number of revisions dropped during dumpfiltering.
-
Field Details
-
myTxnName
-
myTxnDir
-
myShard
private long myShard -
myRevision
private long myRevision -
myOriginalRevision
private long myOriginalRevision -
myDroppedRevisionsCount
private long myDroppedRevisionsCount -
myDroppedNodesCount
private int myDroppedNodesCount -
myAction
-
myPath
-
myMessage
-
myLock
-
myError
-
-
Constructor Details
-
SVNAdminEvent
public SVNAdminEvent(long revision, long originalRevision, SVNAdminEventAction action, String message) Creates a new event.- Parameters:
revision
- a new committed revisionoriginalRevision
- the original revisionaction
- an event actionmessage
- event description message
-
SVNAdminEvent
Creates a new event to notify about a next path being changed withing the revision being currently loaded.- Parameters:
action
- a path change actionpath
- repository path being changedmessage
-
-
SVNAdminEvent
Creates a new event to notify about a next shard being packed.- Parameters:
action
- pack start\end actionshard
- number of the shard being packed- Since:
- 1.3
- See Also:
-
SVNAdminEvent
Creates a new event.- Parameters:
revision
- a revision numberaction
- an event actionmessage
- an event description message
-
SVNAdminEvent
Creates a new event.- Parameters:
txnName
- a transaction nametxnDir
- a transaction directory locationaction
- an event action
-
SVNAdminEvent
public SVNAdminEvent(SVNAdminEventAction action, SVNLock lock, SVNErrorMessage error, String message) Creates a new event.- Parameters:
action
- an event actionlock
- lock infoerror
- an error message (if an error occurred)message
- an event description message- Since:
- 1.2.0
-
SVNAdminEvent
Creates a new event.- Parameters:
action
- an event actionmessage
- an event description message- Since:
- 1.2.0
-
SVNAdminEvent
Creates a new event.- Parameters:
action
- an event action- Since:
- 1.2.0
-
-
Method Details
-
getAction
Returns the type of an action this event is fired for.- Returns:
- event action
-
getMessage
Returns an event description message. If no message was provided, returns just an empty string.- Returns:
- event description message
- Since:
- 1.2.0
-
getOriginalRevision
public long getOriginalRevision()Returns the original revision from which anew one
is loaded.- Returns:
- an original revision number met in a dumpfile
-
getRevision
public long getRevision()Returns a revision.For
dump
operations it means a next dumped revision. Forload
operations it means a new committed revision.- Returns:
- a revision number
-
getTxnDir
Returns a transaction directoryRelevant for both
SVNAdminClient.doListTransactions()
andSVNAdminClient.doRemoveTransactions()
operations.- Returns:
- txn directory
-
getTxnName
Returns a transaction name.Relevant for both
SVNAdminClient.doListTransactions()
andSVNAdminClient.doRemoveTransactions()
operations.- Returns:
- txn name
-
getPath
Returns an absolute repository path being changed within the current revision load iteration.- Returns:
- repository path
-
getLock
Returns the lock information.- Returns:
- lock info
- Since:
- 1.2.0
-
getError
Returns the error message describing the error occurred while performing an operation.- Returns:
- error message
- Since:
- 1.2.0
-
getDroppedRevisionsCount
public long getDroppedRevisionsCount()Returns the total number of revisions dropped during dumpfiltering.- Returns:
- number of dropped revisions
- Since:
- 1.2.0
-
getDroppedNodesCount
public int getDroppedNodesCount()Returns the total number of nodes dropped during dumpfiltering.- Returns:
- number of dropped nodes
- Since:
- 1.2.0
-
setDroppedRevisionsCount
public void setDroppedRevisionsCount(long droppedRevisionsCount) Sets the total number of revisions dropped during dumpfiltering. This method is not intended for API users.- Parameters:
droppedRevisionsCount
- number of dropped revisions- Since:
- 1.2.0
-
setDroppedNodesCount
public void setDroppedNodesCount(int droppedNodesCount) Sets the total number of nodes dropped during dumpfiltering. This method is not intended for API users.- Parameters:
droppedNodesCount
- number of dropped nodes- Since:
- 1.2.0
-
getShard
public long getShard()Returns the number of the shard packed.- Returns:
- shard number
- Since:
- 1.3
-