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
e636c8ea
Commit
e636c8ea
authored
Jun 08, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc change
parent
03a5783a
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 @
e636c8ea
## I. Prerequisite
## 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:
Apollo client requires
`AppId`
and
`Environment`
information available to function properly, so please read the following and configure them properly:
#### 1. AppId
#### 1. AppId
...
@@ -45,7 +49,7 @@ Currently, `env` allows the following values (case-insensitive):
...
@@ -45,7 +49,7 @@ Currently, `env` allows the following values (case-insensitive):
*
UAT
*
UAT
*
PRO
*
PRO
### I.II Optional Setup
### I.II
I
Optional Setup
#### Cluster
#### Cluster
...
...
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/ConfigRepository.java
View file @
e636c8ea
...
@@ -14,7 +14,7 @@ public interface ConfigRepository {
...
@@ -14,7 +14,7 @@ public interface ConfigRepository {
/**
/**
* Set the fallback repo for this repository.
* Set the fallback repo for this repository.
* @param upstreamConfigRepository the
fallback
repo
* @param upstreamConfigRepository the
upstream
repo
*/
*/
public
void
setUpstreamRepository
(
ConfigRepository
upstreamConfigRepository
);
public
void
setUpstreamRepository
(
ConfigRepository
upstreamConfigRepository
);
...
...
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/LocalFileConfigRepository.java
View file @
e636c8ea
...
@@ -227,12 +227,12 @@ public class LocalFileConfigRepository extends AbstractConfigRepository
...
@@ -227,12 +227,12 @@ public class LocalFileConfigRepository extends AbstractConfigRepository
}
catch
(
IOException
ex
)
{
}
catch
(
IOException
ex
)
{
ApolloConfigException
exception
=
ApolloConfigException
exception
=
new
ApolloConfigException
(
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
);
Cat
.
logError
(
exception
);
transaction
.
setStatus
(
exception
);
transaction
.
setStatus
(
exception
);
logger
.
warn
(
logger
.
warn
(
"Unable to create local config cache directory {}, reason: {}. Will not able to cache config file."
,
"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
{
}
finally
{
transaction
.
complete
();
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