Author: stefanegli
Date: Tue Sep 22 12:41:31 2015
New Revision: 1704609
URL: http://svn.apache.org/viewvc?rev=1704609&view=rev
Log:
SLING-5030 : better handling of pseudo-network-partitioning : replace isolated
mode with (larger) TOPOLOGY_CHANGING phase - added missing exception
Added:
sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/UndefinedClusterViewException.java
(with props)
Added:
sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/UndefinedClusterViewException.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/UndefinedClusterViewException.java?rev=1704609&view=auto
==============================================================================
---
sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/UndefinedClusterViewException.java
(added)
+++
sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/UndefinedClusterViewException.java
Tue Sep 22 12:41:31 2015
@@ -0,0 +1,39 @@
+/*
+ * 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.sling.discovery.impl.cluster;
+
+/**
+ * This exception is thrown when the ClusterViewService
+ * does not have a cluster view that is valid.
+ * That can either be because it cannot access the repository
+ * (login or other repository exception) or that there is
+ * no established view yet at all (not yet voted case) -
+ * or that there is an established view but it doesn't include
+ * the local instance (isolated case)
+ */
+public class UndefinedClusterViewException extends Exception {
+
+ public UndefinedClusterViewException() {
+ super();
+ }
+
+ public UndefinedClusterViewException(String msg) {
+ super(msg);
+ }
+}
Propchange:
sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/UndefinedClusterViewException.java
------------------------------------------------------------------------------
svn:eol-style = native