Openwings API Documentation (v1.1)

net.openwings.container.utilities
Interface LogAccess


public interface LogAccess

This interface describes a service that can be used to obtain access to the log files for processes managed by a given container manager


Nested Class Summary
static class LogAccess.LogFileDescriptor
          This class describes a log file for an Openwings process.
 
Method Summary
 LogAccess.LogFileDescriptor[] getLogFileDescriptors()
          This method is used to obtain the list of log files on a system
 java.io.InputStream getProcessInputStream(java.lang.String componentName, UniqueID processID)
          This method is used to obtain an input stream for a given process
 

Method Detail

getProcessInputStream

public java.io.InputStream getProcessInputStream(java.lang.String componentName,
                                                 UniqueID processID)
                                          throws java.io.FileNotFoundException,
                                                 java.io.IOException,
                                                 java.rmi.RemoteException
This method is used to obtain an input stream for a given process

Parameters:
componentName - name of the component
processID - process unique identifier
Returns:
stream containing complete output of the process
Throws:
java.rmi.RemoteException - for communication errors
java.io.FileNotFoundException
java.io.IOException

getLogFileDescriptors

public LogAccess.LogFileDescriptor[] getLogFileDescriptors()
                                                    throws java.rmi.RemoteException
This method is used to obtain the list of log files on a system

Returns:
list of log files available on the system
Throws:
java.rmi.RemoteException - for communication errors

Openwings API Documentation (v1.1)