uk.ac.rdg.resc.jstyx.gridservice.server
Class StringServiceDataElement

java.lang.Object
  extended by uk.ac.rdg.resc.jstyx.gridservice.server.StringServiceDataElement

public class StringServiceDataElement
extends java.lang.Object

A ServiceDataElement represented as a String

Author:
Jon Blower $Revision: 158 $ $Date: 2005-03-16 22:16:44 +0000 (Wed, 16 Mar 2005) $ $Log$ Revision 1.1 2005/03/16 22:16:44 jonblower Added Styx Grid Service classes to core module Revision 1.1 2005/02/16 19:22:32 jonblower Commit adding of SGS files to CVS

Constructor Summary
StringServiceDataElement(java.lang.String name)
           
StringServiceDataElement(java.lang.String name, boolean readOnly)
           
StringServiceDataElement(java.lang.String name, boolean readOnly, java.lang.String value)
           
StringServiceDataElement(java.lang.String name, boolean readOnly, java.lang.String value, float minUpdateInterval)
          Creates a new instance of StringServiceDataElement
StringServiceDataElement(java.lang.String name, java.lang.String value)
           
 
Method Summary
 void flush()
          Forces all waiting clients to get an update on this quantity, irrespective of how long they have waited since the last update.
 StyxFile getAsyncStyxFile()
          Gets the StyxFile that provides asynchronous access to this SDE
 byte[] getBytes()
          Gets the ServiceDataElement, represented as a byte array
 java.lang.String getName()
          Gets the name of this SDE
 java.lang.Object getObject(byte[] bytes)
          Converts the given byte array into an object of the appropriate type
 StyxFile getStyxFile()
          Gets the StyxFile that provides non-blocking access to this SDE
 java.lang.Object getValue()
          Gets the value of the ServiceDataElement
 boolean isReadOnly()
           
 void setValue(byte[] bytes)
          Sets a new value for the SDE from the given byte array.
 void setValue(java.lang.Object newValue)
          Sets the ServiceDataElement to a new value and notifies the StyxFile interfaces to this SDE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringServiceDataElement

public StringServiceDataElement(java.lang.String name,
                                boolean readOnly,
                                java.lang.String value,
                                float minUpdateInterval)
Creates a new instance of StringServiceDataElement


StringServiceDataElement

public StringServiceDataElement(java.lang.String name,
                                boolean readOnly,
                                java.lang.String value)

StringServiceDataElement

public StringServiceDataElement(java.lang.String name,
                                java.lang.String value)

StringServiceDataElement

public StringServiceDataElement(java.lang.String name,
                                boolean readOnly)

StringServiceDataElement

public StringServiceDataElement(java.lang.String name)
Method Detail

getBytes

public byte[] getBytes()
Gets the ServiceDataElement, represented as a byte array


getObject

public java.lang.Object getObject(byte[] bytes)
Converts the given byte array into an object of the appropriate type


setValue

public void setValue(byte[] bytes)
Sets a new value for the SDE from the given byte array.


getValue

public java.lang.Object getValue()
Gets the value of the ServiceDataElement


setValue

public void setValue(java.lang.Object newValue)
Sets the ServiceDataElement to a new value and notifies the StyxFile interfaces to this SDE


getName

public java.lang.String getName()
Gets the name of this SDE


isReadOnly

public boolean isReadOnly()
Returns:
true if this SDE is read-only

getStyxFile

public StyxFile getStyxFile()
                     throws StyxException
Gets the StyxFile that provides non-blocking access to this SDE

Throws:
StyxException

getAsyncStyxFile

public StyxFile getAsyncStyxFile()
                          throws StyxException
Gets the StyxFile that provides asynchronous access to this SDE

Throws:
StyxException

flush

public void flush()
Forces all waiting clients to get an update on this quantity, irrespective of how long they have waited since the last update. Does nothing if the AsyncStyxFile has not been created (there will be no clients waiting).



Copyright © 2004-2006 Reading e-Science Centre. All Rights Reserved.