org.wso2.carbon.logging.view.ui
Class LogViewerClient

java.lang.Object
  extended by org.wso2.carbon.logging.view.ui.LogViewerClient

public class LogViewerClient
extends Object


Field Summary
 org.wso2.carbon.logging.view.stub.LogViewerStub stub
           
 
Constructor Summary
LogViewerClient(String cookie, String backendServerURL, org.apache.axis2.context.ConfigurationContext configCtx)
           
 
Method Summary
 void clearLogs()
           
 void downloadArchivedLogFiles(String logFile, javax.servlet.http.HttpServletResponse response, String tenantDomain, String serverKey)
           
 org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getApplicationLogs(String type, String keyword, String applicationName, String tenantDomain, String serverKey)
           
 String[] getApplicationNames(String tenantDomain, String serverKey)
           
 String getImageName(String type)
           
 int getLineNumbers(String logFile)
           
 org.wso2.carbon.logging.view.stub.types.carbon.PaginatedLogFileInfo getLocalLogFiles(int pageNo, String tenantDomain, String serverKey)
           
 String[] getLogLevels()
           
 String[] getLogLinesFromFile(String logFile, int maxLogs, int start, int end)
           
 org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getLogs(String type, String keyword, String tenantDomain, String serverkey)
           
 int getNoOfLogEvents(String tenantDomain, String serverKey)
           
 org.wso2.carbon.logging.view.stub.types.carbon.PaginatedLogEvent getPaginatedApplicationLogEvents(int pageNumber, String type, String keyword, String appName, String tenantDomain, String serverKey)
           
 org.wso2.carbon.logging.view.stub.types.carbon.PaginatedLogEvent getPaginatedLogEvents(int pageNumber, String type, String keyword, String tenantDomain, String serverKey)
           
 org.wso2.carbon.logging.view.stub.types.carbon.PaginatedLogFileInfo getPaginatedLogFileInfo(int pageNumber, String tenantDomain, String serviceName)
           
 String[] getServiceNames()
           
 boolean isFileAppenderConfiguredForST()
           
 boolean isLogEventReciverConfigured()
           
 boolean isManager()
           
 boolean isValidTenant(String tenantDomain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stub

public org.wso2.carbon.logging.view.stub.LogViewerStub stub
Constructor Detail

LogViewerClient

public LogViewerClient(String cookie,
                       String backendServerURL,
                       org.apache.axis2.context.ConfigurationContext configCtx)
                throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault
Method Detail

clearLogs

public void clearLogs()
               throws RemoteException
Throws:
RemoteException

downloadArchivedLogFiles

public void downloadArchivedLogFiles(String logFile,
                                     javax.servlet.http.HttpServletResponse response,
                                     String tenantDomain,
                                     String serverKey)
                              throws RemoteException,
                                     org.wso2.carbon.logging.view.stub.LogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerException

getLineNumbers

public int getLineNumbers(String logFile)
                   throws RemoteException,
                          org.wso2.carbon.logging.view.stub.LogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerException

getPaginatedLogFileInfo

public org.wso2.carbon.logging.view.stub.types.carbon.PaginatedLogFileInfo getPaginatedLogFileInfo(int pageNumber,
                                                                                                   String tenantDomain,
                                                                                                   String serviceName)
                                                                                            throws RemoteException,
                                                                                                   org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

getLogs

public org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getLogs(String type,
                                                                         String keyword,
                                                                         String tenantDomain,
                                                                         String serverkey)
                                                                  throws RemoteException,
                                                                         org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

getApplicationLogs

public org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getApplicationLogs(String type,
                                                                                    String keyword,
                                                                                    String applicationName,
                                                                                    String tenantDomain,
                                                                                    String serverKey)
                                                                             throws RemoteException,
                                                                                    org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

getLogLinesFromFile

public String[] getLogLinesFromFile(String logFile,
                                    int maxLogs,
                                    int start,
                                    int end)
                             throws RemoteException,
                                    org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

getApplicationNames

public String[] getApplicationNames(String tenantDomain,
                                    String serverKey)
                             throws RemoteException,
                                    org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

getNoOfLogEvents

public int getNoOfLogEvents(String tenantDomain,
                            String serverKey)
                     throws RemoteException,
                            org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

getServiceNames

public String[] getServiceNames()
                         throws RemoteException,
                                org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

isFileAppenderConfiguredForST

public boolean isFileAppenderConfiguredForST()
                                      throws RemoteException
Throws:
RemoteException

getPaginatedLogEvents

public org.wso2.carbon.logging.view.stub.types.carbon.PaginatedLogEvent getPaginatedLogEvents(int pageNumber,
                                                                                              String type,
                                                                                              String keyword,
                                                                                              String tenantDomain,
                                                                                              String serverKey)
                                                                                       throws RemoteException,
                                                                                              org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

getPaginatedApplicationLogEvents

public org.wso2.carbon.logging.view.stub.types.carbon.PaginatedLogEvent getPaginatedApplicationLogEvents(int pageNumber,
                                                                                                         String type,
                                                                                                         String keyword,
                                                                                                         String appName,
                                                                                                         String tenantDomain,
                                                                                                         String serverKey)
                                                                                                  throws RemoteException,
                                                                                                         org.wso2.carbon.logging.view.stub.LogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerException

getLocalLogFiles

public org.wso2.carbon.logging.view.stub.types.carbon.PaginatedLogFileInfo getLocalLogFiles(int pageNo,
                                                                                            String tenantDomain,
                                                                                            String serverKey)
                                                                                     throws RemoteException,
                                                                                            org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

isLogEventReciverConfigured

public boolean isLogEventReciverConfigured()
                                    throws RemoteException
Throws:
RemoteException

getImageName

public String getImageName(String type)

getLogLevels

public String[] getLogLevels()

isManager

public boolean isManager()
                  throws RemoteException
Throws:
RemoteException

isValidTenant

public boolean isValidTenant(String tenantDomain)
                      throws RemoteException
Throws:
RemoteException


Copyright © 2015 WSO2. All rights reserved.