com.ibm.sysmgt.sdk.remote
Class LoginSession

java.lang.Object
  extended bycom.ibm.sysmgt.sdk.remote.LoginSession
Direct Known Subclasses:
LocalServiceNodeImplSession, RemoteImplSession, ServiceNodeSession

public abstract class LoginSession
extends java.lang.Object

This is a connection to the Director Server is models the concept of a Director Console login. It is used to send requests to the Director Server and it contains the desired Locale information. The LoginSession is always created by the DirectorServer class.


Constructor Summary
protected LoginSession(DirectorServer manager)
          Constructor
protected LoginSession(DirectorServer manager, java.util.Locale locale)
          Constructor
 
Method Summary
 Call createCall()
          createCall
 void endSession()
          endSession endSession is called when the client code is finished making requests to the Director Server
 java.util.Locale getLocale()
          getLocale
 DirectorServer getManager()
          getManager
abstract  boolean isActive()
           
 void printDebugMessages()
          printDebugMessages
 java.lang.Object remoteSdkRequest(java.lang.String string, java.lang.String string2)
          remoteSdkRequest
 java.lang.Object remoteSdkRequest(java.lang.String string, java.lang.String string2, java.lang.Object object)
          remoteSdkRequest
 boolean sendCommand(Command command)
          sendCommand
 void setLocale(java.util.Locale locale)
          Deprecated. This method should not be called. Call createLoginSession() with new locale
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoginSession

protected LoginSession(DirectorServer manager)
Constructor

Parameters:
manager -

LoginSession

protected LoginSession(DirectorServer manager,
                       java.util.Locale locale)
Constructor

Parameters:
manager -
locale -
Method Detail

endSession

public void endSession()
endSession endSession is called when the client code is finished making requests to the Director Server


isActive

public abstract boolean isActive()
                          throws ServerCommunicationException
Throws:
ServerCommunicationException

getManager

public DirectorServer getManager()
getManager

Returns:
manager

sendCommand

public boolean sendCommand(Command command)
                    throws ServerCommunicationException
sendCommand

Returns:
Throws:
ServerCommunicationException

getLocale

public java.util.Locale getLocale()
getLocale

Returns:

setLocale

public void setLocale(java.util.Locale locale)
Deprecated. This method should not be called. Call createLoginSession() with new locale

setLocale

Parameters:
locale -

toString

public java.lang.String toString()

createCall

public Call createCall()
createCall


remoteSdkRequest

public java.lang.Object remoteSdkRequest(java.lang.String string,
                                         java.lang.String string2)
                                  throws ServerCommunicationException,
                                         RequestFailedException
remoteSdkRequest

Parameters:
string -
string2 -
Returns:
Throws:
ServerCommunicationException
RequestFailedException

remoteSdkRequest

public java.lang.Object remoteSdkRequest(java.lang.String string,
                                         java.lang.String string2,
                                         java.lang.Object object)
                                  throws ServerCommunicationException,
                                         RequestFailedException
remoteSdkRequest

Parameters:
string -
string2 -
object -
Returns:
Throws:
ServerCommunicationException
RequestFailedException

printDebugMessages

public void printDebugMessages()
printDebugMessages