com.tencent.angel.model.PSMatricesLoadResult Maven / Gradle / Ivy
The newest version!
/*
* Tencent is pleased to support the open source community by making Angel available.
*
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed 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
*
* https://opensource.org/licenses/Apache-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.tencent.angel.model;
/**
* The result of PS load request
*/
public class PSMatricesLoadResult {
/**
* Load request id
*/
private volatile int requestId;
/**
* Load sub-request id
*/
private volatile int subRequestId;
/**
* Load state
*/
private volatile LoadState state;
/**
* Detail failed message
*/
private volatile String errorMsg;
/**
* Create a new PSMatricesLoadResult
*
* @param requestId request id
* @param subRequestId sub-request id
* @param state load state
*/
public PSMatricesLoadResult(int requestId, int subRequestId, LoadState state) {
this.requestId = requestId;
this.subRequestId = subRequestId;
this.state = state;
}
/**
* Get request id
*
* @return request id
*/
public int getRequestId() {
return requestId;
}
/**
* Get sub-request id
*
* @return sub-request id
*/
public int getSubRequestId() {
return subRequestId;
}
/**
* Get load state
*
* @return load state
*/
public LoadState getState() {
return state;
}
/**
* Set request id
*
* @param requestId
*/
public void setRequestId(int requestId) {
this.requestId = requestId;
}
/**
* Set sub-request id
*
* @param subRequestId
*/
public void setSubRequestId(int subRequestId) {
this.subRequestId = subRequestId;
}
/**
* Get load state
*
* @param state load state
*/
public void setState(LoadState state) {
this.state = state;
}
/**
* Get detail failed message
*
* @return detail failed message
*/
public String getErrorMsg() {
return errorMsg;
}
/**
* Set detail failed message
*
* @param errorMsg
*/
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
}