public class NodeUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
FAILURE_OUT |
static int |
NOHIT_OUT |
static int |
OF_HOLDON |
static int |
OF_KEEPNEW |
static int |
OF_KEEPOLD |
static int |
RESULT_OUT |
Constructor and Description |
---|
NodeUtils()
default constructor for NodeUtils
|
Modifier and Type | Method and Description |
---|---|
static int |
getOutstandingSize(XQueue xq,
int begin,
int len)
returns number of outstanding messages for the given xqueue
|
static java.util.Map<java.lang.String,java.lang.Object> |
getReport(java.lang.String name)
returns the report map of the name from the default container
|
static AssetList |
initFixedOutLinks(long tm,
int outCapacity,
int size,
int[] overlap,
java.lang.String name,
java.util.List list)
It initializes all fixed outLinks stored in list and returns an
instance of AssetList with metaData on each of valid outLinks.
|
static AssetList |
initOutLinks(long tm,
int outCapacity,
int size,
int overflow,
java.lang.String name,
java.util.List list)
It initializes all outLinks stored in list and returns an
instance of AssetList with metaData on each of outLinks.
|
static int |
passthru(long waitTime,
javax.jms.Message msg,
XQueue in,
XQueue out,
long[] outInfo,
int option)
puts a msg to out XQ with overflowOption implemented and returns
a non-negative number upon success or -1 otherwise
|
static void |
stopRunning(XQueue xq) |
public static final int OF_HOLDON
public static final int OF_KEEPNEW
public static final int OF_KEEPOLD
public static final int RESULT_OUT
public static final int FAILURE_OUT
public static final int NOHIT_OUT
public static AssetList initFixedOutLinks(long tm, int outCapacity, int size, int[] overlap, java.lang.String name, java.util.List list)
public static AssetList initOutLinks(long tm, int outCapacity, int size, int overflow, java.lang.String name, java.util.List list)
public static int passthru(long waitTime, javax.jms.Message msg, XQueue in, XQueue out, long[] outInfo, int option)
public static void stopRunning(XQueue xq)
public static int getOutstandingSize(XQueue xq, int begin, int len)
public static java.util.Map<java.lang.String,java.lang.Object> getReport(java.lang.String name)