Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DARIAH-DE Aggregator Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DARIAH-DE
DARIAH-DE Aggregator Services
Commits
ce23ca2a
Commit
ce23ca2a
authored
11 years ago
by
Thorsten Vitt
Browse files
Options
Downloads
Patches
Plain Diff
Extended logging of the repository provider
parent
38deae28
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/info/textgrid/services/aggregator/util/TextGridRepProvider.java
+9
-7
9 additions, 7 deletions
...extgrid/services/aggregator/util/TextGridRepProvider.java
with
9 additions
and
7 deletions
src/main/java/info/textgrid/services/aggregator/util/TextGridRepProvider.java
+
9
−
7
View file @
ce23ca2a
...
...
@@ -56,7 +56,7 @@ public TextGridRepProvider(final String endpoint) {
private
TextGridRepProvider
()
{
this
(
DEFAULT_CONF_ENDPOINT
);
logger
.
info
(
"-- using default endpoint"
);
logger
.
warning
(
"-- using default endpoint"
);
}
private
static
final
ITextGridRep
instance
=
new
TextGridRepProvider
();
...
...
@@ -153,8 +153,9 @@ public InputStream getContent(final URI uri) throws ObjectNotFoundFault,
@Override
public
SearchClient
getPublicSearchClient
()
{
if
(
publicSearchClient
==
null
)
{
publicSearchClient
=
new
SearchClient
(
getConfValue
(
ConfservClientConstants
.
TG_SEARCH_PUBLIC
));
String
endpoint
=
getConfValue
(
ConfservClientConstants
.
TG_SEARCH_PUBLIC
);
publicSearchClient
=
new
SearchClient
(
endpoint
);
logger
.
info
(
"Instantiated public search client at: "
+
endpoint
);
}
return
publicSearchClient
;
}
...
...
@@ -169,10 +170,11 @@ public SearchClient getPublicSearchClient() {
*/
@Override
public
SearchClient
createPrivateSearchClient
(
final
String
sid
)
{
final
SearchClient
client
=
new
SearchClient
(
getConfValue
(
ConfservClientConstants
.
TG_SEARCH
));
client
.
setSid
(
sid
);
return
client
;
String
confValue
=
getConfValue
(
ConfservClientConstants
.
TG_SEARCH
);
final
SearchClient
endpoint
=
new
SearchClient
(
confValue
);
endpoint
.
setSid
(
sid
);
logger
.
info
(
"Created and configured a private search client at: "
+
endpoint
);
return
endpoint
;
}
public
static
ITextGridRep
getInstance
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment