HBASE-25325 Remove unused class ClusterSchemaException (#2704)
Signed-off-by: Guanghao Zhang <zghao@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
4affae5938
commit
31d880b5dd
|
@ -18,10 +18,10 @@
|
|||
package org.apache.hadoop.hbase.master;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InterruptedIOException;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.hadoop.hbase.NamespaceDescriptor;
|
||||
import org.apache.hadoop.hbase.ServiceNotRunningException;
|
||||
import org.apache.hadoop.hbase.master.procedure.ProcedurePrepareLatch;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
import org.apache.hadoop.hbase.util.NonceKey;
|
||||
|
@ -82,8 +82,7 @@ public interface ClusterSchema {
|
|||
* @param nonceKey A unique identifier for this operation from the client or process.
|
||||
* @param latch A latch to block on for precondition validation
|
||||
* @return procedure id
|
||||
* @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException}
|
||||
* as well as {@link IOException}
|
||||
* @throws IOException if service is not running see {@link ServiceNotRunningException}
|
||||
*/
|
||||
long createNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
||||
throws IOException;
|
||||
|
@ -93,8 +92,7 @@ public interface ClusterSchema {
|
|||
* @param nonceKey A unique identifier for this operation from the client or process.
|
||||
* @param latch A latch to block on for precondition validation
|
||||
* @return procedure id
|
||||
* @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException}
|
||||
* as well as {@link IOException}
|
||||
* @throws IOException if service is not running see {@link ServiceNotRunningException}
|
||||
*/
|
||||
long modifyNamespace(NamespaceDescriptor descriptor, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
||||
throws IOException;
|
||||
|
@ -105,8 +103,7 @@ public interface ClusterSchema {
|
|||
* @param nonceKey A unique identifier for this operation from the client or process.
|
||||
* @param latch A latch to block on for precondition validation
|
||||
* @return procedure id
|
||||
* @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException}
|
||||
* as well as {@link IOException}
|
||||
* @throws IOException if service is not running see {@link ServiceNotRunningException}
|
||||
*/
|
||||
long deleteNamespace(String name, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
||||
throws IOException;
|
||||
|
@ -115,8 +112,7 @@ public interface ClusterSchema {
|
|||
* Get a Namespace
|
||||
* @param name Name of the Namespace
|
||||
* @return Namespace descriptor for <code>name</code>
|
||||
* @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException}
|
||||
* as well as {@link IOException}
|
||||
* @throws IOException if namespace does not exist
|
||||
*/
|
||||
// No Future here because presumption is that the request will go against cached metadata so
|
||||
// return immediately -- no need of running a Procedure.
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
/**
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.hadoop.hbase.master;
|
||||
|
||||
import org.apache.hadoop.hbase.HBaseIOException;
|
||||
import org.apache.yetus.audience.InterfaceAudience;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@InterfaceAudience.Private
|
||||
public class ClusterSchemaException extends HBaseIOException {
|
||||
public ClusterSchemaException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public ClusterSchemaException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public ClusterSchemaException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue