File tree Expand file tree Collapse file tree
apis/com.dbeaver.datadam.share.api
src/main/java/com/dbeaver/datadam/share/api/tracking Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ Bundle-Version: 0.0.17.qualifier
77Bundle-RequiredExecutionEnvironment : JavaSE-21
88Export-Package : com.dbeaver.datadam.share.api.exception,
99 com.dbeaver.datadam.share.api.model,
10- com.dbeaver.datadam.share.api.service,
10+ com.dbeaver.datadam.share.api.service,
11+ com.dbeaver.datadam.share.api.tracking,
1112 com.dbeaver.datadam.share.api.utils
1213Bundle-ActivationPolicy : lazy
1314Require-Bundle : org.jkiss.utils
Original file line number Diff line number Diff line change 1+ /*
2+ * DBeaver - Universal Database Manager
3+ * Copyright (C) 2010-2026 DBeaver Corp
4+ *
5+ * All Rights Reserved.
6+ *
7+ * NOTICE: All information contained herein is, and remains
8+ * the property of DBeaver Corp and its suppliers, if any.
9+ * The intellectual and technical concepts contained
10+ * herein are proprietary to DBeaver Corp and its suppliers
11+ * and may be covered by U.S. and Foreign Patents,
12+ * patents in process, and are protected by trade secret or copyright law.
13+ * Dissemination of this information or reproduction of this material
14+ * is strictly forbidden unless prior written permission is obtained
15+ * from DBeaver Corp.
16+ */
17+ package com .dbeaver .datadam .share .api .tracking ;
18+
19+ import org .jkiss .code .NotNull ;
20+ import org .jkiss .code .Nullable ;
21+
22+ public record DDClientInfo (
23+ @ NotNull String clientId ,
24+ @ Nullable String workspaceId ,
25+ @ Nullable String product ,
26+ @ Nullable String version ,
27+ @ Nullable String os ,
28+ @ Nullable String osVersion ,
29+ @ Nullable String macAddress ,
30+ @ Nullable String ipAddress
31+ ) {
32+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * DBeaver - Universal Database Manager
3+ * Copyright (C) 2010-2026 DBeaver Corp
4+ *
5+ * All Rights Reserved.
6+ *
7+ * NOTICE: All information contained herein is, and remains
8+ * the property of DBeaver Corp and its suppliers, if any.
9+ * The intellectual and technical concepts contained
10+ * herein are proprietary to DBeaver Corp and its suppliers
11+ * and may be covered by U.S. and Foreign Patents,
12+ * patents in process, and are protected by trade secret or copyright law.
13+ * Dissemination of this information or reproduction of this material
14+ * is strictly forbidden unless prior written permission is obtained
15+ * from DBeaver Corp.
16+ */
17+ package com .dbeaver .datadam .share .api .tracking ;
18+
19+ import org .jkiss .code .NotNull ;
20+ import org .jkiss .code .Nullable ;
21+
22+ public record DDTracking (
23+ @ NotNull String trackingId ,
24+ boolean online ,
25+ @ NotNull String startTime ,
26+ @ Nullable String stopTime
27+ ) {
28+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * DBeaver - Universal Database Manager
3+ * Copyright (C) 2010-2026 DBeaver Corp
4+ *
5+ * All Rights Reserved.
6+ *
7+ * NOTICE: All information contained herein is, and remains
8+ * the property of DBeaver Corp and its suppliers, if any.
9+ * The intellectual and technical concepts contained
10+ * herein are proprietary to DBeaver Corp and its suppliers
11+ * and may be covered by U.S. and Foreign Patents,
12+ * patents in process, and are protected by trade secret or copyright law.
13+ * Dissemination of this information or reproduction of this material
14+ * is strictly forbidden unless prior written permission is obtained
15+ * from DBeaver Corp.
16+ */
17+ package com .dbeaver .datadam .share .api .tracking ;
18+
19+ public final class DDTrackingEndpoints {
20+ public static final String TRACKING = "/tracking/track" ;
21+ public static final String METERING = "/metering/track" ;
22+ public static final String START = "/start" ;
23+ public static final String STOP = "/{trackingId}/stop" ;
24+
25+ private DDTrackingEndpoints () {
26+ }
27+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * DBeaver - Universal Database Manager
3+ * Copyright (C) 2010-2026 DBeaver Corp
4+ *
5+ * All Rights Reserved.
6+ *
7+ * NOTICE: All information contained herein is, and remains
8+ * the property of DBeaver Corp and its suppliers, if any.
9+ * The intellectual and technical concepts contained
10+ * herein are proprietary to DBeaver Corp and its suppliers
11+ * and may be covered by U.S. and Foreign Patents,
12+ * patents in process, and are protected by trade secret or copyright law.
13+ * Dissemination of this information or reproduction of this material
14+ * is strictly forbidden unless prior written permission is obtained
15+ * from DBeaver Corp.
16+ */
17+ package com .dbeaver .datadam .share .api .tracking ;
18+
19+ import org .jkiss .dbeaver .DBException ;
20+
21+ public class DDTrackingNotFoundException extends DBException {
22+
23+ public DDTrackingNotFoundException () {
24+ super ("Tracking session not found" );
25+ }
26+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * DBeaver - Universal Database Manager
3+ * Copyright (C) 2010-2026 DBeaver Corp
4+ *
5+ * All Rights Reserved.
6+ *
7+ * NOTICE: All information contained herein is, and remains
8+ * the property of DBeaver Corp and its suppliers, if any.
9+ * The intellectual and technical concepts contained
10+ * herein are proprietary to DBeaver Corp and its suppliers
11+ * and may be covered by U.S. and Foreign Patents,
12+ * patents in process, and are protected by trade secret or copyright law.
13+ * Dissemination of this information or reproduction of this material
14+ * is strictly forbidden unless prior written permission is obtained
15+ * from DBeaver Corp.
16+ */
17+ package com .dbeaver .datadam .share .api .tracking ;
18+
19+ import org .jkiss .code .NotNull ;
20+ import org .jkiss .dbeaver .DBException ;
21+
22+ /**
23+ * Client tracking operations.
24+ */
25+ public interface DDTrackingService {
26+
27+ @ NotNull
28+ DDTracking start (@ NotNull DDClientInfo client ) throws DBException ;
29+
30+ @ NotNull
31+ DDTracking stop (@ NotNull String trackingId ) throws DBException ;
32+ }
You can’t perform that action at this time.
0 commit comments