Review Board 1.7.22


ZOOKEEPER-1346: Handle 4lws and monitoring on separate port (creating jetty server)

Review Request #8094 - Created Nov. 16, 2012 and updated

Skye Wanderman-Milne
trunk
ZOOKEEPER-1346
Reviewers
zookeeper
HenryR, phunt, skamille
zookeeper-git
See my comment in ZOOKEEPER-1346.
unit tests

Ran in standalone mode (only option right now) and manually tried out all the commands/links
src/java/main/org/apache/zookeeper/server/admin/CommandOutputter.java
New File

    
   
1
/**

    
   
2
 * Licensed to the Apache Software Foundation (ASF) under one

    
   
3
 * or more contributor license agreements.  See the NOTICE file

    
   
4
 * distributed with this work for additional information

    
   
5
 * regarding copyright ownership.  The ASF licenses this file

    
   
6
 * to you under the Apache License, Version 2.0 (the

    
   
7
 * "License"); you may not use this file except in compliance

    
   
8
 * with the License.  You may obtain a copy of the License at

    
   
9
 *

    
   
10
 *     http://www.apache.org/licenses/LICENSE-2.0

    
   
11
 *

    
   
12
 * Unless required by applicable law or agreed to in writing, software

    
   
13
 * distributed under the License is distributed on an "AS IS" BASIS,

    
   
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    
   
15
 * See the License for the specific language governing permissions and

    
   
16
 * limitations under the License.

    
   
17
 */

    
   
18

   

    
   
19
package org.apache.zookeeper.server.admin;

    
   
20

   

    
   
21
import java.io.PrintWriter;

    
   
22
import java.util.Map;

    
   
23

   

    
   
24
/**

    
   
25
 * CommandOutputters are used to format the responses from Commands.

    
   
26
 *

    
   
27
 * @see Command

    
   
28
 * @see JettyAdminServer

    
   
29
 */

    
   
30
public interface CommandOutputter {

    
   
31
    /** The MIME type of this output (e.g., "application/json") */

    
   
32
    String getContentType();

    
   
33

   

    
   
34
    void output(Map<String, Object> response, PrintWriter pw);

    
   
35
}
src/java/main/org/apache/zookeeper/server/admin/Commands.java
New File
 
src/java/main/org/apache/zookeeper/server/admin/DummyAdminServer.java
New File
 
src/java/main/org/apache/zookeeper/server/admin/JettyAdminServer.java
New File
 
src/java/main/org/apache/zookeeper/server/admin/JsonOutputter.java
New File
 
src/java/main/org/apache/zookeeper/server/quorum/Leader.java
Revision 8a432ff New Change
 
src/java/main/org/apache/zookeeper/server/quorum/Learner.java
Revision e8d548b New Change
 
src/java/main/org/apache/zookeeper/server/quorum/LearnerSessionTracker.java
Revision 3182419 New Change
 
src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java
Revision 9c17f5e New Change
 
src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerMain.java
Revision deae926 New Change
 
src/java/main/org/apache/zookeeper/server/quorum/ReadOnlyZooKeeperServer.java
Revision d3f1492 New Change
 
src/java/test/org/apache/zookeeper/ZKTestCase.java
Revision 6ecfe8f New Change
 
src/java/test/org/apache/zookeeper/server/PrepRequestProcessorTest.java
Revision 8665bac New Change
 
src/java/test/org/apache/zookeeper/server/admin/CommandsTest.java
New File
 
src/java/test/org/apache/zookeeper/server/quorum/Zab1_0Test.java
Revision 370e7bb New Change
 
  1. src/java/main/org/apache/zookeeper/server/admin/CommandOutputter.java: Loading...
  2. src/java/main/org/apache/zookeeper/server/admin/Commands.java: Loading...
  3. src/java/main/org/apache/zookeeper/server/admin/DummyAdminServer.java: Loading...
  4. src/java/main/org/apache/zookeeper/server/admin/JettyAdminServer.java: Loading...
  5. src/java/main/org/apache/zookeeper/server/admin/JsonOutputter.java: Loading...
  6. src/java/main/org/apache/zookeeper/server/quorum/Leader.java: Loading...
  7. src/java/main/org/apache/zookeeper/server/quorum/Learner.java: Loading...
  8. src/java/main/org/apache/zookeeper/server/quorum/LearnerSessionTracker.java: Loading...
  9. src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java: Loading...
  10. src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerMain.java: Loading...
  11. src/java/main/org/apache/zookeeper/server/quorum/ReadOnlyZooKeeperServer.java: Loading...
  12. src/java/test/org/apache/zookeeper/ZKTestCase.java: Loading...
  13. src/java/test/org/apache/zookeeper/server/PrepRequestProcessorTest.java: Loading...
  14. src/java/test/org/apache/zookeeper/server/admin/CommandsTest.java: Loading...
  15. src/java/test/org/apache/zookeeper/server/quorum/Zab1_0Test.java: Loading...
This diff has been split across 2 pages: < 1 2