com.sentilla.net.rpc.procedures
Class RemoteSetProperty
java.lang.Object
com.sentilla.net.rpc.procedures.RemoteSetProperty
- All Implemented Interfaces:
- Procedure<RemoteSetProperty.Result>, Serializable
- Direct Known Subclasses:
- RemoteSetPropertyBytes, RemoteSetPropertyObject
public abstract class RemoteSetProperty
- extends Object
- implements Procedure<RemoteSetProperty.Result>
Private: for Sentilla internal use only.
Abstract class for Procedures that write data into remote properties.
Constructors are provided with and without a reserved data length.
When no data length is specified, the action will only succeed when the
property exists remotely.
RemoteSetProperty.Result indicates target and seek position of the set, and
implicitely means the set was successful at that target. Failure is
indicated by platform-specific exceptions or lack of response.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sentilla.net.rpc.Procedure |
run |
seek
public byte seek
keybytes
public byte[] keybytes
len
public byte len
RemoteSetProperty
protected RemoteSetProperty(String key,
int seek,
int len)
- The open-or-create mode.
RemoteSetProperty
protected RemoteSetProperty(String key,
int seek)
- The open-only mode.
getRaf
protected RandomAccessFile getRaf()
- Open the property (creating if appropraite) and seek to start position.
- Returns:
- RandomAccessFile if successfully opened
- Throws:
IORuntimeException
- (platform-specific) if open or seek fail.
newResult
protected RemoteSetProperty.Result newResult(RandomAccessFile raf)
- Create and initialize a Result indicating the local address and the
number of bytes written.
- Returns:
- Result
Copyright © 2007 Sentilla Corporation. All Rights Reserved.