Methods Summary |
---|
public java.util.Vector | getPreallocated(java.lang.String seqName)
return getPreallocatedSequences(seqName);
|
protected java.util.Vector | getPreallocatedSequences(java.lang.String seqName)PROTECTED:
return a vector from the global sequences based on
seqName. If there is not one, put it there.
Vector sequencesForName;
synchronized (preallocatedSequences) {
sequencesForName = (Vector)preallocatedSequences.get(seqName);
if (sequencesForName == null) {
sequencesForName = new Vector();
preallocatedSequences.put(seqName, sequencesForName);
}
}
return sequencesForName;
|
public void | initializePreallocated()
preallocatedSequences = new Hashtable(20);
|
public void | initializePreallocated(java.lang.String seqName)
preallocatedSequences.remove(seqName);
|
public boolean | isConnected()
return preallocatedSequences != null;
|
public void | onConnect()
initializePreallocated();
|
public void | onDisconnect()
preallocatedSequences = null;
|
public void | setPreallocated(java.lang.String seqName, java.util.Vector sequences)
getPreallocatedSequences(seqName).addAll(sequences);
|