com.ibm.jzos.sample

Class LogstreamSample

  • java.lang.Object
    • com.ibm.jzos.sample.LogstreamSample


  • public class LogstreamSample
    extends java.lang.Object
    Sample program that uses ZLogstream, supporting IXGCONN (connect) and IXGBRWSE (read), to read data from a z/OS Logstream (aka, the z/OS System Logger). The name of the z/OS logstream is given as arguments to main(). If a Java security manager is active, it is used to check permissions for reading or writing to a resource path name generated from the logstream name. For a logstream named "XXX.YYY.ZZZ", a pathname of "/LOGSTREAM/XXX/YYY/XXX" is used.

    Note: To avoid memory leaks, a ZLogstream instance must be closed at the end of the execution or when the execution is interrupted by an exception. Refer to the code below for details.

    • Constructor Summary

      Constructors 
      Constructor and Description
      LogstreamSample() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] args) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogstreamSample

        public LogstreamSample()
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
� Copyright IBM Corporation 2005, 2022.