forked from alibaba/nacos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE alibaba#7229] Optimize the constants to the logging package fo…
…r the client module. Part 2 (alibaba#7256) * add Constants.java * Optimize the constants to the logging package for the client module
- Loading branch information
Showing
2 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
client/src/main/java/com/alibaba/nacos/client/constant/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright 1999-2018 Alibaba Group Holding Ltd. | ||
* | ||
* Licensed 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 com.alibaba.nacos.client.constant; | ||
|
||
/** | ||
* All the constants. | ||
* | ||
* @author onew | ||
*/ | ||
public class Constants { | ||
|
||
public static class SysEnv { | ||
|
||
public static final String USER_HOME = "user.home"; | ||
|
||
public static final String PROJECT_NAME = "project.name"; | ||
|
||
public static final String JM_LOG_PATH = "JM.LOG.PATH"; | ||
|
||
public static final String JM_SNAPSHOT_PATH = "JM.SNAPSHOT.PATH"; | ||
|
||
} | ||
|
||
public static class Disk { | ||
|
||
public static final String READ_ONLY = "r"; | ||
|
||
public static final String READ_WRITE = "rw"; | ||
} | ||
|
||
public static class HealthCheck { | ||
|
||
public static final String UP = "UP"; | ||
|
||
public static final String DOWN = "DOWN"; | ||
} | ||
|
||
public static class Protocols { | ||
|
||
public static final String HTTP = "http://"; | ||
|
||
public static final String HTTPS = "https://"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters