xmlBlaster 2.2.0 API

http.dhtml.systemInfo
Class SystemInfoPublisher

java.lang.Object
  extended by http.dhtml.systemInfo.SystemInfoPublisher

public class SystemInfoPublisher
extends java.lang.Object

Publish system infos to xmlBlaster.
Use this as a command line tool to publish cpu load and memory load.
Invoke examples:

    jaco html.systemInfo.SystemInfoPublisher
 


Field Summary
private  I_XmlBlasterAccess con
           
private  Global glob
           
private static java.util.logging.Logger log
           
private static java.lang.String ME
           
private  java.util.Random random
           
 
Constructor Summary
SystemInfoPublisher(Global glob)
          Constructs the SystemInfoPublisher object.
 
Method Summary
private  int getCpuload()
          The Linux way ...
private  int getMeminfo()
          The Linux way ...
static void main(java.lang.String[] args)
          java html.systemInfo.SystemInfoPublisher
private  void publish(java.lang.String oid, int value)
          Construct a message and publish it.
private  void setUp()
          Connect to xmlBlaster and login
private  void tearDown()
          Logout from xmlBlaster
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

private static final java.lang.String ME
See Also:
Constant Field Values

glob

private final Global glob

log

private static java.util.logging.Logger log

con

private I_XmlBlasterAccess con

random

private java.util.Random random
Constructor Detail

SystemInfoPublisher

public SystemInfoPublisher(Global glob)
Constructs the SystemInfoPublisher object.

Parameters:
args - Command line arguments
Method Detail

getCpuload

private int getCpuload()
                throws XmlBlasterException
The Linux way ...

For now it is a random hack

Throws:
XmlBlasterException

getMeminfo

private int getMeminfo()
                throws XmlBlasterException
The Linux way ...

For now it is a random hack

Throws:
XmlBlasterException

setUp

private void setUp()
Connect to xmlBlaster and login


tearDown

private void tearDown()
Logout from xmlBlaster


publish

private void publish(java.lang.String oid,
                     int value)
Construct a message and publish it.


main

public static void main(java.lang.String[] args)
java html.systemInfo.SystemInfoPublisher


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.