Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Apache ZooKeeper 3.7.0 Server Source Code
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination.
Apache ZooKeeper Server Source Code files are provided in the source packge (apache-zookeeper-3.7.0.tar.gz). You can download it at Apache ZooKeeper Website.
You can also browse Apache ZooKeeper Server Source Code below:
✍: FYIcenter.com
⏎ org/apache/zookeeper/ZooDefs.java
/* * 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.zookeeper; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.util.ArrayList; import java.util.Collections; import org.apache.yetus.audience.InterfaceAudience; import org.apache.zookeeper.data.ACL; import org.apache.zookeeper.data.Id; @InterfaceAudience.Public public class ZooDefs { public static final String CONFIG_NODE = "/zookeeper/config"; public static final String ZOOKEEPER_NODE_SUBTREE = "/zookeeper/"; @InterfaceAudience.Public public interface OpCode { int notification = 0; int create = 1; int delete = 2; int exists = 3; int getData = 4; int setData = 5; int getACL = 6; int setACL = 7; int getChildren = 8; int sync = 9; int ping = 11; int getChildren2 = 12; int check = 13; int multi = 14; int create2 = 15; int reconfig = 16; int checkWatches = 17; int removeWatches = 18; int createContainer = 19; int deleteContainer = 20; int createTTL = 21; int multiRead = 22; int auth = 100; int setWatches = 101; int sasl = 102; int getEphemerals = 103; int getAllChildrenNumber = 104; int setWatches2 = 105; int addWatch = 106; int whoAmI = 107; int createSession = -10; int closeSession = -11; int error = -1; } @InterfaceAudience.Public public interface Perms { int READ = 1 << 0; int WRITE = 1 << 1; int CREATE = 1 << 2; int DELETE = 1 << 3; int ADMIN = 1 << 4; int ALL = READ | WRITE | CREATE | DELETE | ADMIN; } @InterfaceAudience.Public public interface Ids { /** * This Id represents anyone. */ Id ANYONE_ID_UNSAFE = new Id("world", "anyone"); /** * This Id is only usable to set ACLs. It will get substituted with the * Id's the client authenticated with. */ Id AUTH_IDS = new Id("auth", ""); /** * This is a completely open ACL . */ @SuppressFBWarnings(value = "MS_MUTABLE_COLLECTION", justification = "Cannot break API") ArrayList<ACL> OPEN_ACL_UNSAFE = new ArrayList<ACL>(Collections.singletonList(new ACL(Perms.ALL, ANYONE_ID_UNSAFE))); /** * This ACL gives the creators authentication id's all permissions. */ @SuppressFBWarnings(value = "MS_MUTABLE_COLLECTION", justification = "Cannot break API") ArrayList<ACL> CREATOR_ALL_ACL = new ArrayList<ACL>(Collections.singletonList(new ACL(Perms.ALL, AUTH_IDS))); /** * This ACL gives the world the ability to read. */ @SuppressFBWarnings(value = "MS_MUTABLE_COLLECTION", justification = "Cannot break API") ArrayList<ACL> READ_ACL_UNSAFE = new ArrayList<ACL>(Collections.singletonList(new ACL(Perms.READ, ANYONE_ID_UNSAFE))); } @InterfaceAudience.Public public interface AddWatchModes { int persistent = 0; // matches AddWatchMode.PERSISTENT int persistentRecursive = 1; // matches AddWatchMode.PERSISTENT_RECURSIVE } public static final String[] opNames = {"notification", "create", "delete", "exists", "getData", "setData", "getACL", "setACL", "getChildren", "getChildren2", "getMaxChildren", "setMaxChildren", "ping", "reconfig", "getConfig"}; }
⏎ org/apache/zookeeper/ZooDefs.java
Or download all of them as a single archive file:
File name: zookeeper-server-3.7.0-fyi.zip File size: 871011 bytes Release date: 2021-05-17 Download
⇒ Apache ZooKeeper 3.7.0 Jute Source Code
⇐ Download Apache ZooKeeper 3.7.0 Source Package
2022-11-16, 13685👍, 0💬
Popular Posts:
JDK 17 java.xml.jmod is the JMOD file for JDK 17 XML (eXtensible Markup Language) module. JDK 17 XML...
Apache Ant is a Java-based build tool. In theory, it is kind of like make, without make's wrinkles. ...
JDK 11 jdk.rmic.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) Compiler Tool tool, ...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...