com.sentilla.platform.tmote
Class RemoteServiceProtocol

java.lang.Object
  extended by com.sentilla.system.DriverAdapter
      extended by com.sentilla.platform.tmote.Protocol
          extended by com.sentilla.platform.tmote.RemoteServiceProtocol
All Implemented Interfaces:
Driver

public class RemoteServiceProtocol
extends Protocol

Provides a Protocol handler for the RemoteService API. Because this service runs in the system thread, RPC calls will disrupt system tasks while in execution.

See Also:
RemoteService, Procedure, RemoteInvoker

Field Summary
 
Fields inherited from class com.sentilla.system.DriverAdapter
m_nextDriver
 
Constructor Summary
RemoteServiceProtocol()
           
 
Method Summary
 boolean doesInstanceMatch(Object obj)
          Check for RPC messages.
 String getDriverName(int n)
          This driver is not to be referenced by name.
 Receiver newReceiver()
          Do not use.
 Sender newSender()
          Do not use.
 void stackReceive(Receiver rcvr)
          Handles incoming RPC calls.
 void stackSend(Sender sender)
          Do not use.
 
Methods inherited from class com.sentilla.system.DriverAdapter
getNextDriver, setNextDriver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteServiceProtocol

public RemoteServiceProtocol()
Method Detail

stackReceive

public void stackReceive(Receiver rcvr)
Handles incoming RPC calls. Execution of the RPC is deferred until later, as a performance optimization, because Dispatcher can't set the next receive until stackReceive has completed.

Specified by:
stackReceive in class Protocol
Parameters:
rcvr - the Receiver object containing the object received // * @see Dispatcher
See Also:
Receiver

stackSend

public void stackSend(Sender sender)
Do not use. Provided for compatability with Protocol and should never by called.

Specified by:
stackSend in class Protocol
Parameters:
sender - Sender object containing the object to be sent.
See Also:
Dispatcher, Sender

newSender

public Sender newSender()
Do not use.

Specified by:
newSender in class Protocol
Returns:
null
See Also:
Sender

newReceiver

public Receiver newReceiver()
Do not use.

Specified by:
newReceiver in class Protocol
Returns:
null
See Also:
Receiver

doesInstanceMatch

public boolean doesInstanceMatch(Object obj)
Check for RPC messages.

Specified by:
doesInstanceMatch in class Protocol
Parameters:
obj - object to evaluate
Returns:
is this an RPC message

getDriverName

public String getDriverName(int n)
This driver is not to be referenced by name.

Specified by:
getDriverName in interface Driver
Specified by:
getDriverName in class DriverAdapter
Parameters:
n - index of the LoopBackProtocol string name
Returns:
null
See Also:
Driver, Drivers


Copyright © 2007 Sentilla Corporation. All Rights Reserved.