|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ami.AMIInputProcessor
Processor used to analyse incomming queries and to manage them ( reply to an amiping, broadcast an AR ...)
Field Summary | |
private AMIQuery |
aq
Query to process |
private AMIQuery |
aqVoid
void query used for synchronization |
private boolean |
bStop
boolean used to stop the thread |
private static Hashtable |
hAmiping
Hashtable mapping IP with amiping pu results ( synchronous query ) |
(package private) Thread |
t
Thread used for auto-start |
private static Vector |
vProcessors
Contains all AMIInputProcessor |
Constructor Summary | |
(package private) |
AMIInputProcessor()
Default constructor |
Method Summary | |
(package private) static void |
createProcessors(int iNbProcessors)
Used to instancate n processors, n must be equals to nb readers |
(package private) static int |
evaluateIaiInformation(AMIiai iai)
Used to avaluate interrest of the iai and stores results if it is a reply for an AR Note that the fact of having unknown putr is not concidered as new result |
(package private) static Hashtable |
getAmipingTable()
Returns the amiping table ( used by AMISenders ) |
(package private) static AMIInputProcessor |
getProcessor()
Get next available processor |
(package private) AMIQuery |
getQuery()
Returns current processed query |
(package private) boolean |
isAvailable()
Returns availability of the processor |
(package private) static void |
process(AMIQuery aq)
processes new queries |
(package private) static void |
processAmiping(AMIping aping)
processes incoming amiping |
(package private) static void |
processAr(AMIar ar)
processes incoming ar assumes ( thanks to input spool ) that: - TTL is ok |
(package private) static void |
processIai(AMIiai iai)
processes incoming iai |
void |
run()
Thread used to process new queries assumes that Input queries are validated and well-formed ( XML and AMI level ). |
(package private) void |
setQuery(AMIQuery aq)
Convenient method to notify new data to process |
(package private) void |
stop()
Finalize the input processor |
(package private) static void |
stopAll()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
private static Hashtable hAmiping
private volatile boolean bStop
private static Vector vProcessors
private AMIQuery aqVoid
private AMIQuery aq
Thread t
Constructor Detail |
AMIInputProcessor()
Method Detail |
static void createProcessors(int iNbProcessors)
static AMIInputProcessor getProcessor()
next available processor
null if no one is available
boolean isAvailable()
AMIQuery getQuery()
public void run()
run
in interface Runnable
void setQuery(AMIQuery aq)
static Hashtable getAmipingTable()
static void process(AMIQuery aq) throws AMIException
static void processAmiping(AMIping aping) throws AMIException
static void processIai(AMIiai iai) throws AMIException
static int evaluateIaiInformation(AMIiai iai) throws AMIException
-1 if information is wrong
0 if information is right but known or non-ami AR
1 if information is right and new
AMIException
- static void processAr(AMIar ar) throws AMIException
void stop()
static void stopAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |