com.ibm.staf.wrapper.STAFMonitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jstaf Show documentation
Show all versions of jstaf Show documentation
The Software Testing Automation Framework (STAF) is an open source,
multi-platform, multi-language framework designed around the idea of reusable
components, called services (such as process invocation, resource management,
logging, and monitoring). STAF removes the tedium of building an automation
infrastructure, thus enabling you to focus on building your automation solution.
The STAF framework provides the foundation upon which to build higher level
solutions, and provides a pluggable approach supported across a large variety
of platforms and languages.
This component contains the STAF Java API
(http://staf.sourceforge.net/current/STAFJava.htm ) only.
For more information see http://staf.sourceforge.net/ .
The newest version!
/*****************************************************************************/
/* Software Testing Automation Framework (STAF) */
/* (C) Copyright IBM Corp. 2001 */
/* */
/* This software is licensed under the Eclipse Public License (EPL) V1.0. */
/*****************************************************************************/
package com.ibm.staf.wrapper;
import com.ibm.staf.*;
// STAFMonitor - This class is a wrapper around the STAF monitor service.
// It currently only provides a means to monitor locally.
// There are instance and static methods to perform the logging.
public class STAFMonitor
{
public STAFMonitor(STAFHandle stafHandle) { handle = stafHandle; }
public STAFResult log(String message)
{
return handle.submit2("LOCAL", "MONITOR", "LOG MESSAGE :" +
message.length() + ":" + message);
}
public static STAFResult log(STAFHandle theHandle, String message)
{
return theHandle.submit2("LOCAL", "MONITOR", "LOG MESSAGE :" +
message.length() + ":" + message);
}
private STAFHandle handle;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy