org.globus.mds.usefulrp
Class SimpleGLUEResourceProperty

java.lang.Object
  extended byorg.globus.wsrf.impl.BaseResourceProperty
      extended byorg.globus.wsrf.impl.ReflectionResourceProperty
          extended byorg.globus.mds.usefulrp.SimpleGLUEResourceProperty
All Implemented Interfaces:
ResourceProperty

public class SimpleGLUEResourceProperty
extends ReflectionResourceProperty

An MDS ResourceProperty that will allow services to easily publish host status information (limited to JDK system calls only) in the GLUE schema.


Field Summary
private  org.w3c.dom.Element cpuInfo
           
private  org.w3c.dom.Document doc
           
private  org.w3c.dom.Element docRoot
           
private  java.util.List drives
           
private  java.lang.String errorString
           
(package private)  boolean isDebug
           
private static org.apache.commons.logging.Log logger
           
private  org.w3c.dom.Element memInfo
           
private static java.lang.String NS
           
private  org.w3c.dom.Element osInfo
           
private static java.lang.String PREFIX
           
 
Fields inherited from class org.globus.wsrf.impl.ReflectionResourceProperty
 
Fields inherited from class org.globus.wsrf.impl.BaseResourceProperty
metaData
 
Constructor Summary
SimpleGLUEResourceProperty(javax.xml.namespace.QName name)
           
 
Method Summary
 java.lang.Object getDynamicValue()
          For now process the RP synchronously.
private  void init()
           
 void setNamespace(java.lang.String namespacePrefix, java.lang.String namespaceURI)
           
 java.lang.String toString()
           
protected  void updateFileSystemInfo()
           
protected  void updateSystemInfo()
           
 
Methods inherited from class org.globus.wsrf.impl.ReflectionResourceProperty
add, clear, get, getValueSimple, initialize, isArray, isEmpty, iterator, remove, set, setObject, setPropertyName, size, toElements, toSOAPElements
 
Methods inherited from class org.globus.wsrf.impl.BaseResourceProperty
convert, convertObject, convertPrimitive, getMetaData, setMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

NS

private static java.lang.String NS

PREFIX

private static java.lang.String PREFIX

isDebug

boolean isDebug

docRoot

private org.w3c.dom.Element docRoot

osInfo

private org.w3c.dom.Element osInfo

cpuInfo

private org.w3c.dom.Element cpuInfo

memInfo

private org.w3c.dom.Element memInfo

drives

private java.util.List drives

errorString

private java.lang.String errorString

doc

private org.w3c.dom.Document doc
Constructor Detail

SimpleGLUEResourceProperty

public SimpleGLUEResourceProperty(javax.xml.namespace.QName name)
                           throws java.lang.Exception
Throws:
java.lang.Exception - passes along any exception encountered during construction of underlying ReflectionResourceProperty.
Method Detail

getDynamicValue

public java.lang.Object getDynamicValue()
For now process the RP synchronously. If we encounter problems with this, it will get moved to its own thread


setNamespace

public void setNamespace(java.lang.String namespacePrefix,
                         java.lang.String namespaceURI)
                  throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()

updateSystemInfo

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

updateFileSystemInfo

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

init

private void init()
           throws java.lang.Exception
Throws:
java.lang.Exception