public class NetworkServerMBeanTest extends MBeanTest
This JUnit test class is for testing the NetworkServerMBean that is available with the Derby Network Server. Running these tests requires a JVM supporting J2SE 5.0 or better, due to the implementation's dependency of the platform management agent.
This class currently tests the following:
The test fixtures will fail if an exception occurs (will be reported as an error in JUnit).
DEFAULT_DB_DIR, DERBY_LOG, ERRORSTACKTRACEFILE| Constructor and Description |
|---|
NetworkServerMBeanTest(java.lang.String name) |
assertBooleanAttribute, assertIntAttribute, assertLongAttribute, assertStringAttribute, checkBooleanAttributeValue, checkIntAttributeValue, checkLongAttributeValue, checkStringAttributeValue, enableManagement, getApplicationManagementMBean, getAttribute, getCommandLineProperties, getDerbyDomainMBeans, getDerbyMBeanName, getMBeanServerConnection, getMBeanServerConnection, invokeOperation, invokeOperation, isPlatformJMXClient, setUp, suite, tearDownassertCallError, assertCheckTable, assertCompileError, assertEquals, assertEquals, assertEquals, assertEquivalentDataType, assertErrorCode, assertGetIntError, assertNextError, assertPreparedStatementError, assertSQLExceptionEquals, assertSQLState, assertSQLState, assertStatementError, assertStatementError, assertStatementError, assertStatementError, assertStatementErrorUnordered, assertTableRowCount, assertUpdateCount, assertUpdateCount, assertWarning, checkAllConsistency, checkEstimatedRowCount, closeStatement, commit, createStatement, createStatement, createStatement, dropTable, dropTable, dropView, dropView, emptyStatementCache, getClientTransactionID, getConnection, getDatabaseProperty, getLastSQLException, initializeConnection, openConnection, openDefaultConnection, openDefaultConnection, openDefaultConnection, openUserConnection, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, runBare, runBareOverridable, runScript, runScript, runSQLCommands, setAutoCommit, usingDB2Client, usingDerbyNetClient, usingEmbeddedalarm, assertDirectoryDeleted, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertExecJavaCmdAsExpected, assertLaunchedJUnitTestMethod, assertLaunchedJUnitTestMethod, assertSecurityManager, assertThrowableEquals, currentDirectory, execJavaCmd, execJavaCmd, fail, getClassVersionMajor, getEmmaJar, getFailureFolder, getFilesWith, getJavaExecutableName, getSystemProperty, getTestConfiguration, getTestResource, hasInterruptibleIO, isCVM, isIBMJVM, isJ9Platform, isJava5, isJava7, isJava8, isPhoneME, isPlatform, isSunJVM, isWindowsPlatform, openTestResource, println, printStackTrace, readProcessOutput, removeDirectory, removeDirectory, removeFiles, removeSystemProperty, runsWithEmma, runsWithJaCoCo, setSystemProperty, sleep, sleepAtLeastOneTick, traceitassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toStringpublic static junit.framework.Test suite()
private javax.management.ObjectName getNetworkServerMBeanObjectName()
throws java.lang.Exception
Creates an object name instance for the Derby MBean whose object name's textual representation includes the following key properties:
The object name may also include other key properties such as a system identifier (DERBY-3466).
MalformedObjectNameException - if the object name is not validjava.lang.Exceptionpublic void testAttributeAccumulatedConnectionCount()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeActiveConnectionCount()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeBytesReceived()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeBytesReceivedPerSecond()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeBytesSent()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeBytesSentPerSecond()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeConnectionCount()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeConnectionThreadPoolSize()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaHost()
throws java.lang.Exception
java.lang.Exceptionpublic void testDrdaKeepAlive()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaMaxThreads()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaPortNumber()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaSecurityMechanism()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaSslMode()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaStreamOutBufferSize()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaTimeSlice()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaTraceAll()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeDrdaTraceDirectory()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeStartTime()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeUptime()
throws java.lang.Exception
java.lang.Exceptionpublic void testAttributeWaitingConnectionCount()
throws java.lang.Exception
java.lang.Exceptionpublic void testOperationPing()
throws java.lang.Exception
java.lang.Exception - if the operation failsApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.