|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ami.AMIServiceProcessor
Thread used to process incoming AIS ( AMI Input Services )
Singleton
Field Summary | |
private static AMIServiceProcessor |
asp
Self instance used for signleton pattern |
static AMISubject |
asub
A subject ( see observer pattern ) |
private static boolean |
bStop
|
private static String |
sOutputCode
|
(package private) Thread |
t
|
private Vector |
vAISPacketBuffer
|
Constructor Summary | |
private |
AMIServiceProcessor()
Constructor for the AMIServiceProcessor object |
Method Summary | |
private void |
addAmiset(Hashtable hAIS)
Add entry in a set |
private void |
addAr(Hashtable hAIS)
used to add an AR into AMI engine buffer If an AR with the same id is already in buffer, we don't do anything |
private void |
addCleanrt(Hashtable hAIS)
used to add a RT cleaning request |
private void |
addEai(Hashtable hAIS)
used to add an EAI into AMI engine buffer |
private void |
addProtocol(Hashtable hAIS)
used to add a new protocol on AMI engine We assume that the description file is correct ( well-formed and contains SYSTEM attribute ) to be added : check description file before registration |
private void |
addStop()
Called to process STOP AIS |
private void |
check(Hashtable hAIS)
Method used to autenticate the AIS |
private void |
getAmiparameter(Hashtable hAIS)
used to get an AMI engine parameter value |
private void |
getAmiset(Hashtable hAIS)
Get a set enumeration |
private void |
getInfopeer(Hashtable hAIS)
used to get information on a peer |
static AMIServiceProcessor |
getInstance()
Return a self instance Implementation of the singleton pattern |
private void |
getIsolated(Hashtable hAIS)
used to get our isolation flag ( are we alone ?) |
static String |
getOutputCode()
Returns the sOutputCode. |
private void |
getProtocolStatus(Hashtable hAIS)
used to get the status of a protocol (available or not ). |
private boolean |
isOlderThan(AMIPublicKey apk,
int iValue)
Helper used to determine if a peer DLC is older than the given amount of seconds |
private void |
notifyObservers(String sCode)
Helper used to notify obsersers about value change |
(package private) void |
processAISPacket(Vector vAISPacket)
Method used to add an AISPacket to list to be processed |
(package private) static void |
refreshArResult(String sArid)
Called by the AMIInputProcessor to triger that we have a new result for a waited AR |
private void |
removeAmiset(Hashtable hAIS)
Remove an entry from a set |
private void |
removeAr(Hashtable hAIS)
used to remove an AR from AMI engine buffer |
private void |
removeProtocol(Hashtable hAIS)
used to drop a protocol from AMI trusted protocols |
private void |
replyCode(String sID,
String sCode)
Convenient method used to reply with a code |
void |
run()
Main processing method for the AMIServiceProcessor object |
private void |
setAmiparameter(Hashtable hAIS)
used to set an AMI engine parameter value |
static void |
setOutputCode(String sOutputCode)
Sets the sOutputCode. |
private void |
setProtocolStatus(Hashtable hAIS)
used to set the status of a protocol (available or not ). |
(package private) static void |
stop()
Finalize the service processor |
Methods inherited from class java.lang.Object |
|
Field Detail |
Thread t
private Vector vAISPacketBuffer
private static volatile boolean bStop
private static String sOutputCode
public static AMISubject asub
private static AMIServiceProcessor asp
Constructor Detail |
private AMIServiceProcessor()
Method Detail |
public static AMIServiceProcessor getInstance()
Implementation of the singleton pattern
public void run()
run
in interface Runnable
private void check(Hashtable hAIS) throws AMIException
void processAISPacket(Vector vAISPacket)
vAISPacket
- Description of Parameterprivate void addAr(Hashtable hAIS) throws AMIException
static void refreshArResult(String sArid)
private void removeAr(Hashtable hAIS) throws AMIException
private void addEai(Hashtable hAIS) throws AMIException
private void getIsolated(Hashtable hAIS) throws AMIException
private void getAmiparameter(Hashtable hAIS) throws AMIException
private void setAmiparameter(Hashtable hAIS) throws AMIException
private void addAmiset(Hashtable hAIS) throws AMIException
private void removeAmiset(Hashtable hAIS) throws AMIException
private void getAmiset(Hashtable hAIS) throws AMIException
private void getInfopeer(Hashtable hAIS) throws AMIException
private void addCleanrt(Hashtable hAIS) throws AMIException
private boolean isOlderThan(AMIPublicKey apk, int iValue)
apk
- Peer to be checkediValue
- Period in secondsprivate void notifyObservers(String sCode)
private void getProtocolStatus(Hashtable hAIS) throws AMIException
private void setProtocolStatus(Hashtable hAIS) throws AMIException
private void addProtocol(Hashtable hAIS) throws AMIException
private void removeProtocol(Hashtable hAIS) throws AMIException
private void addStop() throws AMIException
private void replyCode(String sID, String sCode)
static void stop()
public static String getOutputCode()
public static void setOutputCode(String sOutputCode)
sOutputCode
- The sOutputCode to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |