ManagedRepositoryMBean.java
7.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.granite.jmx.annotation.Description
* com.adobe.granite.jmx.annotation.Impact
* com.adobe.granite.jmx.annotation.Name
* com.adobe.granite.jmx.annotation.OpenTypeInfo
* javax.jcr.RepositoryException
*/
package com.day.crx.sling.server.jmx;
import com.adobe.granite.jmx.annotation.Description;
import com.adobe.granite.jmx.annotation.Impact;
import com.adobe.granite.jmx.annotation.Name;
import com.adobe.granite.jmx.annotation.OpenTypeInfo;
import com.day.crx.sling.server.jmx.ClusterNodeInfoTabular;
import com.day.crx.sling.server.jmx.SimpleMap;
import javax.jcr.RepositoryException;
import javax.management.openmbean.TabularData;
@Description(value="CRX Repository")
public interface ManagedRepositoryMBean {
@Description(value="The name of the repository")
public String getName();
@Description(value="The version of the repository")
public String getVersion();
@Description(value="The name of the customer the repository is licensed to")
public String getCustomerName();
public String getLicenseKey();
public String getHomeDir();
public Long getAvailableDiskSpace();
public Integer getMaximumNumberOfOpenFiles();
public Boolean getSessionTracker();
public void setSessionTracker(Boolean var1);
@OpenTypeInfo(value=SimpleMap.class)
@Description(value="The repository descriptors")
public TabularData getDescriptors();
@Description(value="The workspaces currently available in the repository")
public String[] getWorkspaceNames();
@Impact(value=1)
@Description(value="Create a new workspace with the give name.")
public void createWorkspace(@Name(value="name") @Description(value="The name of the new workspace") String var1) throws RepositoryException;
@Description(value="Number of milliseconds to sleep after each ten nodes scanned")
public Integer getDataStoreGarbageCollectionDelay();
public void setDataStoreGarbageCollectionDelay(Integer var1);
@Impact(value=1)
@Description(value="Runs data store garbage collection")
public void runDataStoreGarbageCollection(@Name(value="delete") @Description(value="Flag to delete all collected garbage") Boolean var1) throws RepositoryException;
@Description(value="The extra delay (in milliseconds) added between steps of the backup process")
public Integer getBackupDelay();
public void setBackupDelay(Integer var1);
@Description(value="Is a backup currently in progress?")
public Boolean getBackupInProgress();
@Description(value="Progress of the currently running backup process")
public Integer getBackupProgress();
@Description(value="The path of the currently running backup process")
public String getCurrentBackupTarget();
@Description(value="Was the last backup successful?")
public Boolean getBackupWasSuccessful();
@Description(value="The status message of the last backup")
public String getBackupResult();
@Impact(value=1)
@Description(value="Starts the repository backup process")
public void startBackup(@Name(value="target") @Description(value="Optional target directory or file (with .zip extension)") String var1) throws RepositoryException;
@Impact(value=1)
@Description(value="Starts the repository backup process")
public void startBackup(@Name(value="installDir") @Description(value="Optional CRX installation directory") String var1, @Name(value="target") @Description(value="Optional target directory or file (with .zip extension)") String var2) throws RepositoryException;
@Impact(value=1)
@Description(value="Cancels the current backup process")
public void cancelBackup();
@Impact(value=1)
@Description(value="Blocks all repository writes")
public void blockRepositoryWrites() throws RepositoryException;
@Impact(value=1)
@Description(value="Unblocks all repository writes")
public void unblockRepositoryWrites() throws RepositoryException;
@Description(value="The timestamp of when Tar PM optimization was started, or 0 if it's currently not running")
public Long getTarOptimizationRunningSince();
@Description(value="Number of milliseconds to sleep after optimizing one transaction")
public Integer getTarOptimizationDelay();
public void setTarOptimizationDelay(Integer var1);
@Impact(value=1)
@Description(value="Start Tar PM optimization")
public void startTarOptimization() throws RepositoryException;
@Impact(value=1)
@Description(value="Stop Tar PM optimization")
public void stopTarOptimization() throws RepositoryException;
@Impact(value=1)
@Description(value="Tar PM index merge may improve the Tar PM performance")
public void tarIndexMerge(@Name(value="background") @Description(value="Merge in the background") Boolean var1) throws RepositoryException;
@OpenTypeInfo(value=SimpleMap.class)
@Description(value="Cluster properties")
public TabularData getClusterProperties();
@OpenTypeInfo(value=ClusterNodeInfoTabular.class)
@Description(value="The identifiers and hostnames of all cluster nodes")
public TabularData getClusterNodes();
@Description(value="Identifier of this cluster")
public String getClusterId();
@Description(value="Identifier of the master node")
public String getClusterMasterId();
@Description(value="Identifier of this cluster node")
public String getClusterNodeId();
@Description(value="The instance revision of this cluster node")
public Long getClusterNodeRevision();
@Impact(value=1)
@Description(value="Turns this node into the master of the cluster")
public void becomeClusterMaster() throws RepositoryException;
@Impact(value=1)
@Description(value="Turns this repository into a slave of the given cluster")
public void joinCluster(@Name(value="master") @Description(value="URL of the cluster master") String var1, @Name(value="username") @Description(value="Username of a cluster administrator") String var2, @Name(value="password") @Description(value="Password of a cluster administrator") String var3) throws Exception;
@Impact(value=1)
@Description(value="Traverses the structure of the repository")
public String traversalCheck(@Name(value="rootNode") @Description(value="The start path") String var1, @Name(value="logEach") @Description(value="Log each node") Boolean var2, @Name(value="fixInconsistencies") @Description(value="Fixes inconsistencies automatically") Boolean var3);
@Impact(value=1)
@Description(value="Finds inconsistent nodes")
public String consistencyCheck(@Name(value="rootNode") @Description(value="The start path") String var1, @Name(value="fixInconsistencies") @Description(value="Fixes inconsistencies automatically") Boolean var2);
@Impact(value=1)
@Description(value="Restores the current state to the provided source, only works on the Tar NodeStore")
public void nodeStoreRestore(@Name(value="Source") @Description(value="Reference directory for the restore operation") String var1) throws RepositoryException;
@Impact(value=1)
@Description(value="Creates a new checkpoint of the latest root of the tree.")
public String checkpoint(@Name(value="lifetime") @Description(value="lifetime time (in milliseconds, > 0) that the checkpoint should remain available") Long var1);
}