资源简介
Cloudera Manager API调用实例(JAVA版),已通过测试可用。Cloudera Manager API调用实例(JAVA版),已通过测试可用。
代码片段和文件信息
// Licensed to Cloudera Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera Inc. licenses this file
// to you under the Apache License Version 2.0 (the
// “License“); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing software
// distributed under the License is distributed on an “AS IS“ BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.cloudera.api;
import com.google.common.base.objects;
import com.google.common.collect.Lists;
import java.util.List;
import javax.xml.bind.annotation.xmlElement;
import javax.xml.bind.annotation.xmlElementWrapper;
import javax.xml.bind.annotation.xmlRootElement;
import javax.xml.bind.annotation.xmlType;
/**
* View object for errors. We expose the error message and messages of
* any nested throwables.
*/
@xmlRootElement(name = “error“)
@xmlType(propOrder = {“message“ “causes“})
public class ApiErrorMessage {
private String message;
private List causes;
/**
* Empty constructor for JAX-B.
*/
public ApiErrorMessage() {
this.message = null;
this.causes = null;
}
/**
* Constructs a new ApiErrorMessage that provides information about
* the given error. Its message and any underlying causes are saved.
*
* @param t The error being wrapped.
*/
public ApiErrorMessage(Throwable t) {
this.message = t.getMessage();
List causeMessages = Lists.newlinkedList();
if (t.getCause() != null) {
do {
t = t.getCause();
String errorMessage = t.getMessage();
if (errorMessage != null) {
causeMessages.add(errorMessage);
}
} while (t.getCause() != null);
}
if (!causeMessages.isEmpty()) {
causes = causeMessages;
} else {
causes = null;
}
}
/**
* Constructs a new ApiErrorMessage with the given error message and no
* causes.
*
* @param message The error message.
*/
public ApiErrorMessage(String message) {
this.message = message;
this.causes = null;
}
public String toString() {
return objects.toStringHelper(this).addValue(message).toString();
}
@xmlElement
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@xmlElementWrapper
public List getCauses() {
return causes;
}
public void setCauses(List causes) {
this.causes = causes;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-31 11:33 javacmapi\
文件 18001 2019-03-29 17:44 javacmapi\.classpath
文件 572 2019-03-29 17:33 javacmapi\.project
目录 0 2019-03-31 11:33 javacmapi\.settings\
文件 119 2019-03-29 17:34 javacmapi\.settings\org.eclipse.core.resources.prefs
文件 243 2019-03-29 17:34 javacmapi\.settings\org.eclipse.jdt.core.prefs
文件 90 2019-03-29 17:28 javacmapi\.settings\org.eclipse.m2e.core.prefs
文件 2607 2017-04-20 02:00 javacmapi\README.md
文件 61940 2017-04-20 02:00 javacmapi\api-docs.fmt
文件 1129 2017-04-20 02:00 javacmapi\enunciate.xm
文件 11868 2017-04-20 02:00 javacmapi\pom.xm
目录 0 2019-03-31 11:33 javacmapi\src\
目录 0 2019-03-31 11:33 javacmapi\src\javadoc\
文件 2482 2017-04-20 02:00 javacmapi\src\javadoc\overview.html
目录 0 2019-03-31 11:33 javacmapi\src\main\
目录 0 2019-03-31 11:33 javacmapi\src\main\java\
目录 0 2019-03-31 11:33 javacmapi\src\main\java\com\
目录 0 2019-03-31 11:33 javacmapi\src\main\java\com\cloudera\
目录 0 2019-03-31 11:33 javacmapi\src\main\java\com\cloudera\api\
文件 2846 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\ApiErrorMessage.java
文件 2427 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\Apiob
文件 3823 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\ApiRootResource.java
文件 3511 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\ApiRootResourceExternal.java
文件 1923 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\ApiRootResourceInvocationHandler.java
文件 1508 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\ApiTimeAggregation.java
文件 4996 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\ApiUtils.java
文件 12896 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\ClouderaManagerClientBuilder.java
文件 1410 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\CsvElementWrapper.java
文件 1709 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\DataView.java
文件 3584 2017-04-20 02:00 javacmapi\src\main\java\com\cloudera\api\Parameters.java
目录 0 2019-03-31 11:33 javacmapi\src\main\java\com\cloudera\api\model\
............此处省略786个文件信息
相关资源
- cmpp2.0 java实现
- XACML3.0Java库
- android cmd命令行工具
- CMPP2.0JAVA调用
- cmpp3.0移动短信开发源码
- JAVA 音频文件PCM转WAV Utils类
- java_icmp_ping
- java cmpp2.0 3.0 无jar纯源码demo(含服务
- cmpp2.0 java源代码
- JavaEE企业级应用开发教程SpringSpringM
- PHP缩写的cmpp2.0协议改造
- java编写socket服务端和客户端给予cmp
- java pcm数据文件
- 伦斯特拉椭圆曲线因式分解或椭圆曲
- Android MediaCodec解码AAC,AudioTrack播放
- 读取LCM的日志文件
- 阿里云Apsara Clouder基础技能认证 考题
- ASP.NET MVC2.0 LINQ技术 CMS系统源码强大
- Java完整CMS(可直接拿来用)
- 音频转换WAV转换为PCM
- 移动联通电信短信模拟网关大合集C
- java dcm4che3解析dicom文件
- Android studio CMake方式引入jni .a文件
- dedecms v5.7漏洞批量getshell工具
- wmi4j 远程执行cmd命令获取命令执行的
- bcmail-jdk15on-1.49.jar/bcpkix-jdk15on-1.49.ja
- jmeter-plugins-cmn-jmeter-0.3
- CMPP3.0 JAVA
- 基于华为smproxy开发的cmpp3
- springspringMVCmybatis实现用户增删改查的
评论
共有 条评论