org.teiid.transport
Class LogonImpl

java.lang.Object
  extended by org.teiid.transport.LogonImpl
All Implemented Interfaces:
ILogon

public class LogonImpl
extends java.lang.Object
implements ILogon


Constructor Summary
LogonImpl(SessionServiceInterface service, java.lang.String clusterName)
           
 
Method Summary
 void assertIdentity(SessionToken sessionId)
           
 ResultsFuture<?> logoff()
          Log off the specified session.
 LogonResult logon(java.util.Properties connProps)
           
 ResultsFuture<?> ping()
          Ping the server to see if the client-server connection is alive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogonImpl

public LogonImpl(SessionServiceInterface service,
                 java.lang.String clusterName)
Method Detail

logon

public LogonResult logon(java.util.Properties connProps)
                  throws LogonException,
                         ComponentNotFoundException
Specified by:
logon in interface ILogon
Throws:
LogonException
ComponentNotFoundException

logoff

public ResultsFuture<?> logoff()
                        throws InvalidSessionException
Description copied from interface: ILogon
Log off the specified session.

Specified by:
logoff in interface ILogon
Throws:
InvalidSessionException - If session has expired or doesn't exist

ping

public ResultsFuture<?> ping()
                      throws InvalidSessionException,
                             MetaMatrixComponentException
Description copied from interface: ILogon
Ping the server to see if the client-server connection is alive.

Specified by:
ping in interface ILogon
Throws:
InvalidSessionException - if the sessionID is invalid
ComponentNotFoundException - if can't find the Session service.
MetaMatrixComponentException

assertIdentity

public void assertIdentity(SessionToken sessionId)
                    throws InvalidSessionException,
                           MetaMatrixComponentException
Specified by:
assertIdentity in interface ILogon
Throws:
InvalidSessionException
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.