Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.alicebot.server.core
Class FlatFileMultiplexor  view FlatFileMultiplexor download FlatFileMultiplexor.java

java.lang.Object
  extended byorg.alicebot.server.core.Multiplexor
      extended byorg.alicebot.server.core.FlatFileMultiplexor

public class FlatFileMultiplexor
extends Multiplexor


Field Summary
private static java.lang.String FFM_DIR_NAME
           
private static java.lang.String FFM_FILE_LABEL
           
private static java.lang.String PREDICATES_SUFFIX
           
private static java.util.Hashtable predicateSets
           
 
Fields inherited from class org.alicebot.server.core.Multiplexor
ASTERISK, avgResponseTime, EMPTY_STRING, HOST_NAME, INPUT, PREDICATE_EMPTY_DEFAULT, QUOTE_MARK, responseCount, SECRET_KEY, SHOW_CONSOLE, SHOW_MATCH_TRACE, SPACE, STAR, startTime, THAT, TOPIC, totalTime, USE_TARGETING, VALUE
 
Constructor Summary
FlatFileMultiplexor()
           
 
Method Summary
 boolean changePassword(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
 boolean checkUser(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
 boolean createUser(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
 java.lang.String loadPredicate(java.lang.String s, java.lang.String s1, java.lang.String s2)
           
private static java.util.Properties loadPredicates(java.lang.String s, java.lang.String s1)
           
 void savePredicate(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
private static void savePredicates(java.util.Properties properties, java.lang.String s, java.lang.String s1)
           
 int useridCount(java.lang.String s)
           
 
Methods inherited from class org.alicebot.server.core.Multiplexor
addPulse, averageResponseTime, getInternalResponse, getResponse, initialize, pulse, queriesPerHour
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

predicateSets

private static java.util.Hashtable predicateSets

FFM_DIR_NAME

private static final java.lang.String FFM_DIR_NAME
See Also:
Constant Field Values

PREDICATES_SUFFIX

private static final java.lang.String PREDICATES_SUFFIX
See Also:
Constant Field Values

FFM_FILE_LABEL

private static final java.lang.String FFM_FILE_LABEL
See Also:
Constant Field Values
Constructor Detail

FlatFileMultiplexor

public FlatFileMultiplexor()
Method Detail

checkUser

public boolean checkUser(java.lang.String s,
                         java.lang.String s1,
                         java.lang.String s2,
                         java.lang.String s3)
Specified by:
checkUser in class Multiplexor

createUser

public boolean createUser(java.lang.String s,
                          java.lang.String s1,
                          java.lang.String s2,
                          java.lang.String s3)
Specified by:
createUser in class Multiplexor

changePassword

public boolean changePassword(java.lang.String s,
                              java.lang.String s1,
                              java.lang.String s2,
                              java.lang.String s3)
Specified by:
changePassword in class Multiplexor

savePredicate

public void savePredicate(java.lang.String s,
                          java.lang.String s1,
                          java.lang.String s2,
                          java.lang.String s3)
Specified by:
savePredicate in class Multiplexor

loadPredicate

public java.lang.String loadPredicate(java.lang.String s,
                                      java.lang.String s1,
                                      java.lang.String s2)
                               throws NoSuchPredicateException
Specified by:
loadPredicate in class Multiplexor

loadPredicates

private static java.util.Properties loadPredicates(java.lang.String s,
                                                   java.lang.String s1)

savePredicates

private static void savePredicates(java.util.Properties properties,
                                   java.lang.String s,
                                   java.lang.String s1)

useridCount

public int useridCount(java.lang.String s)
Specified by:
useridCount in class Multiplexor