资源简介
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个文件信息
相关资源
- Java写的cmm词法分析器源代码及javacc学
- CMM_词法分析和语法分析_java编写
- rpi_DATA_2711_1p0_preliminary.pdf
- JS实现AES-GCM加密,java实现AES-GCM解密。
- WebRTCDemo android 源代码
- MP3转换为PCM文件,转换为WAV文件
- dcm4che-3.3.5.rar
- Visual CertExam Suite 最新安卓版 vcmo7.1.
- dcm4che相关的jar包
- CMFileManager
- cmpp2 java实现及网关模拟器
- Spring MVC+MyBatis+FreeMarker整合开发java
- TRS WCM 5.2 用户手册.pdf
- 苹果CMS蓝天APP源码
- javaWebSpringspringMvcMyBatis物流系统
- 基于J2EE技术ACM竞赛程序在线评测系统
- AppRTCMobile.apk
- java实现CMPP3.0源代码
- core-renderer.jar、iText-2.0.8.jar、iTextAsi
- smpp等短信协议模拟器
- SCM(供应链管理信息系统)
- 校园商铺平台JavaEESpingSping MVCMyBatisS
- webrtc aecm模块 android端
- 一个生产管理系统JAVA
- cms 网站管理系统 java+jsp java jsp
- Java源码调用cmpp2.0短息网关进行短信发
- java源码实现cmpp2.0协议
- arcgis ArcMap+echarts+java地图制作
- 完整cmm解释器
- java建站系统_自助建站cms
评论
共有 条评论