BBjSessionInfo

Description

A BBjSessionInfo provides information about a single session running in BBj.

Creation

BBjAPI > BBjSessionInfo

The BBjSessionInfo object is obtained through the following BBjAPI object method:

Return Value

Method

BBjSessionInfo

getCurrentSessionInfo()

BBjVector

getSessionInfos()

Methods of BBjSessionInfo

Return Value

Method

string

getConnectTime()

long getCpuTime()

int

getGroupID()

int

getID() - deprecated, use getSessionID()  

string

getIPAddress()

string

getLineListing()

string

getMessage()

int

getProgramLine()

string

getProgramName()

int

getSessionID()

string

getTerminalID()

string

getTerminalName()

int

getUnresponsiveTime()

string

getUser()

long getUserTime()

boolean

isBackground()

Events

None.

Constants

None.

Example

rem ' BBjSessionInfo

info$ = stbl("!SESSIONINFO","Session Info Message")
info! = bbjapi().getCurrentSessionInfo()
print 'br',"bbjapi().getCurrentSessionInfo: ",'er',info!
print "getUser: ",info!.getUser()
print "getUnresponsiveTime:",info!.getUnresponsiveTime()
print "getIPAddress: ",info!.getIPAddress()
print "getConnectTime: ",info!.getConnectTime()
print "getProgramName: ",info!.getProgramName()
print "getProgramLine:",info!.getProgramLine()
print "getLineListing: ",info!.getLineListing()
print "isBackground: ",info!.isBackground()
print "getSessionID:",info!.getSessionID()
print "getTerminalID: ",info!.getTerminalID()
print "getTerminalName: ",info!.getTerminalName()
print "getMessage: ",info!.getMessage()

vector! = bbjapi().getSessionInfos()
size = vector!.size()
print 'br',"bbjapi().getSessionInfos:",'er'
for i = 0 to size - 1
    info! = vector!.get(i)
    print info!
next i
end

See Also

BBjAPI ()

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.