|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.sysmgt.sdk.remote.DirectorServer
This the the Management Server. It is used to: - Allow connectivity to the Director Server via LoginSessions - Checking server preferences - Checking the status of the Director Server itself.
Nested Class Summary | |
---|---|
class |
DirectorServer.RemoteImplSessionCollection
|
Field Summary | |
---|---|
static int |
DIRECTOR_SERVER_STATUS_ACTIVE
|
static int |
DIRECTOR_SERVER_STATUS_FAILED
|
static int |
DIRECTOR_SERVER_STATUS_INACTIVE
|
static int |
INVALID_USERID
user type from createLoginSession result indicates user ID couldn't be validated |
static int |
VALID_SUPERUSERID_PASSWORD
user type from createLoginSession result indicates user ID valid as superuser |
static int |
VALID_USERID_PASSWORD
user type from createLoginSession result indicates user ID valid |
Constructor Summary | |
---|---|
DirectorServer(java.lang.String serverAddress)
The constructor for DirectorServer NOTE: the current implementation has a limitation that the RemoteSdk client software and the Director Server must be running on the same machine. |
Method Summary | |
---|---|
LoginSession |
createLoginSession(java.lang.String user,
java.lang.String password,
java.util.Locale locale)
createLoginSession The first thing to do once a DirectorServer object is created is to create a longin session. |
void |
disconnect(LoginSession s)
disconnect - disconnect |
static boolean |
EnableTrace(boolean b)
EnableTrace - Method to turn on tracing for the client side of RemoteLib. |
java.lang.String |
getHostname(LoginSession s)
|
java.lang.String |
getIPAddress(LoginSession s)
|
static java.util.List |
getKnownManagers()
getKnownManagers |
java.lang.String |
getOperatingSystemName(LoginSession s)
getOperatingSystemName |
java.lang.String |
getProductName(LoginSession s)
getProductName |
java.lang.String |
getProductVersion(LoginSession s)
getProductVersion |
static DirectorServer |
getServer(java.lang.String serverAddr)
getServer |
java.lang.String |
getServerAddress()
getServerAddress |
int |
getServerStatus(LoginSession s)
getServerStatus |
int |
getUserType()
Returns the user ID type of the Director user |
boolean |
isDirectorServerRunning(LoginSession s)
isDirectorServerRunning Returns true if the Director Server service is running |
boolean |
isManagerActive(LoginSession s)
isManagerActive |
boolean |
isRemoteSdkActive(LoginSession s)
isDirectorServerRunning Returns true if the Director Server service is running and the RemoteSdkExtension is installed on the Director Server. |
void |
setUserType(int userType)
Sets the user ID type of the Director user - ignores invalid user types |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int VALID_USERID_PASSWORD
public static final int VALID_SUPERUSERID_PASSWORD
public static final int INVALID_USERID
public static final int DIRECTOR_SERVER_STATUS_ACTIVE
public static final int DIRECTOR_SERVER_STATUS_INACTIVE
public static final int DIRECTOR_SERVER_STATUS_FAILED
Constructor Detail |
public DirectorServer(java.lang.String serverAddress) throws UnknownManagerException
serverAddress
- - IP address of the Director Server machine.
UnknownManagerException
Method Detail |
public static boolean EnableTrace(boolean b)
b
- - true turns tracing on, false turns it off.
public void disconnect(LoginSession s)
s
- - LoginSessionpublic static DirectorServer getServer(java.lang.String serverAddr) throws UnknownManagerException
serverAddr
-
UnknownManagerException
public boolean isManagerActive(LoginSession s)
s
- - LoginSession
Returns true if the Director Management Server
process is ready to handle RemoteSdkRequests.public boolean isDirectorServerRunning(LoginSession s)
s
-
public boolean isRemoteSdkActive(LoginSession s)
s
-
public int getServerStatus(LoginSession s)
s
- - LoginSessionpublic java.lang.String getOperatingSystemName(LoginSession s)
s
- - LoginSessionpublic java.lang.String getProductName(LoginSession s)
s
- - LoginSessionpublic java.lang.String getProductVersion(LoginSession s)
s
- - LoginSessionpublic java.lang.String getHostname(LoginSession s)
public java.lang.String getIPAddress(LoginSession s)
public LoginSession createLoginSession(java.lang.String user, java.lang.String password, java.util.Locale locale) throws AuthenticationFailureException, ServerCommunicationException
user
- the user name or idpassword
- the password for the user idlocale
- the locale
AuthenticationFailureException
- - the user id or password
is not valid
ServerCommunicationException
- - cannot communicate with
the remote library serverpublic int getUserType()
public void setUserType(int userType)
userType
- - the userType -- must be either
DirectorServer.VALID_USERID_PASSWORD,
DirectorServer.VALID_SUPERUSERID_PASSWORD,
DirectorServer.INVALID_USERIDpublic static java.util.List getKnownManagers()
public java.lang.String toString()
public java.lang.String getServerAddress()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |