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 longaddAndGetBytesUsed(long bytes)StringgetApplicationName()Get the Application NamelonggetBytesUsed()StringgetClientHardwareAddress()Get the client hardware (typically MAC) address.StringgetClientHostName()Get the host name of the machine the client is accessing from.longgetCreatedTime()Get the time theSessionwas created.StringgetIPAddress()Get the IPAddress for this Session.longgetLastPingTime()Get the Last time Client has check to see if the server is still availableObjectgetSecurityContext()StringgetSecurityDomain()Security Domain user logged into currentlyStringgetSessionId()Get the unique Teiid session within a given Teiid Systemorg.teiid.client.security.SessionTokengetSessionToken()Map<String,Object>getSessionVariables()SubjectgetSubject()StringgetUserName()Get User Name for this Session
It will not include the Security Domain, seeSessionBean.getSecurityDomain()VDBMetaDatagetVdb()StringgetVDBName()Get the VDB Name for this SessionStringgetVDBVersion()Get the VDB Version for this SessionbooleanisActive()booleanisClosed()booleanisEmbedded()voidsetActive(boolean active)voidsetApplicationName(String applicationName)voidsetClientHardwareAddress(String clientHardwareAddress)voidsetClientHostName(String clientHostname)voidsetClosed()voidsetCreatedTime(long createdTime)voidsetEmbedded(boolean embedded)voidsetIPAddress(String ipAddress)voidsetLastPingTime(long lastPingTime)voidsetSecurityContext(Object securityContext)voidsetSecurityDomain(String domain)voidsetSessionId(String sessionId)voidsetSessionToken(org.teiid.client.security.SessionToken sessionToken)voidsetSubject(Subject subject)voidsetUserName(String userName)voidsetVdb(VDBMetaData vdb)voidsetVDBName(String vdbName)voidsetVDBVersion(Object vdbVersion)StringtoString()-
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:SessionBeanGet the Application Name- Specified by:
getApplicationNamein interfaceSessionBean- Returns:
- String of the Application Name
-
setApplicationName
public void setApplicationName(String applicationName)
-
getCreatedTime
public long getCreatedTime()
Description copied from interface:SessionBeanGet the time theSessionwas created.- Specified by:
getCreatedTimein interfaceSessionBean- Returns:
-
setCreatedTime
public void setCreatedTime(long createdTime)
-
getClientHostName
public String getClientHostName()
Description copied from interface:SessionBeanGet the host name of the machine the client is accessing from. Note this value is reported from the client.- Specified by:
getClientHostNamein interfaceSessionBean- Returns:
-
setClientHostName
public void setClientHostName(String clientHostname)
-
getIPAddress
public String getIPAddress()
Description copied from interface:SessionBeanGet the IPAddress for this Session. Note this value is reported from the client.- Specified by:
getIPAddressin interfaceSessionBean- Returns:
-
setIPAddress
public void setIPAddress(String ipAddress)
-
getLastPingTime
public long getLastPingTime()
Description copied from interface:SessionBeanGet the Last time Client has check to see if the server is still available- Specified by:
getLastPingTimein interfaceSessionBean- Returns:
- Date of the last ping to the server.
-
setLastPingTime
public void setLastPingTime(long lastPingTime)
-
getSessionId
public String getSessionId()
Description copied from interface:SessionBeanGet the unique Teiid session within a given Teiid System- Specified by:
getSessionIdin interfaceSessionBean- Returns:
- String of the Session ID
-
setSessionId
public void setSessionId(String sessionId)
-
getUserName
public String getUserName()
Description copied from interface:SessionBeanGet User Name for this Session
It will not include the Security Domain, seeSessionBean.getSecurityDomain()- Specified by:
getUserNamein interfaceSessionBean- Returns:
- String of UserName
-
setUserName
public void setUserName(String userName)
-
getVDBName
public String getVDBName()
Description copied from interface:SessionBeanGet the VDB Name for this Session- Specified by:
getVDBNamein interfaceSessionBean- Returns:
- String name of the VDB
-
setVDBName
public void setVDBName(String vdbName)
-
getVDBVersion
public String getVDBVersion()
Description copied from interface:SessionBeanGet the VDB Version for this Session- Specified by:
getVDBVersionin interfaceSessionBean- Returns:
- String name/number of the VDB Version
-
setVDBVersion
public void setVDBVersion(Object vdbVersion)
-
getSecurityDomain
public String getSecurityDomain()
Description copied from interface:SessionBeanSecurity Domain user logged into currently- Specified by:
getSecurityDomainin interfaceSessionBean- Returns:
-
setSecurityDomain
public void setSecurityDomain(String domain)
-
getVdb
public VDBMetaData getVdb()
-
setVdb
public void setVdb(VDBMetaData vdb)
-
getSessionToken
public org.teiid.client.security.SessionToken getSessionToken()
-
setSessionToken
public void setSessionToken(org.teiid.client.security.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:SessionBeanGet the client hardware (typically MAC) address. Note this value is reported from the client.- Specified by:
getClientHardwareAddressin 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)
-
-