org.mbari.siam.foce.deployed
Class FOCENodeConfigurator

java.lang.Object
  extended by org.mbari.siam.foce.deployed.FOCENodeConfigurator
All Implemented Interfaces:
NodeConfigurator

public class FOCENodeConfigurator
extends java.lang.Object
implements NodeConfigurator

FOCENodeConfigurator encapsulates the configuration of hardware-dependent components for FOCE hardware (Lippert PC/104, RTD relay board, etc)

Author:
Bob Herlien

Constructor Summary
FOCENodeConfigurator()
           
 
Method Summary
 FilteredDeviceLogIF createDeviceLog(long nodeId, NodeProperties properties)
          Create the Node Log
 NetworkManager createNetworkManager(java.lang.String localHostName)
          Create the NetworkManager
 NodeProperties createNodeProperties(java.lang.String cfgFileName)
          Return NodeProperties appropriate to this configuration
 NodeService createNodeService(PortManager portManager, java.lang.String portalHost)
          Return a NodeService appropriate to this configuration
 PortManager createPortManager(NodeProperties nodeProps)
          Return a PortManager appropriate to this configuration
 SleepManager createSleepManager()
          Return null for SleepManager
 WDTManager createWDTManager()
          Return null for WDTManager
 java.lang.String getSiamHome()
          Return SIAM home directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOCENodeConfigurator

public FOCENodeConfigurator()
Method Detail

createNodeService

public NodeService createNodeService(PortManager portManager,
                                     java.lang.String portalHost)
                              throws java.rmi.RemoteException,
                                     MissingPropertyException,
                                     InvalidPropertyException,
                                     java.io.IOException
Return a NodeService appropriate to this configuration

Specified by:
createNodeService in interface NodeConfigurator
Throws:
java.rmi.RemoteException
MissingPropertyException
InvalidPropertyException
java.io.IOException

getSiamHome

public java.lang.String getSiamHome()
                             throws MissingPropertyException
Return SIAM home directory.

Specified by:
getSiamHome in interface NodeConfigurator
Throws:
MissingPropertyException

createPortManager

public PortManager createPortManager(NodeProperties nodeProps)
                              throws MissingPropertyException,
                                     InvalidPropertyException
Return a PortManager appropriate to this configuration

Specified by:
createPortManager in interface NodeConfigurator
Throws:
MissingPropertyException
InvalidPropertyException

createNodeProperties

public NodeProperties createNodeProperties(java.lang.String cfgFileName)
                                    throws java.io.FileNotFoundException,
                                           MissingPropertyException,
                                           java.io.IOException
Return NodeProperties appropriate to this configuration

Specified by:
createNodeProperties in interface NodeConfigurator
Throws:
java.io.FileNotFoundException
MissingPropertyException
java.io.IOException

createDeviceLog

public FilteredDeviceLogIF createDeviceLog(long nodeId,
                                           NodeProperties properties)
                                    throws MissingPropertyException,
                                           InvalidPropertyException,
                                           java.io.IOException
Create the Node Log

Specified by:
createDeviceLog in interface NodeConfigurator
Throws:
MissingPropertyException
InvalidPropertyException
java.io.IOException

createNetworkManager

public NetworkManager createNetworkManager(java.lang.String localHostName)
                                    throws java.net.UnknownHostException,
                                           java.net.SocketException
Create the NetworkManager

Specified by:
createNetworkManager in interface NodeConfigurator
Throws:
java.net.UnknownHostException
java.net.SocketException

createSleepManager

public SleepManager createSleepManager()
Return null for SleepManager

Specified by:
createSleepManager in interface NodeConfigurator

createWDTManager

public WDTManager createWDTManager()
Return null for WDTManager

Specified by:
createWDTManager in interface NodeConfigurator


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.