org.wso2.carbon.integration.common.admin.client
Class LogViewerClient

java.lang.Object
  extended by org.wso2.carbon.integration.common.admin.client.LogViewerClient

public class LogViewerClient
extends Object

This class can use to get system logs information


Constructor Summary
LogViewerClient(String backEndUrl, String sessionCookie)
           
LogViewerClient(String backEndURL, String userName, String password)
           
 
Method Summary
 boolean clearLogs()
           
 org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getAllRemoteSystemLogs()
          Provide all remote system logs
 org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getAllSystemLogs()
          Deprecated. 
 org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getLogs(String logType, String searchKey, String domain, String serverKey)
          Deprecated. 
 org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getRemoteLogs(String logType, String searchKey, String domain, String serverKey)
          Getting remote system logs
 String[] getServiceNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogViewerClient

public LogViewerClient(String backEndUrl,
                       String sessionCookie)
                throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

LogViewerClient

public LogViewerClient(String backEndURL,
                       String userName,
                       String password)
                throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault
Method Detail

getRemoteLogs

public org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getRemoteLogs(String logType,
                                                                               String searchKey,
                                                                               String domain,
                                                                               String serverKey)
                                                                        throws RemoteException,
                                                                               org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Getting remote system logs

Parameters:
logType - Log type (INFO,WARN,ERROR,DEBUG)
searchKey - searching keyword
domain - - tenant domain
serverKey - - server key defined at carbon.xml
Returns:
logMessage array
Throws:
RemoteException - Exception
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

getAllRemoteSystemLogs

public org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getAllRemoteSystemLogs()
                                                                                 throws RemoteException,
                                                                                        org.wso2.carbon.logging.view.stub.LogViewerLogViewerException
Provide all remote system logs

Returns:
Throws:
RemoteException
org.wso2.carbon.logging.view.stub.LogViewerLogViewerException

getLogs

@Deprecated
public org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getLogs(String logType,
                                                                                    String searchKey,
                                                                                    String domain,
                                                                                    String serverKey)
                                                                  throws RemoteException
Deprecated. 

Getting system logs

Deprecated because api change in stub passing LogViewerLogViewerException l

Parameters:
logType - Log type (INFO,WARN,ERROR,DEBUG)
searchKey - searching keyword
domain - - tenant domain
serverKey - - server key defined at carbon.xml
Returns:
logMessage array
Throws:
RemoteException - Exception

getAllSystemLogs

@Deprecated
public org.wso2.carbon.logging.view.stub.types.carbon.LogEvent[] getAllSystemLogs()
                                                                           throws RemoteException
Deprecated. 

Deprecated

Returns:
Throws:
RemoteException

clearLogs

public boolean clearLogs()
                  throws RemoteException
Throws:
RemoteException


Copyright © 2015 WSO2. All rights reserved.