|
New Controls Work JDK 1.3 API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.fnal.controls.acnet.AcnetWrite
Support for writing to the Acnet socket. Acnet usage is restricted to server engines.
Field Summary | |
static int |
ACNET_BMAX_MESSAGE_SIZE
maximum size of big Acnet message, excluding header |
static int |
ACNET_MAX_MESSAGE_SIZE
|
protected static boolean |
didPassthru
flag set true if passthru required |
protected static short |
pktrNode
Packetter trunk and node |
protected static short |
pktrTrunk
Packetter trunk and node |
protected static short |
vaxNode
VAX trunk and node which may be used for passthru |
protected static short |
vaxTrunk
VAX trunk and node which may be used for passthru |
Constructor Summary | |
AcnetWrite()
|
Method Summary | |
protected static int |
acnetSendPacket(AcnetHeader aHdr)
send a status-only Acnet packet. |
protected static int |
acnetSendPacket(AcnetHeader aHdr,
byte[] userData,
int userLen,
int userOffset)
send an Acnet packet. |
static short[] |
getAcnetTrunkNode(String name)
get an Acnet trunk and node with automatic translation to alternate IP trunk and node (if available) |
static String |
getLocalAcnet()
get local trunk/node text string |
static int |
getTotalPacketsWritten()
get the total number of packets written |
static boolean |
isClassBugs()
inquire on the state of the debug message switch. |
static String |
reportStatistics()
Return a statistics report. |
static void |
setClassBugs(boolean onOff)
set the state of the debug message switch. |
static void |
setJPassNode(String nodeName)
set the default vax JPASS node. |
static void |
setWriteSocket(DatagramSocket s)
set the socket to be used for Acnet communications. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ACNET_MAX_MESSAGE_SIZE
public static final int ACNET_BMAX_MESSAGE_SIZE
protected static short pktrTrunk
protected static short pktrNode
protected static short vaxTrunk
protected static short vaxNode
protected static boolean didPassthru
Constructor Detail |
public AcnetWrite()
Method Detail |
public static void setJPassNode(String nodeName)
nodeName
- JPASS nodepublic static void setClassBugs(boolean onOff)
onOff
- boolean state for the switchpublic static boolean isClassBugs()
public static int getTotalPacketsWritten()
public static short[] getAcnetTrunkNode(String name)
name
- the Acnet node namepublic static String getLocalAcnet()
public static void setWriteSocket(DatagramSocket s)
s
- the Datagram socketprotected static int acnetSendPacket(AcnetHeader aHdr)
aHdr
- the Acnet headerprotected static int acnetSendPacket(AcnetHeader aHdr, byte[] userData, int userLen, int userOffset)
aHdr
- the Acnet headeruserData
- the user datauserLength
- the length of the user datauserOffset
- the offset from the beginning of the user data to sendpublic static String reportStatistics()
|
New Controls Work JDK 1.3 API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000-2001, Universities Research Association, Inc. All rights reserved.