3
* ====================================================================
4
* Licensed to the Apache Software Foundation (ASF) under one
5
* or more contributor license agreements. See the NOTICE file
6
* distributed with this work for additional information
7
* regarding copyright ownership. The ASF licenses this file
8
* to you under the Apache License, Version 2.0 (the
9
* "License"); you may not use this file except in compliance
10
* with the License. You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
14
* Unless required by applicable law or agreed to in writing,
15
* software distributed under the License is distributed on an
16
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
* KIND, either express or implied. See the License for the
18
* specific language governing permissions and limitations
20
* ====================================================================
24
package org.apache.subversion.javahl;
26
import java.util.EventObject;
27
import org.apache.subversion.javahl.callback.ReposNotifyCallback;
30
* The event passed to the {@link ReposNotifyCallback#onNotify}
31
* API to notify {@link ISVNClient} of relevant events.
33
public class ReposNotifyInformation extends EventObject
35
// Update the serialVersionUID when there is a incompatible change
36
// made to this class. See any of the following, depending upon
38
// http://java.sun.com/j2se/1.3/docs/guide/serialization/spec/version.doc7.html
39
// http://java.sun.com/j2se/1.4/pdf/serial-spec.pdf
40
// http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/version.html#6678
41
// http://java.sun.com/javase/6/docs/platform/serialization/spec/version.html#6678
42
private static final long serialVersionUID = 1L;
45
* The {@link Action} which triggered this event.
47
private Action action;
50
* The revision of the item.
52
private long revision;
57
private String warning;
61
private long newRevision;
63
private long oldRevision;
65
private NodeAction nodeAction;
70
* This constructor is to be used by the native code.
72
* @param action The {@link Action} which triggered this event.
73
* @param revision potentially the revision.
75
public ReposNotifyInformation(Action action, long revision, String warning,
76
long shard, long newRevision,
77
long oldRevision, NodeAction nodeAction,
82
this.revision = revision;
83
this.warning = warning;
85
this.newRevision = newRevision;
86
this.oldRevision = oldRevision;
87
this.nodeAction = nodeAction;
92
* @return The {@link Action} which triggered this event.
94
public Action getAction()
100
* @return The revision for the item.
102
public long getRevision()
108
* @return The warning text.
110
public String getWarning()
115
public long getShard()
120
public long getNewRevision()
125
public long getOldRevision()
130
public NodeAction getNodeAction()
135
public String getPath()
141
* The type of action triggering the notification
145
/** A warning message is waiting. */
148
/** A revision has finished being dumped. */
151
/** A revision has finished being verified. */
154
/** packing of an FSFS shard has commenced */
157
/** packing of an FSFS shard is completed */
160
/** packing of the shard revprops has commenced */
161
pack_shard_start_revprop,
163
/** packing of the shard revprops has completed */
164
pack_shard_end_revprop,
166
/** A revision has begun loading */
169
/** A revision has finished loading */
172
/** A node has begun loading */
175
/** A node has finished loading */
178
/** A copied node has been encountered */
181
/** Mergeinfo has been normalized */
182
load_normalized_mergeinfo,
184
/** The operation has acquired a mutex for the repo. */
187
/** Recover has started. */
190
/** Upgrade has started. */
194
public enum NodeAction