org.globus.ogsa.impl.base.providers.servicedata.impl
Class SimpleSystemInformationProvider

java.lang.Object
  extended byorg.globus.ogsa.impl.base.providers.servicedata.impl.SimpleSystemInformationProvider
All Implemented Interfaces:
DOMDataProvider, SimpleDataProvider

public class SimpleSystemInformationProvider
extends java.lang.Object
implements DOMDataProvider

Basic MDS GRIS-sytle sensor which emits system information in XML,


Constructor Summary
SimpleSystemInformationProvider()
          Creates a new instance of SystemInformationProvider
SimpleSystemInformationProvider(java.lang.String namespacePrefix, java.lang.String namespaceURI)
          Creates a new instance of SystemInformationProvider
 
Method Summary
 java.lang.String getDefaultArgs()
          If the provider has a set of default arguments, they can be retrieved with this function.
 java.lang.String getDescription()
          Returns a description of the provider's functionality.
 java.lang.String getErrorString()
          The provider should return a string representation of the current error, if any
 java.lang.String getName()
          Returns the display name of the provider.
static void main(java.lang.String[] args)
           
 org.w3c.dom.Document run(java.lang.String args)
           
 void run(java.lang.String args, java.io.OutputStream outStream)
          Triggers the execution of the provider, updating the provider's internal state and sending the output to the specified OutputStream.
 java.lang.String toString()
           
protected  void updateFileSystemInfo()
           
protected  void updateSystemInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleSystemInformationProvider

public SimpleSystemInformationProvider(java.lang.String namespacePrefix,
                                       java.lang.String namespaceURI)
                                throws java.lang.Exception
Creates a new instance of SystemInformationProvider


SimpleSystemInformationProvider

public SimpleSystemInformationProvider()
                                throws java.lang.Exception
Creates a new instance of SystemInformationProvider

Method Detail

main

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

getName

public java.lang.String getName()
Description copied from interface: SimpleDataProvider
Returns the display name of the provider.

Specified by:
getName in interface SimpleDataProvider

getDescription

public java.lang.String getDescription()
Description copied from interface: SimpleDataProvider
Returns a description of the provider's functionality.

Specified by:
getDescription in interface SimpleDataProvider

getDefaultArgs

public java.lang.String getDefaultArgs()
Description copied from interface: SimpleDataProvider
If the provider has a set of default arguments, they can be retrieved with this function.

Specified by:
getDefaultArgs in interface SimpleDataProvider

toString

public java.lang.String toString()

run

public void run(java.lang.String args,
                java.io.OutputStream outStream)
         throws java.lang.Exception
Description copied from interface: SimpleDataProvider
Triggers the execution of the provider, updating the provider's internal state and sending the output to the specified OutputStream.

Specified by:
run in interface SimpleDataProvider
Throws:
java.lang.Exception

run

public org.w3c.dom.Document run(java.lang.String args)
                         throws java.lang.Exception
Specified by:
run in interface DOMDataProvider
Throws:
java.lang.Exception

updateSystemInfo

protected void updateSystemInfo()
                         throws java.lang.Exception
Throws:
java.lang.Exception

updateFileSystemInfo

protected void updateFileSystemInfo()
                             throws java.lang.Exception
Throws:
java.lang.Exception

getErrorString

public java.lang.String getErrorString()
The provider should return a string representation of the current error, if any

Specified by:
getErrorString in interface SimpleDataProvider