@Component public class DefaultGitHubClient extends Object implements GitHubClient
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultGitHubClient.RedirectedStatus |
| Modifier and Type | Field and Description |
|---|---|
static String |
RETRY_AFTER |
static String |
X_POLL_INTERVAL |
static String |
X_RATE_LIMIT_LIMIT |
static String |
X_RATE_LIMIT_REMAINING |
static String |
X_RATE_LIMIT_RESET |
| Constructor and Description |
|---|
DefaultGitHubClient(GitHubSettings settings,
com.capitalone.dashboard.client.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
DefaultGitHubClient.RedirectedStatus |
checkForRedirectedRepo(GitHubRepo repo) |
void |
fireGraphQL(GitHubRepo repo,
boolean firstRun,
Map<Long,String> existingPRMap,
Map<Long,String> existingIssueMap) |
protected Map<String,String> |
getAuthorTypeMap() |
ChangeRepoResponse |
getChangedRepos(long lastEventId,
long lastEventTimeStamp) |
List<com.capitalone.dashboard.model.Commit> |
getCommits() |
List<com.capitalone.dashboard.model.GitRequest> |
getIssues() |
String |
getLDAPDN(GitHubRepo repo,
String user) |
protected Map<String,String> |
getLdapMap() |
List<com.capitalone.dashboard.model.GitRequest> |
getPulls() |
GitHubRateLimit |
getRateLimit(GitHubRepo repo)
Deprecated.
use isUnderRateLimit() instead.
|
long |
getRepoOffsetTime(GitHubRepo repo) |
boolean |
isUnderRateLimit() |
protected void |
setAuthorTypeMap(Map<String,String> authorTypeMap) |
protected void |
setLdapMap(Map<String,String> ldapMap) |
protected void |
sleep(long timeToWait) |
public static final String X_RATE_LIMIT_LIMIT
public static final String X_RATE_LIMIT_REMAINING
public static final String X_RATE_LIMIT_RESET
public static final String RETRY_AFTER
public static final String X_POLL_INTERVAL
@Autowired public DefaultGitHubClient(GitHubSettings settings, com.capitalone.dashboard.client.RestClient restClient)
public List<com.capitalone.dashboard.model.Commit> getCommits()
getCommits in interface GitHubClientpublic List<com.capitalone.dashboard.model.GitRequest> getPulls()
getPulls in interface GitHubClientpublic List<com.capitalone.dashboard.model.GitRequest> getIssues()
getIssues in interface GitHubClientpublic ChangeRepoResponse getChangedRepos(long lastEventId, long lastEventTimeStamp) throws MalformedURLException, com.capitalone.dashboard.misc.HygieiaException
getChangedRepos in interface GitHubClientMalformedURLExceptioncom.capitalone.dashboard.misc.HygieiaExceptionpublic void fireGraphQL(GitHubRepo repo, boolean firstRun, Map<Long,String> existingPRMap, Map<Long,String> existingIssueMap) throws MalformedURLException, com.capitalone.dashboard.misc.HygieiaException
fireGraphQL in interface GitHubClientMalformedURLExceptioncom.capitalone.dashboard.misc.HygieiaExceptionpublic DefaultGitHubClient.RedirectedStatus checkForRedirectedRepo(GitHubRepo repo) throws MalformedURLException, com.capitalone.dashboard.misc.HygieiaException
MalformedURLExceptioncom.capitalone.dashboard.misc.HygieiaExceptionpublic boolean isUnderRateLimit()
isUnderRateLimit in interface GitHubClient@Deprecated public GitHubRateLimit getRateLimit(GitHubRepo repo)
getRateLimit in interface GitHubClientpublic String getLDAPDN(GitHubRepo repo, String user)
getLDAPDN in interface GitHubClientpublic long getRepoOffsetTime(GitHubRepo repo)
getRepoOffsetTime in interface GitHubClientprotected void sleep(long timeToWait)
Copyright © 2021 Hygieia. All rights reserved.