本文整理了Java中hudson.model.Messages.UpdateCenter_Status_CheckingJavaNet()
方法的一些代码示例,展示了Messages.UpdateCenter_Status_CheckingJavaNet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages.UpdateCenter_Status_CheckingJavaNet()
方法的具体详情如下:
包路径:hudson.model.Messages
类名称:Messages
方法名:UpdateCenter_Status_CheckingJavaNet
[英]Checking update center connectivity
[中]检查更新中心连接
代码示例来源:origin: jenkinsci/jenkins
statuses.add(Messages.UpdateCenter_Status_CheckingJavaNet());
代码示例来源:origin: hudson/hudson-2.x
public void run() {
LOGGER.fine("Doing a connectivity check");
try {
String connectionCheckUrl = site.getConnectionCheckUrl();
if (connectionCheckUrl!=null) {
statuses.add(Messages.UpdateCenter_Status_CheckingInternet());
try {
config.checkConnection(this, connectionCheckUrl);
} catch (IOException e) {
if(e.getMessage().contains("Connection timed out")) {
// Google can't be down, so this is probably a proxy issue
statuses.add(Messages.UpdateCenter_Status_ConnectionFailed(connectionCheckUrl));
return;
}
}
}
statuses.add(Messages.UpdateCenter_Status_CheckingJavaNet());
config.checkUpdateCenter(this, site.getUrl());
statuses.add(Messages.UpdateCenter_Status_Success());
} catch (UnknownHostException e) {
statuses.add(Messages.UpdateCenter_Status_UnknownHostException(e.getMessage()));
addStatus(e);
} catch (IOException e) {
statuses.add(Functions.printThrowable(e));
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public void run() {
LOGGER.fine("Doing a connectivity check");
try {
String connectionCheckUrl = site.getConnectionCheckUrl();
if (connectionCheckUrl!=null) {
statuses.add(Messages.UpdateCenter_Status_CheckingInternet());
try {
config.checkConnection(this, connectionCheckUrl);
} catch (IOException e) {
if(e.getMessage().contains("Connection timed out")) {
// Google can't be down, so this is probably a proxy issue
statuses.add(Messages.UpdateCenter_Status_ConnectionFailed(connectionCheckUrl));
return;
}
}
}
statuses.add(Messages.UpdateCenter_Status_CheckingJavaNet());
config.checkUpdateCenter(this, site.getUrl());
statuses.add(Messages.UpdateCenter_Status_Success());
} catch (UnknownHostException e) {
statuses.add(Messages.UpdateCenter_Status_UnknownHostException(e.getMessage()));
addStatus(e);
} catch (IOException e) {
statuses.add(Functions.printThrowable(e));
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public void run() {
LOGGER.fine("Doing a connectivity check");
try {
String connectionCheckUrl = site.getConnectionCheckUrl();
if (connectionCheckUrl != null) {
statuses.add(Messages.UpdateCenter_Status_CheckingInternet());
try {
config.checkConnection(this, connectionCheckUrl);
} catch (IOException e) {
if (e.getMessage().contains("Connection timed out")) {
// Google can't be down, so this is probably a proxy issue
statuses.add(Messages.UpdateCenter_Status_ConnectionFailed(connectionCheckUrl));
return;
}
}
}
statuses.add(Messages.UpdateCenter_Status_CheckingJavaNet());
config.checkUpdateCenter(this, site.getUrl());
statuses.add(Messages.UpdateCenter_Status_Success());
} catch (UnknownHostException e) {
statuses.add(Messages.UpdateCenter_Status_UnknownHostException(e.getMessage()));
addStatus(e);
} catch (IOException e) {
statuses.add(Functions.printThrowable(e));
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
statuses.add(Messages.UpdateCenter_Status_CheckingJavaNet());
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public void run() {
LOGGER.fine("Doing a connectivity check");
try {
String connectionCheckUrl = site.getConnectionCheckUrl();
if (connectionCheckUrl!=null) {
statuses.add(Messages.UpdateCenter_Status_CheckingInternet());
try {
config.checkConnection(this, connectionCheckUrl);
} catch (IOException e) {
if(e.getMessage().contains("Connection timed out")) {
// Google can't be down, so this is probably a proxy issue
statuses.add(Messages.UpdateCenter_Status_ConnectionFailed(connectionCheckUrl));
return;
}
}
}
statuses.add(Messages.UpdateCenter_Status_CheckingJavaNet());
config.checkUpdateCenter(this, site.getUrl());
statuses.add(Messages.UpdateCenter_Status_Success());
} catch (UnknownHostException e) {
statuses.add(Messages.UpdateCenter_Status_UnknownHostException(e.getMessage()));
addStatus(e);
} catch (IOException e) {
statuses.add(Functions.printThrowable(e));
}
}
内容来源于网络,如有侵权,请联系作者删除!