com.sentilla.net.rpc.procedures
Class RemoteSetPropertyBytes

java.lang.Object
  extended by com.sentilla.net.rpc.procedures.RemoteSetProperty
      extended by com.sentilla.net.rpc.procedures.RemoteSetPropertyBytes
All Implemented Interfaces:
Procedure<RemoteSetProperty.Result>, Serializable

public class RemoteSetPropertyBytes
extends RemoteSetProperty

Private: for Sentilla internal use only. Procedure to write a byte[] into a remote property.

See Also:
RemoteSetProperty, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sentilla.net.rpc.procedures.RemoteSetProperty
RemoteSetProperty.Result
 
Field Summary
 byte[] value
          Byte array used for setting the property value.
 
Fields inherited from class com.sentilla.net.rpc.procedures.RemoteSetProperty
keybytes, len, seek
 
Constructor Summary
RemoteSetPropertyBytes(String key, byte[] data, int seek)
          Open (existing) property and write a byte array.
RemoteSetPropertyBytes(String key, byte[] data, int seek, int len)
          Write (creating property if necessary) a remote property, using byte array.
 
Method Summary
 RemoteSetProperty.Result run()
          Run the procedure and return its result.
 
Methods inherited from class com.sentilla.net.rpc.procedures.RemoteSetProperty
getRaf, newResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public byte[] value
Byte array used for setting the property value.

Constructor Detail

RemoteSetPropertyBytes

public RemoteSetPropertyBytes(String key,
                              byte[] data,
                              int seek)
Open (existing) property and write a byte array.

Parameters:
key - String identifying the property to set
seek - offset in number of bytes from start of file
data - byte[] to store in the mote properties

RemoteSetPropertyBytes

public RemoteSetPropertyBytes(String key,
                              byte[] data,
                              int seek,
                              int len)
Write (creating property if necessary) a remote property, using byte array.

Parameters:
key - String identifying the property to set
seek - offset in number of bytes from start of file
data - byte[] to store in the mote properties
len - in bytes to reserve for this property
Method Detail

run

public RemoteSetProperty.Result run()
Description copied from interface: Procedure
Run the procedure and return its result.

Returns:
RemoteSetProperty.Result if successfully written
Throws:
IORuntimeException - (platform-specific) if write fails.


Copyright © 2007 Sentilla Corporation. All Rights Reserved.