public class

MHAAdmin

extends Object
java.lang.Object
   ↳ com.microstrategy.web.ipa.MHAAdmin

Class Overview

The class is managering MHA setup and session validations

Summary

Constants
int APP_TYPE_INTERNAL TODO: change into the enum from after COM implements new application type
int APP_TYPE_LOGIN
Public Methods
synchronized String IPATopologyGetXML()
get topology from MHA@return
synchronized void IPATopologyMergeXML()
get topology from MHA@return
synchronized void IPATopologySaveXML(String iXML)
save topology to MHA
static boolean checkHCVersionCompatibility(String iServerName)
synchronized SystemStub connectMHA(IPASessionManager iSessionManager, String iServer, int iPort, String iAccesscode)
setup connection with MHA@return
static ISimpleExecutor createRemoteExecutor(String iServer, Locale iLocale)
static ISimpleExecutor createRemoteExecutor(String iUserName, String iPassword, String iServer, int iPortNumber, int iAuthMode, Locale iLocale, boolean iIsLogin)
synchronized void disconnectMHA()
disconnect with MHA
synchronized String getAccesscode()
return accesscode
static Map<String, String> getCounterValues(RTObjects.RTCounterKey iKey, List<String> iParameters)
static MHAAdmin getInstance()
Returns a Master Health Agent admin instance which can be used to obtain system stub object
synchronized SystemStub getMasterHealthAgent()
static String getResolvedServerName(String iName)
static System.SystemCheckTypes getSystemCheckTypes(int iTypes)
synchronized SystemStub getSystemStub(IPASessionManager iIPASessionManager)
get system stub Why do we need the IPASessionManager? To get a string? Can we do better than this?@return
synchronized boolean isMHAConfigured()
test if MHA configured
synchronized boolean isMHAConnected()
test if MHA is connected
static void updateProductProperties(String iNodeName, String iKIName, System.ConfigurationEntryPairs iConfigPairs)
Protected Methods
synchronized SystemStub getSystemStub()
This will be not used for tasks...
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int APP_TYPE_INTERNAL

TODO: change into the enum from after COM implements new application type

Constant Value: 33 (0x00000021)

public static final int APP_TYPE_LOGIN

Constant Value: 3 (0x00000003)

Public Methods

public synchronized String IPATopologyGetXML ()

get topology from MHA@return

Throws
DiagnosticException

public synchronized void IPATopologyMergeXML ()

get topology from MHA@return

Throws
DiagnosticException

public synchronized void IPATopologySaveXML (String iXML)

save topology to MHA

Throws
DiagnosticException

public static boolean checkHCVersionCompatibility (String iServerName)

Throws
DiagnosticException
IPAException
NotFoundException

public synchronized SystemStub connectMHA (IPASessionManager iSessionManager, String iServer, int iPort, String iAccesscode)

setup connection with MHA@return

Throws
DiagnosticException
DiagnosticException

public static ISimpleExecutor createRemoteExecutor (String iServer, Locale iLocale)

Throws
DiagnosticException
IPAException
NotFoundException
RemoteExecutorException

public static ISimpleExecutor createRemoteExecutor (String iUserName, String iPassword, String iServer, int iPortNumber, int iAuthMode, Locale iLocale, boolean iIsLogin)

Throws
DiagnosticException
IPAException
NotFoundException
RemoteExecutorException

public synchronized void disconnectMHA ()

disconnect with MHA

public synchronized String getAccesscode ()

return accesscode

public static Map<String, String> getCounterValues (RTObjects.RTCounterKey iKey, List<String> iParameters)

Throws
DiagnosticException

public static MHAAdmin getInstance ()

Returns a Master Health Agent admin instance which can be used to obtain system stub object

Returns
  • _MHAAdminSingleton A valid MHA admin object.

public synchronized SystemStub getMasterHealthAgent ()

Throws
IPAException

public static String getResolvedServerName (String iName)

Throws
DiagnosticException

public static System.SystemCheckTypes getSystemCheckTypes (int iTypes)

public synchronized SystemStub getSystemStub (IPASessionManager iIPASessionManager)

get system stub Why do we need the IPASessionManager? To get a string? Can we do better than this?@return

Throws
DiagnosticException

public synchronized boolean isMHAConfigured ()

test if MHA configured

public synchronized boolean isMHAConnected ()

test if MHA is connected

public static void updateProductProperties (String iNodeName, String iKIName, System.ConfigurationEntryPairs iConfigPairs)

Throws
DiagnosticException
IPAException

Protected Methods

protected synchronized SystemStub getSystemStub ()

This will be not used for tasks...