Search in sources :

Example 6 with EnvInfo

use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.

the class FunctionsSupportedInfoProviderTest method testIsSupportSystemMonitor.

/**
	 * Test method for
	 * {@link com.cubrid.common.core.util.CompatibleUtil#isSupportSystemMonitor(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
	 * .
	 */
public void testIsSupportSystemMonitor() {
    EnvInfo envInfo = new EnvInfo();
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.0.1150)");
    ServerInfo serverInfo = new ServerInfo();
    serverInfo.setConnected(true);
    serverInfo.setEnvInfo(envInfo);
    boolean support = CompatibleUtil.isSupportSystemMonitor(serverInfo);
    assertFalse(support);
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.2.1150)");
    support = CompatibleUtil.isSupportSystemMonitor(serverInfo);
    assertTrue(support);
}
Also used : ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo) EnvInfo(com.cubrid.cubridmanager.core.common.model.EnvInfo)

Example 7 with EnvInfo

use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.

the class FunctionsSupportedInfoProviderTest method testIsNewBrokerDiag.

/**
	 * Test method for
	 * {@link com.cubrid.common.core.util.CompatibleUtil#isNewBrokerDiag(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
	 * .
	 */
public void testIsNewBrokerDiag() {
    EnvInfo envInfo = new EnvInfo();
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.0.1150)");
    ServerInfo serverInfo = new ServerInfo();
    serverInfo.setConnected(true);
    serverInfo.setEnvInfo(envInfo);
    boolean support = CompatibleUtil.isNewBrokerDiag(serverInfo);
    assertFalse(support);
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.2.1150)");
    support = CompatibleUtil.isNewBrokerDiag(serverInfo);
    assertTrue(support);
}
Also used : ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo) EnvInfo(com.cubrid.cubridmanager.core.common.model.EnvInfo)

Example 8 with EnvInfo

use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.

the class FunctionsSupportedInfoProviderTest method testIsSupportBrokerOrDBStatusMonitor.

/**
	 * Test method for
	 * {@link com.cubrid.common.core.util.CompatibleUtil#isSupportBrokerOrDBStatusMonitor(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
	 * .
	 */
public void testIsSupportBrokerOrDBStatusMonitor() {
    EnvInfo envInfo = new EnvInfo();
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.2.1150)");
    ServerInfo serverInfo = new ServerInfo();
    serverInfo.setConnected(true);
    serverInfo.setEnvInfo(envInfo);
    boolean support = CompatibleUtil.isSupportBrokerOrDBStatusMonitor(serverInfo);
    assertTrue(support);
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.0.1150)");
    support = CompatibleUtil.isSupportBrokerOrDBStatusMonitor(serverInfo);
    assertFalse(support);
}
Also used : ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo) EnvInfo(com.cubrid.cubridmanager.core.common.model.EnvInfo)

Example 9 with EnvInfo

use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.

the class FunctionsSupportedInfoProviderTest method testIsSupportRestorePath.

/**
	 * Test method for
	 * {@link com.cubrid.common.core.util.CompatibleUtil#isSupportRestorePath(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
	 * .
	 */
public void testIsSupportRestorePath() {
    EnvInfo envInfo = new EnvInfo();
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.0.1150)");
    ServerInfo serverInfo = new ServerInfo();
    serverInfo.setConnected(true);
    serverInfo.setEnvInfo(envInfo);
    boolean support = CompatibleUtil.isSupportRestorePath(serverInfo);
    assertFalse(support);
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.3.2.1150)");
    support = CompatibleUtil.isSupportRestorePath(serverInfo);
    assertTrue(support);
}
Also used : ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo) EnvInfo(com.cubrid.cubridmanager.core.common.model.EnvInfo)

Example 10 with EnvInfo

use of com.cubrid.cubridmanager.core.common.model.EnvInfo in project cubrid-manager by CUBRID.

the class FunctionsSupportedInfoProviderTest method testIsSupportNewDBServerPro.

/**
	 * Test method for
	 * {@link com.cubrid.common.core.util.CompatibleUtil#isSupportParamNodeListAndPortId(com.cubrid.cubridmanager.core.common.model.ServerInfo)}
	 * .
	 */
public void testIsSupportNewDBServerPro() {
    EnvInfo envInfo = new EnvInfo();
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.0.1150)");
    ServerInfo serverInfo = new ServerInfo();
    serverInfo.setConnected(true);
    serverInfo.setEnvInfo(envInfo);
    boolean support = CompatibleUtil.isSupportParamNodeListAndPortId(serverInfo);
    assertFalse(support);
    envInfo.setServerVersion("CUBRID 2008 R2.0(8.2.2.1150)");
    support = CompatibleUtil.isSupportParamNodeListAndPortId(serverInfo);
    assertTrue(support);
}
Also used : ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo) EnvInfo(com.cubrid.cubridmanager.core.common.model.EnvInfo)

Aggregations

EnvInfo (com.cubrid.cubridmanager.core.common.model.EnvInfo)37 ServerInfo (com.cubrid.cubridmanager.core.common.model.ServerInfo)29 ITask (com.cubrid.common.core.task.ITask)5 GetEnvInfoTask (com.cubrid.cubridmanager.core.common.task.GetEnvInfoTask)5 ArrayList (java.util.ArrayList)5 Map (java.util.Map)4 BrokerInfos (com.cubrid.cubridmanager.core.broker.model.BrokerInfos)3 GetBrokerConfParameterTask (com.cubrid.cubridmanager.core.broker.task.GetBrokerConfParameterTask)3 ServerType (com.cubrid.cubridmanager.core.common.model.ServerType)3 ServerUserInfo (com.cubrid.cubridmanager.core.common.model.ServerUserInfo)3 CommonQueryTask (com.cubrid.cubridmanager.core.common.task.CommonQueryTask)3 GetCMConfParameterTask (com.cubrid.cubridmanager.core.common.task.GetCMConfParameterTask)3 GetCMUserListTask (com.cubrid.cubridmanager.core.common.task.GetCMUserListTask)3 GetCubridConfParameterTask (com.cubrid.cubridmanager.core.common.task.GetCubridConfParameterTask)3 MonitoringTask (com.cubrid.cubridmanager.core.common.task.MonitoringTask)3 UpdateCMUserTask (com.cubrid.cubridmanager.core.common.task.UpdateCMUserTask)3 DatabaseInfo (com.cubrid.cubridmanager.core.cubrid.database.model.DatabaseInfo)3 GetDatabaseListTask (com.cubrid.cubridmanager.core.cubrid.database.task.GetDatabaseListTask)3 List (java.util.List)3 IStatus (org.eclipse.core.runtime.IStatus)3