org.mbari.siam.operations.portal
Class PortalTest

java.lang.Object
  extended by javax.rmi.PortableRemoteObject
      extended by org.mbari.siam.operations.portal.PortalTest
All Implemented Interfaces:
java.rmi.Remote, PortalProxy

public class PortalTest
extends javax.rmi.PortableRemoteObject
implements PortalProxy


Field Summary
 
Fields inherited from interface org.mbari.siam.distributed.portal.PortalProxy
ASAP, WHENEVER
 
Constructor Summary
PortalTest(java.lang.String publicPortalAddress, java.lang.String privatePortalAddress, java.lang.String remoteNodeAddress)
           
 
Method Summary
 boolean connected()
          Returns true if communication link is up.
 DevicePacketStream getDevicePacketStream(Authentication auth)
          Get DevicePacketStream for all sensors.
 DevicePacketStream getDevicePacketStream(long sensorID, Authentication auth)
          Get DevicePacketStream for specified sensor.
 long getId()
          Unique identifier of platform
 java.lang.String getName()
          Name of portal host
 java.lang.String getPortalHostName()
          Name of portal host
 Port[] getPortConfiguration()
          Return port information for node
 java.util.Vector getQueuedCommands()
          Return QueuedCommands which haven't been sent to platform yet.
 java.util.Vector getSentCommands()
          Return QueuedCommands which have already been sent to platform.
 int getStatus()
          Status of platform.
static void main(java.lang.String[] args)
           
 long nextConnectTime()
          Returns true of next communication link.
 void nodeLinkConnected()
          Notify portal that link to remote node is "up".
 void nodeLinkDisconnecting(long nextConnectTime)
          Notify portal that link to remote node is about to be disconnected.
 
Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalTest

public PortalTest(java.lang.String publicPortalAddress,
                  java.lang.String privatePortalAddress,
                  java.lang.String remoteNodeAddress)
           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getName

public java.lang.String getName()
Name of portal host

Specified by:
getName in interface PortalProxy

getPortalHostName

public java.lang.String getPortalHostName()
Name of portal host

Specified by:
getPortalHostName in interface PortalProxy

getId

public long getId()
Unique identifier of platform

Specified by:
getId in interface PortalProxy

connected

public boolean connected()
Returns true if communication link is up.

Specified by:
connected in interface PortalProxy

getStatus

public int getStatus()
Status of platform.

Specified by:
getStatus in interface PortalProxy

nextConnectTime

public long nextConnectTime()
Returns true of next communication link.

Specified by:
nextConnectTime in interface PortalProxy

getDevicePacketStream

public DevicePacketStream getDevicePacketStream(Authentication auth)
                                         throws AuthenticationException
Get DevicePacketStream for all sensors.

Specified by:
getDevicePacketStream in interface PortalProxy
Throws:
AuthenticationException

getDevicePacketStream

public DevicePacketStream getDevicePacketStream(long sensorID,
                                                Authentication auth)
                                         throws DeviceNotFound,
                                                AuthenticationException
Get DevicePacketStream for specified sensor.

Specified by:
getDevicePacketStream in interface PortalProxy
Throws:
DeviceNotFound
AuthenticationException

getPortConfiguration

public Port[] getPortConfiguration()
                            throws java.rmi.RemoteException,
                                   UnknownConfiguration
Return port information for node

Specified by:
getPortConfiguration in interface PortalProxy
Throws:
java.rmi.RemoteException
UnknownConfiguration

getQueuedCommands

public java.util.Vector getQueuedCommands()
Return QueuedCommands which haven't been sent to platform yet.

Specified by:
getQueuedCommands in interface PortalProxy

getSentCommands

public java.util.Vector getSentCommands()
Return QueuedCommands which have already been sent to platform.

Specified by:
getSentCommands in interface PortalProxy

nodeLinkConnected

public void nodeLinkConnected()
Notify portal that link to remote node is "up". This method will likely be replaced by Rendezvous mechanisms.

Specified by:
nodeLinkConnected in interface PortalProxy

nodeLinkDisconnecting

public void nodeLinkDisconnecting(long nextConnectTime)
Notify portal that link to remote node is about to be disconnected.

Specified by:
nodeLinkDisconnecting in interface PortalProxy

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.