|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.retail.AEF.factory.AEFSessionFactoryInfo
AEFSessionFactoryInfo encapsulates information about the current status of the factory. It is primarily used to determine factory capability and utilization for the purposes of load balancing among multiple factories through a single SessionServer.
Field Summary | |
---|---|
protected java.lang.String |
beaconStr
|
protected int |
currentPoolSize
|
protected java.lang.String |
ID
|
protected java.lang.String |
localTerminalNumber
|
protected java.util.TreeSet |
reservedTerminalNumberList
|
protected java.lang.String |
reservedTerminalNumbers
|
protected java.util.TreeSet |
terminalNumberList
|
protected java.lang.String |
terminalNumbers
|
protected int |
totalAvailableSessions
|
protected boolean |
tss
|
protected java.lang.String |
URI
|
Constructor Summary | |
---|---|
AEFSessionFactoryInfo()
AEFSessionFactoryInfo constructor |
Method Summary | |
---|---|
(package private) static java.lang.String |
copyright()
|
java.lang.String |
getBeaconString()
Returns a String suitable for a beacon buffer containing the state information of this info object. |
int |
getCurrentPoolSize()
Get the total number of sessions currently in the session pool |
java.lang.String |
getID()
Get the factory ID |
java.lang.String |
getLocalTerminalNumber()
Get the terminal number for AEF running in real terminal. |
java.util.Collection |
getReservedTerminalNumbers()
Get the terminal numbers that are considered "reserved" for this factory. |
java.util.Collection |
getTerminalNumbers()
Get the terminal numbers that this factory assigns. |
int |
getTotalAvailableSessions()
Get the total number of sessions that are available |
int |
getTotalCapacity()
Get the total factory capacity |
java.lang.String |
getURI()
Get the factory URI if factory is exposed via RMI. |
void |
initWithBeaconData(java.lang.String beaconStr)
Initialize the member data from a byte array. |
boolean |
isTSS()
Get the TSS (virtual terminals) flag |
boolean |
isValidTerminalNumber(java.lang.String terminalNumber)
Determine if this factory can create a specific terminal |
protected java.util.TreeSet |
parseTerminalNumbers(java.lang.String termNums)
Set the terminal numbers that this factory assigns Format is a comma separated list or range (e.g., 10-20,22,25) |
void |
setCurrentPoolSize(int t)
Set the total number of sessions currently in the session pool |
void |
setID(java.lang.String s)
Set the factory ID |
void |
setLocalTerminalNumber(java.lang.String t)
Set the local terminal number for this factory (non-tss) |
java.lang.String |
setReservedTerminalNumbers(java.lang.String t)
Set the reserved terminal numbers for this factory. |
void |
setTerminalNumbers(java.lang.String t)
Set the terminal numbers that this factory assigns. |
void |
setTotalAvailableSessions(int t)
Set the total number of sessions that are available |
void |
setTSS(boolean flag)
Set the TSS flag |
void |
setURI(java.lang.String s)
Set the factory URI |
java.lang.String |
toString()
Returns the internal representation of this object as a string. |
protected void |
validateReservedTerminalNumbers()
Validate validate that the reserved terminal numbers are contained in the set of specified terminal numbers - if not, a warning is logged and the offending terminals are removed from the set of reserved terminal numbers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int currentPoolSize
protected int totalAvailableSessions
protected boolean tss
protected java.lang.String localTerminalNumber
protected java.lang.String terminalNumbers
protected java.util.TreeSet terminalNumberList
protected java.lang.String reservedTerminalNumbers
protected java.util.TreeSet reservedTerminalNumberList
protected java.lang.String ID
protected java.lang.String URI
protected java.lang.String beaconStr
Constructor Detail |
public AEFSessionFactoryInfo()
Method Detail |
static java.lang.String copyright()
public void initWithBeaconData(java.lang.String beaconStr)
The beacon data is of the form
f|factory_id|RMI_URI|current_pools_size|total_available_sessions|is_TSS(T or F)|terminal_numbers
public java.lang.String getID()
public java.lang.String getURI()
public int getTotalCapacity()
public boolean isTSS()
public int getCurrentPoolSize()
public java.util.Collection getTerminalNumbers()
public java.util.Collection getReservedTerminalNumbers()
public java.lang.String getLocalTerminalNumber()
public int getTotalAvailableSessions()
public void setID(java.lang.String s)
s
- factory IDpublic void setURI(java.lang.String s)
s
- factory URIpublic void setTerminalNumbers(java.lang.String t)
t
- terminal numbers as comma separated listpublic java.lang.String setReservedTerminalNumbers(java.lang.String t)
This list of terminal numbers is validated against the overall
set of terminal numbers (set by setTerminalNumbers(String)
.
Any terminal numbers in the reserved list that are not in the
overall list are removed. A String representation of the
validated list (which may have been modified) is returned.
t
- terminal numbers as comma separated list
protected java.util.TreeSet parseTerminalNumbers(java.lang.String termNums)
protected void validateReservedTerminalNumbers()
public void setCurrentPoolSize(int t)
t
- total number of sessions in poolpublic void setLocalTerminalNumber(java.lang.String t)
t
- local terminal numberpublic void setTotalAvailableSessions(int t)
t
- total available sessionspublic void setTSS(boolean flag)
flag
- true if TSS (virtual terminals) factorypublic boolean isValidTerminalNumber(java.lang.String terminalNumber)
terminalNumber
- identifies a terminal
public java.lang.String getBeaconString()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |