New Controls Work
JDK 1.3 API

gov.fnal.controls.acnet
Class AcnetNodeTables

java.lang.Object
  |
  +--gov.fnal.controls.acnet.AcnetNodeTables
All Implemented Interfaces:
DbServer.Constants, SybaseServer.Constants

public class AcnetNodeTables
extends Object
implements DbServer.Constants

Allows access to the Acnet node tables. The fields supported include trunk, node, Acnet node name, IP node name, and IP address. Information about the LOCAL node is also maintained.

Version:
$Revision: 1.4 $ $Author: devoy $
Author:
Glenn C. Johnson

Fields inherited from interface gov.fnal.controls.db.SybaseServer.Constants
ADBS, BDBS, DDBS, MDBS
 
Constructor Summary
AcnetNodeTables()
           
 
Method Summary
static boolean doesBigMes(short trunk, short node)
          Inquire as the the capability of a node to handle big messages (32K bytes).
static String getAcnetFromIPName(String name)
          Get the Node object corresponding to an ip name
static String getAcnetName(short trunk, short node)
          Get the Acnet node name corresponding to a trunk and node.
protected static void getAcnetNodeTables()
           
static short[] getAltTrunkNode(short trunk, short node)
          Get the alternate Acnet trunk and node numbers corresponding to a trunk and node.
static short[] getAltTrunkNode(String name)
          Get the alternate Acnet trunk and node numbers corresponding to a name.
static short[] getDaqTrunkNode(short trunk, short node)
          Get the trunk and node number of the data acquisition consolidator node associated with the input trunk and node.
static InetAddress getInetAddress(short trunk, short node)
          Get the IP address for a specific Acnet trunk and node.
static String getIpName(String name)
          Get the IP node name corresponding to an Acnet name
static String getLocalAcnetName()
          Get the LOCAL Acnet node name
static int getLocalNode()
          Get the LOCAL Acnet node.
static int getLocalTrunk()
          Get the LOCAL Acnet trunk.
static short[] getLocalTrunkNode()
          Get the LOCAL Acnet trunk and node number
static short[] getTrunkNode(String name)
          Get the Acnet trunk and node numbers corresponding to a name.
static boolean setDaqUpDown(short trunk, short node, boolean upFlag)
          Set the operating status of a data acquisition consolidation server to either UP or DOWN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcnetNodeTables

public AcnetNodeTables()
Method Detail

getAcnetNodeTables

protected static void getAcnetNodeTables()

getInetAddress

public static InetAddress getInetAddress(short trunk,
                                         short node)
Get the IP address for a specific Acnet trunk and node. Note that null is returned if the trunk/node is not supported on UDP/IP.
Parameters:
trunk - the trunk number
node - the node number
Returns:
InetAddress object

doesBigMes

public static boolean doesBigMes(short trunk,
                                 short node)
Inquire as the the capability of a node to handle big messages (32K bytes).
Parameters:
trunk - the trunk number
node - the node number
Returns:
true if big messages allowed for this trunk/node

setDaqUpDown

public static boolean setDaqUpDown(short trunk,
                                   short node,
                                   boolean upFlag)
Set the operating status of a data acquisition consolidation server to either UP or DOWN.
Parameters:
trunk - the trunk number of the daq
node - the node number of the daq
upFlag - true = UP, false = DOWN
Returns:
true if the status successfully modified

getTrunkNode

public static short[] getTrunkNode(String name)
Get the Acnet trunk and node numbers corresponding to a name. Warning: this method does not provide automatic translation to an IP node. See AcnetWrite.getAcnetTrunkNode
Parameters:
name - the Acnet node name
Returns:
trunk + node as array: trunk first (-1,-1 if error)

getAltTrunkNode

public static short[] getAltTrunkNode(String name)
Get the alternate Acnet trunk and node numbers corresponding to a name.
Parameters:
name - the Acnet node name
Returns:
trunk + node as array: trunk first (-1,-1 if error)

getAltTrunkNode

public static short[] getAltTrunkNode(short trunk,
                                      short node)
Get the alternate Acnet trunk and node numbers corresponding to a trunk and node.
Parameters:
trunk - the trunk number
node - the node number
Returns:
trunk + node as array: trunk first (-1,-1 if error)

getAcnetName

public static String getAcnetName(short trunk,
                                  short node)
Get the Acnet node name corresponding to a trunk and node.
Parameters:
trunk - the trunk number
node - the node number
Returns:
node name, or null

getIpName

public static String getIpName(String name)
Get the IP node name corresponding to an Acnet name
Parameters:
name - the Acnet node name
Returns:
IP node name, or null

getDaqTrunkNode

public static short[] getDaqTrunkNode(short trunk,
                                      short node)
Get the trunk and node number of the data acquisition consolidator node associated with the input trunk and node. If the primary daq consolidator is down, the next available daq consolidator will be returned. Special values returned include (-1,-1) if input node not defined, and (0,0) if no available (and UP) daq server could be found. If the input trunk/node has no assigned daq consolidator, the input trunk and node may be returned as output values.
Parameters:
trunk - the trunk number
node - the node number
Returns:
trunk + node as array: trunk first

getAcnetFromIPName

public static String getAcnetFromIPName(String name)
Get the Node object corresponding to an ip name
Parameters:
name - the ip name
Returns:
the Acnet node name (or null)

getLocalTrunkNode

public static short[] getLocalTrunkNode()
Get the LOCAL Acnet trunk and node number
Returns:
trunk + node as array: trunk first (-1,-1 if error)

getLocalTrunk

public static int getLocalTrunk()
Get the LOCAL Acnet trunk.
Returns:
the LOCAL ACNET trunk (-1 if error)

getLocalNode

public static int getLocalNode()
Get the LOCAL Acnet node.
Returns:
the LOCAL ACNET node (-1 if error)

getLocalAcnetName

public static String getLocalAcnetName()
Get the LOCAL Acnet node name
Returns:
node name (String)

New Controls Work
JDK 1.3 API

Generated Wed Jul 11 09:44:20 2001 by devoy using alphadoc v1.0

Copyright © 2000-2001, Universities Research Association, Inc. All rights reserved.