Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
a0bee9d4
Commit
a0bee9d4
authored
Jun 08, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #257 from nobodyiam/client-refactor-misc
misc change
parents
03a5783a
e636c8ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
README.md
apollo-client/README.md
+6
-2
ConfigRepository.java
...om/ctrip/framework/apollo/internals/ConfigRepository.java
+1
-1
LocalFileConfigRepository.java
...framework/apollo/internals/LocalFileConfigRepository.java
+2
-2
No files found.
apollo-client/README.md
View file @
a0bee9d4
## I. Prerequisite
### I.I Mandatory Setup
### I.I Requirements
*
Java: 1.7+
### I.II Mandatory Setup
Apollo client requires
`AppId`
and
`Environment`
information available to function properly, so please read the following and configure them properly:
#### 1. AppId
...
...
@@ -45,7 +49,7 @@ Currently, `env` allows the following values (case-insensitive):
*
UAT
*
PRO
### I.II Optional Setup
### I.II
I
Optional Setup
#### Cluster
...
...
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/ConfigRepository.java
View file @
a0bee9d4
...
...
@@ -14,7 +14,7 @@ public interface ConfigRepository {
/**
* Set the fallback repo for this repository.
* @param upstreamConfigRepository the
fallback
repo
* @param upstreamConfigRepository the
upstream
repo
*/
public
void
setUpstreamRepository
(
ConfigRepository
upstreamConfigRepository
);
...
...
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/LocalFileConfigRepository.java
View file @
a0bee9d4
...
...
@@ -227,12 +227,12 @@ public class LocalFileConfigRepository extends AbstractConfigRepository
}
catch
(
IOException
ex
)
{
ApolloConfigException
exception
=
new
ApolloConfigException
(
String
.
format
(
"Create local config directory %s failed"
,
baseDir
),
ex
);
String
.
format
(
"Create local config directory %s failed"
,
baseDir
.
getAbsolutePath
()
),
ex
);
Cat
.
logError
(
exception
);
transaction
.
setStatus
(
exception
);
logger
.
warn
(
"Unable to create local config cache directory {}, reason: {}. Will not able to cache config file."
,
baseDir
,
ExceptionUtil
.
getDetailMessage
(
ex
));
baseDir
.
getAbsolutePath
()
,
ExceptionUtil
.
getDetailMessage
(
ex
));
}
finally
{
transaction
.
complete
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment