Package org.teiid.adminapi.impl
Class SessionMetadata
- java.lang.Object
-
- org.teiid.adminapi.impl.AdminObjectImpl
-
- org.teiid.adminapi.impl.SessionMetadata
-
- All Implemented Interfaces:
Serializable
,AdminObject
,DomainAware
,Session
,SessionBean
public class SessionMetadata extends AdminObjectImpl implements Session
Add and delete properties also in the Mapper class for correct wrapping for profile service.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.teiid.adminapi.impl.AdminObjectImpl
attachments
-
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description SessionMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
addAndGetBytesUsed(long bytes)
String
getApplicationName()
Get the Application Namelong
getBytesUsed()
String
getClientHardwareAddress()
Get the client hardware (typically MAC) address.String
getClientHostName()
Get the host name of the machine the client is accessing from.long
getCreatedTime()
Get the time theSession
was created.String
getIPAddress()
Get the IPAddress for this Session.long
getLastPingTime()
Get the Last time Client has check to see if the server is still availableObject
getSecurityContext()
String
getSecurityDomain()
Security Domain user logged into currentlyString
getSessionId()
Get the unique Teiid session within a given Teiid SystemSessionToken
getSessionToken()
Map<String,Object>
getSessionVariables()
Subject
getSubject()
String
getUserName()
Get User Name for this Session
It will not include the Security Domain, seeSessionBean.getSecurityDomain()
VDBMetaData
getVdb()
String
getVDBName()
Get the VDB Name for this SessionString
getVDBVersion()
Get the VDB Version for this Sessionboolean
isActive()
boolean
isClosed()
boolean
isEmbedded()
void
setActive(boolean active)
void
setApplicationName(String applicationName)
void
setClientHardwareAddress(String clientHardwareAddress)
void
setClientHostName(String clientHostname)
void
setClosed()
void
setCreatedTime(long createdTime)
void
setEmbedded(boolean embedded)
void
setIPAddress(String ipAddress)
void
setLastPingTime(long lastPingTime)
void
setSecurityContext(Object securityContext)
void
setSecurityDomain(String domain)
void
setSessionId(String sessionId)
void
setSessionToken(SessionToken sessionToken)
void
setSubject(Subject subject)
void
setUserName(String userName)
void
setVdb(VDBMetaData vdb)
void
setVDBName(String vdbName)
void
setVDBVersion(Object vdbVersion)
String
toString()
-
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl
addAttachment, addAttchment, addProperty, getAttachment, getHostName, getName, getProperties, getPropertiesMap, getPropertyValue, getServerGroup, getServerName, removeAttachment, removeProperty, setHostName, setName, setProperties, setServerGroup, setServerName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teiid.adminapi.AdminObject
getName, getProperties, getPropertyValue
-
Methods inherited from interface org.teiid.adminapi.DomainAware
getHostName, getServerGroup, getServerName
-
-
-
-
Method Detail
-
getApplicationName
public String getApplicationName()
Description copied from interface:SessionBean
Get the Application Name- Specified by:
getApplicationName
in interfaceSessionBean
- Returns:
- String of the Application Name
-
setApplicationName
public void setApplicationName(String applicationName)
-
getCreatedTime
public long getCreatedTime()
Description copied from interface:SessionBean
Get the time theSession
was created.- Specified by:
getCreatedTime
in interfaceSessionBean
- Returns:
-
setCreatedTime
public void setCreatedTime(long createdTime)
-
getClientHostName
public String getClientHostName()
Description copied from interface:SessionBean
Get the host name of the machine the client is accessing from. Note this value is reported from the client.- Specified by:
getClientHostName
in interfaceSessionBean
- Returns:
-
setClientHostName
public void setClientHostName(String clientHostname)
-
getIPAddress
public String getIPAddress()
Description copied from interface:SessionBean
Get the IPAddress for this Session. Note this value is reported from the client.- Specified by:
getIPAddress
in interfaceSessionBean
- Returns:
-
setIPAddress
public void setIPAddress(String ipAddress)
-
getLastPingTime
public long getLastPingTime()
Description copied from interface:SessionBean
Get the Last time Client has check to see if the server is still available- Specified by:
getLastPingTime
in interfaceSessionBean
- Returns:
- Date of the last ping to the server.
-
setLastPingTime
public void setLastPingTime(long lastPingTime)
-
getSessionId
public String getSessionId()
Description copied from interface:SessionBean
Get the unique Teiid session within a given Teiid System- Specified by:
getSessionId
in interfaceSessionBean
- Returns:
- String of the Session ID
-
setSessionId
public void setSessionId(String sessionId)
-
getUserName
public String getUserName()
Description copied from interface:SessionBean
Get User Name for this Session
It will not include the Security Domain, seeSessionBean.getSecurityDomain()
- Specified by:
getUserName
in interfaceSessionBean
- Returns:
- String of UserName
-
setUserName
public void setUserName(String userName)
-
getVDBName
public String getVDBName()
Description copied from interface:SessionBean
Get the VDB Name for this Session- Specified by:
getVDBName
in interfaceSessionBean
- Returns:
- String name of the VDB
-
setVDBName
public void setVDBName(String vdbName)
-
getVDBVersion
public String getVDBVersion()
Description copied from interface:SessionBean
Get the VDB Version for this Session- Specified by:
getVDBVersion
in interfaceSessionBean
- Returns:
- String name/number of the VDB Version
-
setVDBVersion
public void setVDBVersion(Object vdbVersion)
-
getSecurityDomain
public String getSecurityDomain()
Description copied from interface:SessionBean
Security Domain user logged into currently- Specified by:
getSecurityDomain
in interfaceSessionBean
- Returns:
-
setSecurityDomain
public void setSecurityDomain(String domain)
-
getVdb
public VDBMetaData getVdb()
-
setVdb
public void setVdb(VDBMetaData vdb)
-
getSessionToken
public SessionToken getSessionToken()
-
setSessionToken
public void setSessionToken(SessionToken sessionToken)
-
setSubject
public void setSubject(Subject subject)
-
getSecurityContext
public Object getSecurityContext()
-
setSecurityContext
public void setSecurityContext(Object securityContext)
-
getSubject
public Subject getSubject()
-
setEmbedded
public void setEmbedded(boolean embedded)
-
isEmbedded
public boolean isEmbedded()
-
getClientHardwareAddress
public String getClientHardwareAddress()
Description copied from interface:SessionBean
Get the client hardware (typically MAC) address. Note this value is reported from the client.- Specified by:
getClientHardwareAddress
in interfaceSessionBean
- Returns:
- the hardware address as a hex string or null if not available.
-
setClientHardwareAddress
public void setClientHardwareAddress(String clientHardwareAddress)
-
setClosed
public void setClosed()
-
isClosed
public boolean isClosed()
-
getBytesUsed
public long getBytesUsed()
-
addAndGetBytesUsed
public long addAndGetBytesUsed(long bytes)
-
isActive
public boolean isActive()
-
setActive
public void setActive(boolean active)
-
-