scouterx.webapp.layer.service.XLogService Maven / Gradle / Ivy
/*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* 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
*
* 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 scouterx.webapp.layer.service;
import scouterx.webapp.framework.client.net.INetReader;
import scouterx.webapp.layer.consumer.XLogConsumer;
import scouterx.webapp.model.XLogData;
import scouterx.webapp.model.scouter.SXLog;
import scouterx.webapp.request.MultiXLogRequest;
import scouterx.webapp.request.SearchXLogRequest;
import scouterx.webapp.request.PageableXLogRequest;
import scouterx.webapp.request.RealTimeXLogRequest;
import scouterx.webapp.request.SingleXLogRequest;
import scouterx.webapp.request.GxidXLogRequest;
import java.util.List;
/**
* @author Gun Lee ([email protected]) on 2017. 8. 27.
*/
public class XLogService {
private final XLogConsumer xLogConsumer;
public XLogService() {
this.xLogConsumer = new XLogConsumer();
}
/**
* retrieve realtime xlog
*/
public void handleRealTimeXLog(final RealTimeXLogRequest xLogRequest, final INetReader reader) {
xLogConsumer.handleRealTimeXLog(xLogRequest, reader);
}
/**
* retrieve XLog List for paging access
*/
public void handlePageableXLog(final PageableXLogRequest xLogRequest, final INetReader reader) {
xLogConsumer.handlePageableXLog(xLogRequest, reader);
}
/**
* retrieve various condition search
*/
public List searchXLogList(final SearchXLogRequest searchXLogRequest) {
return xLogConsumer.searchXLogList(searchXLogRequest);
}
/**
* retrieve various condition search
*/
public List searchXLogDataList(final SearchXLogRequest searchXLogRequest) {
return xLogConsumer.searchXLogDataList(searchXLogRequest);
}
/**
* retrieve single xLog
*/
public XLogData retrieveSingleXLogData(final SingleXLogRequest singleXlogRequest) {
return xLogConsumer.retrieveByTxidAsXLogData(singleXlogRequest);
}
/**
* retrieve single xLog
*/
public SXLog retrieveSingleXLog(final SingleXLogRequest singleXlogRequest) {
return xLogConsumer.retrieveByTxidAsXLog(singleXlogRequest);
}
/**
* retrieve Xlog List by gxid
*/
public List retrieveXLogListByGxid(final GxidXLogRequest xlogRequest) {
return xLogConsumer.retrieveXLogListByGxid(xlogRequest);
}
/**
* retrieve Xlog data List by gxid
*/
public List retrieveXLogDataListByGxid(final GxidXLogRequest xlogRequest) {
return xLogConsumer.retrieveXLogDataListByGxid(xlogRequest);
}
/**
* retrieve Xlog data List by txids
*/
public List retrieveXLogDataListByTxids(final MultiXLogRequest multiXLogRequest) {
return xLogConsumer.retrieveXLogDataListByTxids(multiXLogRequest);
}
}