org.mbari.siam.utils
Class SimulatedShoreMessagingService

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.mbari.siam.utils.ShoreMessagingService
                  extended by org.mbari.siam.utils.SimulatedShoreMessagingService
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RemoteService, ShoreMessaging

public class SimulatedShoreMessagingService
extends ShoreMessagingService
implements ShoreMessaging

Simulated implementation of ShoreMessaging

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.siam.utils.ShoreMessagingService
ShoreMessagingService.ShutdownTask
 
Field Summary
protected static int MAX_DOWNLINK_MSG_BYTES
           
 
Fields inherited from class org.mbari.siam.utils.ShoreMessagingService
_downlinkMsgQ, _log4j
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
SimulatedShoreMessagingService()
           
 
Method Summary
 void connect(int timeoutSec)
          Connect modem to shore, attempt to downlink queued messages
static void main(java.lang.String[] args)
           
 int maxDownlinkMsgBytes()
          Return maximum bytes allowed in a downlink message
 
Methods inherited from class org.mbari.siam.utils.ShoreMessagingService
nQueuedDownlinkMsgs, ping, queueDownlinkMessage, shutdown
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mbari.siam.distributed.ShoreMessaging
nQueuedDownlinkMsgs, queueDownlinkMessage, shutdown
 
Methods inherited from interface org.mbari.siam.distributed.RemoteService
ping
 

Field Detail

MAX_DOWNLINK_MSG_BYTES

protected static final int MAX_DOWNLINK_MSG_BYTES
See Also:
Constant Field Values
Constructor Detail

SimulatedShoreMessagingService

public SimulatedShoreMessagingService()
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

connect

public void connect(int timeoutSec)
             throws ShoreMessagingHelper.ModemInUse
Description copied from interface: ShoreMessaging
Connect modem to shore, attempt to downlink queued messages

Specified by:
connect in interface ShoreMessaging
Throws:
ShoreMessagingHelper.ModemInUse

maxDownlinkMsgBytes

public int maxDownlinkMsgBytes()
Description copied from interface: ShoreMessaging
Return maximum bytes allowed in a downlink message

Specified by:
maxDownlinkMsgBytes in interface ShoreMessaging

main

public static void main(java.lang.String[] args)


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.