org.mbari.siam.distributed
Class ShoreMessagingHelper

java.lang.Object
  extended by org.mbari.siam.distributed.ShoreMessagingHelper

public class ShoreMessagingHelper
extends java.lang.Object

Various attributes and classes associated with ShoreMessaging


Nested Class Summary
static class ShoreMessagingHelper.ConnectFailed
           
static class ShoreMessagingHelper.Message
          Message to be downlinked
static class ShoreMessagingHelper.MessageTooBig
           
static class ShoreMessagingHelper.ModemInUse
           
 
Field Summary
static java.lang.String MESSAGE_PREFIX
          Prefix marks "standard" header
static byte[] MSG_DELIMITER
          Multiple messages in one downlink are separated by MSG_DELIMITER
static java.lang.String SERVICE_NAME
          Name of the service
 
Constructor Summary
ShoreMessagingHelper()
           
 
Method Summary
static void bind(ShoreMessaging service)
          Bind service to localhost
static ShoreMessaging getProxy(java.lang.String serviceHost)
          Return service proxy from specified host
static byte[] prependHeader(byte[] msgBody, long sourceID, long epochMsec)
          Prepend "standard" header to message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_PREFIX

public static final java.lang.String MESSAGE_PREFIX
Prefix marks "standard" header

See Also:
Constant Field Values

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
Name of the service

See Also:
Constant Field Values

MSG_DELIMITER

public static final byte[] MSG_DELIMITER
Multiple messages in one downlink are separated by MSG_DELIMITER

Constructor Detail

ShoreMessagingHelper

public ShoreMessagingHelper()
Method Detail

bind

public static void bind(ShoreMessaging service)
                 throws java.lang.Exception
Bind service to localhost

Throws:
java.lang.Exception

prependHeader

public static byte[] prependHeader(byte[] msgBody,
                                   long sourceID,
                                   long epochMsec)
Prepend "standard" header to message


getProxy

public static ShoreMessaging getProxy(java.lang.String serviceHost)
                               throws java.lang.Exception
Return service proxy from specified host

Throws:
java.lang.Exception


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.