An article on collecting IBM InfoSphere CDC Subscription health matrices in a Java program using the Monitoring API
|
|
- Augustus Cole
- 6 years ago
- Views:
Transcription
1 An article on collecting IBM InfoSphere CDC Subscription health matrices in a Java program using the Monitoring API Aniket Kadam(anikadam@in.ibm.com)
2 Prerequisites Before going through the article reader should have the basic knowledge of How to configure the instance (datastore) of the InfoSphere CDC for source and target databases. How to add the datastores in the Management Console How to create a Subscription in Management Console and start data replication Java programming language Important note: The Monitoring API described herein requires the api.jar available in Management Console IF3 or later. Java code calling these monitoring classes and methods will not compile or run with earlier versions. Overview InfoSphere Change Data Capture (CDC) Management Console provides a view called Monitoring View. In this view the user can monitor the subscription activities and view the event log which gets populated with the messages depending on the subscription activities. Inside Monitoring View there is a tab called Performance. This view provides a more advanced view of what is happening on the selected subscription. Following are the figures showing different views seen in the Management Console. 1)Subscription and table mapping view 2)Performance View
3 3)The list of available matrices in Performance View 4)Selected Matrices for capturing 5)Captured data after DML operations on source table While the performance view gives the brilliant visual display of various matrices attributed to the subscription in the form of graphs,a customer might be more interested in collecting these matrices in a Java program. As the performance view has a limited scope for a single subscription,an environment where there are numerous subscriptions to track,calls for a more efficient approach of making these tasks automated. One of the advantages it has is that it removes all the manual intervention required to select the subscription and the matrices we want to capture. Once captured the user can export them to a file in a desirable format. Moreover,the user can put some logic depending on the business requirement in his Java program which makes efficient use of these matrices. InfoSphere CDC Management Console provides an enriched API to make this provision. This article introduces the user to some of the newly added classes which have extended set of utility methods that help the
4 user accomplish the task of developing such a Java program. These are collectively called the Monitoring API. At the end of the article a template Java program is provided which extracts some of the performance matrices for a subscription. Monitoring API Busy table statistics Performance statistics Refresh statistics Summary statistics This introduces four classes depending on what kind of statistics user is looking for. brief Each class provides a list of utility methods. Some of them which are important are described here in Busy table statistics Class BusyTablesStatisticData Methods -getbusytables() Returns a set of busy tables in an ArrayList,BusyTableStatisticData.BusyTable Performance statistics -getbytes(string tableowner, String tablename) Returns the number of bytes processed for a table -gettimestamp() Returns the timestamp for the statistic snapshot of the busy tables. Class PerformanceStatisticData There are numerous performance statistics provided for a subscription. We need to initialize performance statistics object by adding the required statistics to the dataset. An interface StatisticConstants maintains a list of statistic definitions each assigned a byte/int value. By referring to this interface it becomes easy to locate all the statistics at one place and user can conveniently add them to the data set. Once these definitions are added to dataset the user can start collecting the statistics by calling different methods. Performance statistics are collected over a period of time. Methods adddefinition(statisticdefinition definition) Adds a statistic definition to the data set. getaverage(int id) Returns the average value for the entire data set for the specified statistic definition id. getcumulativevalue(int id) Returns value last received from the agent for the statistics with the specified definition id. getmaximum(int id) Returns the maximum value for an id
5 getminimum(int id) Returns the minimum value for an id. getvalus(int id) Returns the value from the last row for statistics with the specified definition id. Refresh statistics Class RefreshStatisticData This data structure stores statistic data for refresh activity on a subscription. The current snapshot of the refresh activity is available through the Table object which contains the name of the table, start/end time, and source/apply record counts, as available. Methods gettables() Returns the set of tables under refresh in an ArrayList RefreshStatisticData.Table gettimestamp() Returns the timestamp for the statistic snapshot of the refresh operation. iscomplete() returns true if refresh operation for all the tables under subscription is complete Class RefreshStatisticData.Table Provides certain methods which are table specific. They help to track the status of a table that is under a refresh operation. Methods Summary statistics Class getapplyrecords() Returns the number of records applied on the target for completed tables. getduration() Returns table's refreshing time if refresh completed. getstarttimestamp() Returns the source engine time a table started refreshing for completed or current tables. getendtimestamp() Returns the source engine time a table completed refreshing for completed tables. iscompleted() Returns true if the table is completed. iscurrent() Returns true if the table is currently refreshing. ispending() Returns true if the table has not started refreshing.
6 SummaryStatisticData This data structure stores subscription summary statistics. These statistics mainly include replication state and status of the subscription. User can get problem and warning thresholds set for the subscription for the particular latency values. When the replication method is mirror scheduled end,the user can request for the scheduled end timestamp. Methods getlatencyproblemthreshold() Returns the latency problem threshold, in seconds getlatencyvalue() Returns the latency value. getlatencywarningthreshold() Returns the latency warning threshold, in seconds. getscheduledendtimestamp() Returns the timestamp for scheduled end. getstate() Returns the replication state of the subscription. getstatus() Returns the replication status of the subscription. Template Java Program This is a sample Java program to demonstrate how to initialize PerformanceStatisticData object and extract the required statistics. It also lists all the available statistics associated with the datastore depending on whether it is a source or a target. The sample assumes that a subscription is created with the name SUB1 in the Management Console and the data replication is started on it. The program is run when there are DML operations occurring on the source table. The Performance statistics seen in the figure no.4 are selected and added in the dataset and then the data collection is enabled. Following are the parameters which are used in the program to complete the entire operation. Source datastore CDC_DB2 Target datastore CDC_ORACLE Subscription Name SUB1 Access Server localhost Access Server user name admin Access Server Password admin12 / Licensed Materials - Property of IBM IBM InfoSphere Change Data Capture 5724-U70 (c) Copyright IBM Corp All rights reserved. The following sample of source code ("Sample") is owned by International Business Machines Corporation or one of its subsidiaries ("IBM") and is copyrighted and licensed, not sold. You may use, copy, modify, and distribute the Sample in any form without payment to IBM. The Sample code is provided to you on an "AS IS" basis, without warranty of any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions do not allow for the exclusion or limitation of implied warranties, so the above
7 limitations or exclusions may not apply to you. IBM shall not be liable for any damages you suffer as a result of using, copying, modifying or distributing the Sample, even if IBM has been advised of the possibility of such damages. / import java.util.list; import com.datamirror.ea.api.apiexception; import com.datamirror.ea.api.datasource; import com.datamirror.ea.api.defaultcontext; import com.datamirror.ea.api.performancestatisticdata; import com.datamirror.ea.api.replicationrole; import com.datamirror.ea.api.statisticcategory; import com.datamirror.ea.api.statisticconstants; import com.datamirror.ea.api.statisticdefinition; import com.datamirror.ea.api.statisticorigin; import com.datamirror.ea.api.toolkit; import com.datamirror.ea.api.publisher.publisher; import com.datamirror.ea.api.publisher.subscription; import com.datamirror.ea.api.subscriber.publication; import com.datamirror.ea.api.subscriber.subscriber; / Connects to the source and target datastores, prints out the supported performance statistics, and requests a sample of those statistics. / public class MonitorPerformanceSample public static String ACCESS_SERVER_HOST_TOKEN = "-host"; public static String ACCESS_SERVER_PORT_TOKEN = "-port"; public static String ACCESS_SERVER_USER_TOKEN = "-user"; public static String ACCESS_SERVER_PASSWORD_TOKEN = "-password"; public static String SOURCE_DATASTORE_TOKEN = "-source"; public static String TARGET_DATASTORE_TOKEN = "-target"; public static String SUBSCRIPTION_NAME_TOKEN = "-subscriptionname"; public static String PUBLICATION_NAME_TOKEN = "-publicationname"; private DataSource accessserver; / Runs the host the host name for access port the port number of access server in the host user the login user password the login sourcedatastore the name of the source subscriptionname the name of the subscription on the targetdatastore the name of the target publicationname the name of the publication on the ApiException if an error occurred. / public void run( String host, String port, String user, String password, String sourcedatastore, String subscriptionname, String targetdatastore, String publicationname) throws ApiException try connectaccessserver(host, port, user, password); if (sourcedatastore!= null && sourcedatastore.length() > 0) ReplicationRole datastore = null; PerformanceStatisticData statistics = null; try datastore = connectdatastore(sourcedatastore, true); statistics = initializedefinitions(datastore, true); Subscription subscription = ((Publisher) datastore).getsubscription(subscriptionname); if (subscription!= null) subscription.requestperformancestatistics(statistics); printcurrentresults(statistics); finally disconnectdatastore(datastore); if (targetdatastore!= null && targetdatastore.length() > 0) ReplicationRole datastore = null; PerformanceStatisticData statistics;
8 try datastore = connectdatastore(targetdatastore, false); statistics = initializedefinitions(datastore, false); Publication publication = ((Subscriber) datastore).getpublication(publicationname); if (publication!= null) publication.requestperformancestatistics(statistics); printcurrentresults(statistics); finally disconnectdatastore(datastore); finally disconnectaccessserver(); / Prints the current statistics the statistics. / public void printcurrentresults(performancestatisticdata statistics) int id; String pad = " "; for (StatisticDefinition definition : statistics.getdefinitions()) System.out.print((definition.getName() + pad).substring(0, 30) + " "); for (int i = 0, cnt = statistics.getdefinitions().size(); i < cnt; i++) System.out.print(" "); for (StatisticDefinition definition : statistics.getdefinitions()) id = definition.getid(); System.out.print((statistics.getCumulativeValue(id) + pad).substring(0, 30) + " "); / Collects the statistics for the datastorename the name of the name the subscription or publication source true to request source statistics, false to request target ApiException if an error occurred. / public PerformanceStatisticData initializedefinitions(replicationrole datastore, boolean source) throws ApiException PerformanceStatisticData statistics = new PerformanceStatisticData(); // Get the supported performance metrics. StatisticCategory[] categories = datastore.getstatisticdefinitions(); for (int i = 0; i < categories.length; i++) // Only include custom categories (>CATEGORY_CUSTOM). if (categories[i].getid() < StatisticConstants.CATEGORY_CUSTOM) continue; boolean printcategory = true; int id; List<StatisticDefinition> definitions = categories[i].getdefinitions(); if (definitions!= null) for (StatisticDefinition definition : definitions) if (source && definition.getorigin()!= StatisticOrigin.TARGET)
9 if (printcategory) System.out.println("Category [" + categories[i].getid() + "] " + categories[i].getname()); printcategory = false; System.out.println(" Definition [" + definition.getid() + "] " + definition.getname()); id = definition.getid(); switch (id) case StatisticConstants.SOURCE_PREFILTER_INSERT_OPERATIONS: case StatisticConstants.SOURCE_PREFILTER_UPDATE_OPERATIONS: case StatisticConstants.SOURCE_PREFILTER_DELETE_OPERATIONS: statistics.adddefinition(definition); break; if (!source && definition.getorigin()!= StatisticOrigin.SOURCE) if (printcategory) System.out.println("Category [" + categories[i].getid() + "] " + categories[i].getname()); printcategory = false; System.out.println(" Definition [" + definition.getid() + "] " + definition.getname()); id = definition.getid(); switch (id) case StatisticConstants.TARGET_APPLY_INSERT_OPERATIONS: case StatisticConstants.TARGET_APPLY_UPDATE_OPERATIONS: case StatisticConstants.TARGET_APPLY_DELETE_OPERATIONS: statistics.adddefinition(definition); break; return statistics; / Connects to a replication datastorename the name of the source true to request source statistics, false to request target ApiException if an error occurred. / public ReplicationRole connectdatastore(string datastorename, boolean source) throws ApiException if (accessserver == null!accessserver.isopen()) throw new ApiException("Connection to Access Server is not established"); ReplicationRole datastore; if (source) datastore = accessserver.getpublisher(datastorename); else datastore = accessserver.getsubscriber(datastorename); if (datastore == null) throw new ApiException("Failed to locate a datastore: " + datastorename); if (!datastore.isconnected()) try System.out.println("Connecting to " + datastorename + "..."); datastore.connect(); System.out.println("Connected."); catch (ApiException e) throw new ApiException("Failed to connect to datastore " + datastorename + ". " + e.getmessage());
10 return datastore; / Disconnects from the datastore the ApiException If an error occurred / public void disconnectdatastore(replicationrole datastore) throws ApiException boolean disconnecting = false; if (datastore!= null && datastore.isconnected()) System.out.println("Disconnecting from " + datastore.getname() + "..."); disconnecting = true; datastore.disconnect(); if (datastore!= null && datastore.isconnected()) throw new ApiException("Failed to disconnect from a datastore " + datastore.getname()); else if (disconnecting) System.out.println("Disconnected."); / Connects to access host the host name for access port the port number of access server in the host user the login user password the login ApiException if an error occurred. / public void connectaccessserver(string host, String port, String user, String password) throws ApiException try System.out.println("Connecting to Access Server..."); accessserver = Toolkit.getDefaultToolkit().createDataSource(); DefaultContext eaaccesscontext = new DefaultContext(); eaaccesscontext.setstring(datasource.user, user); eaaccesscontext.setstring(datasource.password, password); eaaccesscontext.setstring(datasource.hostname, host); eaaccesscontext.setint(datasource.port, Integer.parseInt(port)); accessserver.connect(eaaccesscontext); System.out.println("Connected."); catch (ApiException e) throw new ApiException("Failed to connect to " + host + "@" + port + " as " + user); / Disconnects from access ApiException if an error occurred. / public void disconnectaccessserver() throws ApiException boolean disconnecting = false; if (accessserver!= null && accessserver.isopen()) System.out.println("Disconnecting from Access Server..."); disconnecting = true; accessserver.close(); if (accessserver!= null && accessserver.isopen()) throw new ApiException("Failed to disconnect from AccessServer"); else if (disconnecting) System.out.println("Disconnected."); / Returns an example of arguments for the the help string.
11 / public static String gethelp() String help = "java -classpath \"pathtosample and api.jar\" " + "MonitorPerformanceSample\n" + " [-host accessserverhost -port accessserverport]\n" + " -user accessserveruser -password accessserverpassword\n" + " [-source sourcedatastorename -subscriptionname subscriptionname]\n" + " [-target targetdatastorename -publicationname publicationname]\n\n" + "If -host or -port are not specified, \"localhost\" and \"10101\" " + "will be used.\n" + "-source/-subscriptionname and/or -target/-publication are required."; return help; / Returns the named argument's args the command line name the name of the command line defaultvalue the default value. If null is specified, then an exception is thrown if the parameter does not value for the IllegalArgumentException if the argument is missing. / private String getparameter(string[] args, String name, String defaultvalue) throws IllegalArgumentException String parameter = null; for (int i = 0; i < args.length - 1; i++) if (args[i].equalsignorecase(name)) parameter = args[i + 1]; break; if (parameter == null) if (defaultvalue == null) throw new IllegalArgumentException("Parameter " + name + " is missing."); else parameter = defaultvalue; return parameter; public static void main(string[] args) try MonitorPerformanceSample sample = new MonitorPerformanceSample(); // Access server connection information. String host = sample.getparameter(args, ACCESS_SERVER_HOST_TOKEN, "localhost"); String port = sample.getparameter(args, ACCESS_SERVER_PORT_TOKEN, "10101"); String user = sample.getparameter(args, ACCESS_SERVER_USER_TOKEN, "admin"); String password = sample.getparameter(args, ACCESS_SERVER_PASSWORD_TOKEN, "admin12"); // Source information. If the datastore is specified, then the subscription // name must be as well. String sourcedatastore = null; String subscriptionname = null; sourcedatastore = sample.getparameter(args, SOURCE_DATASTORE_TOKEN, "CDC_DB2"); if (sourcedatastore!= null && sourcedatastore.length() > 0) subscriptionname = sample.getparameter(args, SUBSCRIPTION_NAME_TOKEN, "SUB1"); // Target information. String targetdatastore = null; String publicationname = null; targetdatastore = sample.getparameter(args, TARGET_DATASTORE_TOKEN, "CDC_ORACLE"); if (targetdatastore!= null && targetdatastore.length() > 0) publicationname = sample.getparameter(args, PUBLICATION_NAME_TOKEN, "SUB1"); if (sourcedatastore.length() == 0 && targetdatastore.length() == 0) throw new IllegalArgumentException("Parameter "
12 + SOURCE_DATASTORE_TOKEN + " and/or " + TARGET_DATASTORE_TOKEN + " is required."); sample.run( host, port, user, password, sourcedatastore, subscriptionname, targetdatastore, publicationname); catch (IllegalArgumentException e) System.out.println(MonitorPerformanceSample.getHelp()); catch (Exception e) System.out.println(e.getMessage()); e.printstacktrace(); Output Connecting to Access Server... Connected. Connecting to CDC_DB2... Connected. Category [ ] Datastore Definition [1001] Time check missed count Definition [1002] Free memory - bytes Definition [1003] Maximum memory - bytes Definition [1004] Total memory - bytes Definition [1005] Garbage collections - count Definition [1006] Garbage collection CPU time - milliseconds Definition [1007] Global memory manager - bytes Definition [2401] Network errors - count Category [9001] Database Workload Definition [1103] Total transactions - count Definition [1301] In scope transactions - count Definition [1310] Transaction histogram (0 to 1/2 X) - bytes Definition [1311] Transaction histogram (1/2X to X) - bytes Definition [1312] Transaction histogram (X to 2X) bytes Definition [1313] Transaction histogram(2x to 4X) - bytes Definition [1314] Transaction histogram (4X to 8X) - bytes Definition [1315] Transaction histogram (8X and larger) - bytes Category [9002] Log Reader Definition [101] Source database bytes processed Definition [1101] Physical bytes read - bytes Definition [1104] Thread CPU - milliseconds/second Category [9003] Log Parser Definition [1201] Disk writes - bytes Definition [1202] Disk reads - bytes Definition [1203] Disk size - bytes Definition [1303] Thread CPU - milliseconds/second Category [9004] Single Scrape Definition [1401] Disk writes - bytes Definition [1402] Disk reads - bytes Definition [1403] Disk size - bytes Category [9005] Source Engine Definition [102] Source engine bytes processed Definition [104] Source pre-filter inserts Definition [105] Source pre-filter updates Definition [106] Source pre-filter deletes Definition [107] Source post-filter inserts Definition [108] Source post-filter updates Definition [109] Source post-filter deletes Definition [118] Latency value (seconds) Definition [1501] Rows evaluating derived columns - count Definition [1502] Rows calling source database - count Definition [1503] Rows calling user exits - count Definition [1504] Thread CPU - milliseconds/second Definition [1507] MBCS conversions - bytes Definition [1601] Source engine bytes processed Definition [1602] Source pre-filter inserts Definition [1603] Source pre-filter updates Definition [1604] Source pre-filter deletes Category [9006] Communications Definition [103] Source communications bytes processed Definition [2402] Source network latency (millisecond) Definition [2404] Source missing round trip response - count Definition [2406] Keep alive sent - count Definition [2408] Bytes sent - count Source pre-filter inserts Source pre-filter updates Source pre-filter deletes
13 Disconnecting from CDC_DB2... Disconnected. Connecting to CDC_ORACLE... Connected. Category [ ] Datastore Definition [1001] Time check missed count Definition [1002] Free memory - bytes Definition [1003] Maximum memory - bytes Definition [1004] Total memory - bytes Definition [1005] Garbage collections - count Definition [1006] Garbage collection CPU time - milliseconds Definition [1007] Global memory manager - bytes Definition [2401] Network errors - count Category [9006] Communications Definition [201] Target communications bytes processed Definition [2403] Target network latency (millisecond) Definition [2405] Target missing round trip response - count Definition [2407] Keep alive received - count Definition [2409] Bytes received - count Category [9008] Target Engine Definition [202] Target engine bytes processed Definition [204] Target "source" inserts Definition [205] Target "source" updates Definition [206] Target "source" deletes Definition [2101] Thread CPU - milliseconds/second Definition [2103] Rows evaluating expressions - count Definition [2104] Rows calling target DB - count Definition [2105] Rows calling user exits - count Definition [2106] MBCS conversions - bytes Category [9009] Target Apply Definition [207] Target apply inserts Definition [208] Target apply updates Definition [209] Target apply deletes Definition [216] Latency value (seconds) Definition [1701] Target database bytes processed Definition [1702] Target apply inserts - count Definition [1703] Target apply updates - count Definition [1704] Target apply deletes - count Definition [1705] Target apply slow database operations - count Definition [2301] Thread CPU - milliseconds/second Definition [2303] CDR conflicts - count Definition [2304] Adaptive Apply changes - count Definition [2305] Apply commits - count Definition [2306] Average array size - count Definition [2307] Data errors ignored - count Definition [2308] Slow database operations - count Target apply inserts Target apply updates Target apply deletes Disconnecting from CDC_ORACLE... Disconnected. Disconnecting from Access Server... Disconnected. The statistics collected are the same as seen in the figure no.5 Resources Management Console Help and Admin Guide Management Console API resources
Programming with the SCA BB Service Configuration API
CHAPTER 3 Programming with the SCA BB Service Configuration API Revised: November 8, 2010, Introduction This chapter is a reference for the main classes and methods of the Cisco SCA BB Service Configuration
More informationProgramming with the SCA BB Service Configuration API
CHAPTER 3 Programming with the SCA BB Service Configuration API Published: December 23, 2013, Introduction This chapter is a reference for the main classes and methods of the Cisco SCA BB Service Configuration
More informationProgramming with the SCA BB Service Configuration API
CHAPTER 3 Programming with the SCA BB Service Configuration API Revised: September 17, 2012, Introduction This chapter is a reference for the main classes and methods of the Cisco SCA BB Service Configuration
More informationIBM InfoSphere Data Replication s Change Data Capture (CDC) LUW User Exits IBM Corporation
IBM InfoSphere Data Replication s Change Data Capture (CDC) LUW User Exits 1 2016 IBM Corporation A Note About Code Samples Please note that this presentation includes some code samples, presented for
More informationIBM InfoSphere Data Replication s CDC DDL Change Management for Oracle
IBM InfoSphere Data Replication s CDC DDL Change Management for Oracle This document describes the new simplified procedure to follow after changes are made to the source table structure. The procedure
More informationIBM InfoSphere Data Replication s Change Data Capture (CDC) for DB2 LUW databases (Version ) Performance Evaluation and Analysis
Page 1 IBM InfoSphere Data Replication s Change Data Capture (CDC) for DB2 LUW databases (Version 10.2.1) Performance Evaluation and Analysis 2014 Prasa Urithirakodeeswaran Page 2 Contents Introduction...
More informationIBM IBM soliddb and IBM soliddb Universal Cache. Download Full Version :
IBM 000-550 IBM soliddb and IBM soliddb Universal Cache Download Full Version : http://killexams.com/pass4sure/exam-detail/000-550 C. Different cache instances cannot be configured to maintain identical
More informationOne Identity Active Roles 7.2. Azure AD and Office 365 Management Administrator Guide
One Identity Active Roles 7.2 Azure AD and Office 365 Management Administrator Copyright 2017 One Identity LLC. ALL RIGHTS RESERVED. This guide contains proprietary information protected by copyright.
More informationpublic static boolean isoutside(int min, int max, int value)
See the 2 APIs attached at the end of this worksheet. 1. Methods: Javadoc Complete the Javadoc comments for the following two methods from the API: (a) / @param @param @param @return @pre. / public static
More informationCSC Java Programming, Fall Java Data Types and Control Constructs
CSC 243 - Java Programming, Fall 2016 Java Data Types and Control Constructs Java Types In general, a type is collection of possible values Main categories of Java types: Primitive/built-in Object/Reference
More informationOracle SQL Developer. Oracle TimesTen In-Memory Database Support User's Guide Release 4.0 E
Oracle SQL Developer Oracle TimesTen In-Memory Database Support User's Guide Release 4.0 E39882-02 December 2013 Oracle SQL Developer Oracle TimesTen In-Memory Database Support User's Guide, Release 4.0
More informationBirkbeck (University of London) Software and Programming 1 In-class Test Mar 2018
Birkbeck (University of London) Software and Programming 1 In-class Test 2.1 22 Mar 2018 Student Name Student Number Answer ALL Questions 1. What output is produced when the following Java program fragment
More informationPace University. Fundamental Concepts of CS121 1
Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction
More informationFull file at
Chapter 1 Primitive Java Weiss 4 th Edition Solutions to Exercises (US Version) 1.1 Key Concepts and How To Teach Them This chapter introduces primitive features of Java found in all languages such as
More informationCS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)
CS/B.TECH/CSE(New)/SEM-5/CS-504D/2013-14 2013 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationUsing the VMware vrealize Orchestrator Client
Using the VMware vrealize Orchestrator Client vrealize Orchestrator 7.0 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by
More information2018/2/5 话费券企业客户接入文档 语雀
1 2 2 1 2 1 1 138999999999 2 1 2 https:lark.alipay.com/kaidi.hwf/hsz6gg/ppesyh#2.4-%e4%bc%81%e4%b8%9a%e5%ae%a2%e6%88%b7%e6%8e%a5%e6%94%b6%e5%85%85%e5 1/8 2 1 3 static IAcsClient client = null; public static
More informationMcGill University School of Computer Science COMP-202A Introduction to Computing 1
McGill University School of Computer Science COMP-202A Introduction to Computing 1 Midterm Exam Thursday, October 26, 2006, 18:00-20:00 (6:00 8:00 PM) Instructors: Mathieu Petitpas, Shah Asaduzzaman, Sherif
More informationTechnical Note: LogicalApps Web Services
Technical Note: LogicalApps Web Services Introduction... 1 Access Governor Overview... 1 Web Services Overview... 2 Web Services Environment... 3 Web Services Documentation... 3 A Sample Client... 4 Introduction
More informationSequence structure. The computer executes java statements one after the other in the order in which they are written. Total = total +grade;
Control Statements Control Statements All programs could be written in terms of only one of three control structures: Sequence Structure Selection Structure Repetition Structure Sequence structure The
More informationExceptions vs. Errors Exceptions vs. RuntimeExceptions try...catch...finally throw and throws
Lecture 14 Summary Exceptions vs. Errors Exceptions vs. RuntimeExceptions try...catch...finally throw and throws 1 By the end of this lecture, you will be able to differentiate between errors, exceptions,
More informationUltra Messaging (Version 6.11) Manager Guide. Copyright (C) , Informatica Corporation. All Rights Reserved.
Ultra Messaging (Version 6.11) Manager Guide Copyright (C) 2004-2017, Informatica Corporation. All Rights Reserved. Contents 1 Introduction 5 1.1 UM Manager Overview.........................................
More informationException Handling. Sometimes when the computer tries to execute a statement something goes wrong:
Exception Handling Run-time errors The exception concept Throwing exceptions Handling exceptions Declaring exceptions Creating your own exception Ariel Shamir 1 Run-time Errors Sometimes when the computer
More informationScribe Monitor App. Version 1.0
Scribe Monitor App Version 1.0 Important Notice No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, photocopying, recording, or otherwise,
More informationSoftware Development Toolkit for Desire2Learn Web Services
Software Development Toolkit for Desire2Learn Web Services Preview of the Developer Guide by Zdenek Nejedly (znejedly@uoguelph.ca) June 1, 2010 Disclaimer: You are using this document or any provided code
More informationException Handling. Run-time Errors. Methods Failure. Sometimes when the computer tries to execute a statement something goes wrong:
Exception Handling Run-time errors The exception concept Throwing exceptions Handling exceptions Declaring exceptions Creating your own exception 22 November 2007 Ariel Shamir 1 Run-time Errors Sometimes
More informationBIT Java Programming. Sem 1 Session 2011/12. Chapter 2 JAVA. basic
BIT 3383 Java Programming Sem 1 Session 2011/12 Chapter 2 JAVA basic Objective: After this lesson, you should be able to: declare, initialize and use variables according to Java programming language guidelines
More informationRemedial Java - Excep0ons 3/09/17. (remedial) Java. Jars. Anastasia Bezerianos 1
(remedial) Java anastasia.bezerianos@lri.fr Jars Anastasia Bezerianos 1 Disk organiza0on of Packages! Packages are just directories! For example! class3.inheritancerpg is located in! \remedialjava\src\class3\inheritencerpg!
More informationJava in 21 minutes. Hello world. hello world. exceptions. basic data types. constructors. classes & objects I/O. program structure.
Java in 21 minutes hello world basic data types classes & objects program structure constructors garbage collection I/O exceptions Strings Hello world import java.io.*; public class hello { public static
More informationCOE318 Lecture Notes Week 10 (Nov 7, 2011)
COE318 Software Systems Lecture Notes: Week 10 1 of 5 COE318 Lecture Notes Week 10 (Nov 7, 2011) Topics More about exceptions References Head First Java: Chapter 11 (Risky Behavior) The Java Tutorial:
More informationInput-Output and Exception Handling
Software and Programming I Input-Output and Exception Handling Roman Kontchakov / Carsten Fuhs Birkbeck, University of London Outline Reading and writing text files Exceptions The try block catch and finally
More informationITI Introduction to Computing II
ITI 1121. Introduction to Computing II Marcel Turcotte School of Electrical Engineering and Computer Science Version of February 23, 2013 Abstract Handling errors Declaring, creating and handling exceptions
More informationArray. Prepared By - Rifat Shahriyar
Java More Details Array 2 Arrays A group of variables containing values that all have the same type Arrays are fixed length entities In Java, arrays are objects, so they are considered reference types
More informationITI Introduction to Computing II
ITI 1121. Introduction to Computing II Marcel Turcotte School of Electrical Engineering and Computer Science Version of February 23, 2013 Abstract Handling errors Declaring, creating and handling exceptions
More informationUsing Netcool/Impact and IBM Tivoli Monitoring to build a custom selfservice
IBM Tivoli Software Using Netcool/Impact and IBM Tivoli Monitoring to build a custom selfservice dashboard Document version 1.0 Brian R. Fabec IBM Software Developer Copyright International Business Machines
More informationGetting started with Java
Getting started with Java by Vlad Costel Ungureanu for Learn Stuff Programming Languages A programming language is a formal constructed language designed to communicate instructions to a machine, particularly
More informationUtilities (Part 3) Implementing static features
Utilities (Part 3) Implementing static features 1 Goals for Today learn about preconditions versus validation introduction to documentation introduction to testing 2 Yahtzee class so far recall our implementation
More informationJava Programming: from the Beginning. Chapter 8 More Control Structures. CSc 2310: Principle of Programming g( (Java) Spring 2013
CSc 2310: Principle of Programming g( (Java) Spring 2013 Java Programming: from the Beginning Chapter 8 More Control Structures 1 Copyright 2000 W. W. Norton & Company. All rights reserved. 81 8.1 Exceptions
More informationTIBCO BusinessEvents Extreme. System Sizing Guide. Software Release Published May 27, 2012
TIBCO BusinessEvents Extreme System Sizing Guide Software Release 1.0.0 Published May 27, 2012 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR
More informationNetApp Cloud Volumes Service for AWS
NetApp Cloud Volumes Service for AWS AWS Account Setup Cloud Volumes Team, NetApp, Inc. March 29, 2019 Abstract This document provides instructions to set up the initial AWS environment for using the NetApp
More informationUsing the VMware vcenter Orchestrator Client. vrealize Orchestrator 5.5.1
Using the VMware vcenter Orchestrator Client vrealize Orchestrator 5.5.1 You can find the most up-to-date technical documentation on the VMware website at: https://docs.vmware.com/ If you have comments
More informationVMware vrealize Operations for Horizon Administration
VMware vrealize Operations for Horizon Administration vrealize Operations for Horizon 6.3 This document supports the version of each product listed and supports all subsequent versions until the document
More informationA Third Look At Java. Chapter Seventeen Modern Programming Languages, 2nd ed. 1
A Third Look At Java Chapter Seventeen Modern Programming Languages, 2nd ed. 1 A Little Demo public class Test { public static void main(string[] args) { int i = Integer.parseInt(args[0]); int j = Integer.parseInt(args[1]);
More informationReladomo Test Resource
October 16, 2006 Table of Contents 1. Creating test cases using Reladomo objects. 1 2. MithraTestResource Introduction 1 3. MithraTestResource Detailed API.. 3 4.. 4 5. Test data file format.. 5 1. Creating
More informationHP 5820X & 5800 Switch Series Network Management and Monitoring. Configuration Guide. Abstract
HP 5820X & 5800 Switch Series Network Management and Monitoring Configuration Guide Abstract This document describes the software features for the HP 5820X & 5800 Series products and guides you through
More informationProcess Automation Guide for Automation for SAP HANA
Process Automation Guide for Automation for SAP HANA Release 3.0 December 2013 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408
More informationTitle Page. Working with Task Workflows
Title Page Working with Task Workflows April 2013 Copyright & Document ID Copyright 2012-2013 Software AG USA, Inc. All rights reserved. The webmethods logo, Get There Faster, Smart Services and Smart
More informationCS 200 Command-Line Arguments & Exceptions Jim Williams, PhD
CS 200 Command-Line Arguments & Exceptions Jim Williams, PhD This Week 1. Battleship: Milestone 3 a. First impressions matter! b. Comment and style 2. Team Lab: ArrayLists 3. BP2, Milestone 1 next Wednesday
More informationObject Oriented Programming Exception Handling
Object Oriented Programming Exception Handling Budditha Hettige Department of Computer Science Programming Errors Types Syntax Errors Logical Errors Runtime Errors Syntax Errors Error in the syntax of
More informationGames Course, summer Introduction to Java. Frédéric Haziza
Games Course, summer 2005 Introduction to Java Frédéric Haziza (daz@it.uu.se) Summer 2005 1 Outline Where to get Java Compilation Notions of Type First Program Java Syntax Scope Class example Classpath
More information1 Shyam sir JAVA Notes
1 Shyam sir JAVA Notes 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write
More informationGuide for Administrators
novaresourcesync v.4.2 Guide for Administrators Updated May 9, 2013 Page 1 of 24 Copyright, Trademarks, and Legal Tempus Nova Inc. 1755 Blake Street Denver, CO 80202 www.tempusnova.com May 9, 2013 Copyright
More informationMMS DATA SUBSCRIPTION SERVICES USER INTERFACE GUIDE
MMS DATA SUBSCRIPTION SERVICES USER INTERFACE GUIDE VERSION: 2.01 DOCUMENT REF: PREPARED BY: MMSTDPD69 EMD DATE: 16 February 2010 Final Copyright Copyright 2012 Australian Energy Market Operator Limited
More informationIntroduction to Java
Introduction to Java Module 1: Getting started, Java Basics 22/01/2010 Prepared by Chris Panayiotou for EPL 233 1 Lab Objectives o Objective: Learn how to write, compile and execute HelloWorld.java Learn
More informationWebSphere Portal content publishing and IBM Content Manager Workflow
WebSphere Portal content publishing and IBM Content Manager Workflow By Stephen Knaus (knaus@us.ibm.com) Software Engineer, IBM Corp. May 2003 Abstract WebSphere Portal content publishing (WPCP) uses a
More information1.00 Introduction to Computers and Engineering Problem Solving. Quiz 1 March 7, 2003
1.00 Introduction to Computers and Engineering Problem Solving Quiz 1 March 7, 2003 Name: Email Address: TA: Section: You have 90 minutes to complete this exam. For coding questions, you do not need to
More informationProgramming with the Service Control Engine Subscriber Application Programming Interface
CHAPTER 5 Programming with the Service Control Engine Subscriber Application Programming Interface Revised: July 28, 2009, Introduction This chapter provides a detailed description of the Application Programming
More informationEach command-line argument is placed in the args array that is passed to the static main method as below :
1. Command-Line Arguments Any Java technology application can use command-line arguments. These string arguments are placed on the command line to launch the Java interpreter after the class name: public
More informationVMware vrealize Operations for Horizon Administration
VMware vrealize Operations for Horizon Administration vrealize Operations for Horizon 6.4 vrealize Operations Manager 6.4 This document supports the version of each product listed and supports all subsequent
More informationInfoSphere CDC Architecture and Functionality
InfoSphere CDC Architecture and Functionality 2010 IBM Corporation CDC Architecture 2 CDC Log Based Architecture Source Java-based GUI Unified Admin Point With Monitoring Target ODS Audit Database TCP/IP
More informationADF Mobile Code Corner
ADF Mobile Code Corner m05. Caching WS queried data local for create, read, update with refresh from DB and offline capabilities Abstract: The current version of ADF Mobile supports three ADF data controls:
More informationProgramming with the Service Control Engine Subscriber Application Programming Interface
CHAPTER 5 Programming with the Service Control Engine Subscriber Application Programming Interface Revised: November 20, 2012, Introduction This chapter provides a detailed description of the Application
More informationCSCI 135 Exam #2 Fundamentals of Computer Science I Fall 2013
CSCI 135 Exam #2 Fundamentals of Computer Science I Fall 2013 Name: This exam consists of 6 problems on the following 6 pages. You may use your two-sided hand-written 8 ½ x 11 note sheet during the exam.
More informationCS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University
9/5/6 CS Introduction to Computing II Wayne Snyder Department Boston University Today: Arrays (D and D) Methods Program structure Fields vs local variables Next time: Program structure continued: Classes
More informationMicrosoft SQL Server Fix Pack 15. Reference IBM
Microsoft SQL Server 6.3.1 Fix Pack 15 Reference IBM Microsoft SQL Server 6.3.1 Fix Pack 15 Reference IBM Note Before using this information and the product it supports, read the information in Notices
More informationHands-on Lab Session 9909 Introduction to Application Performance Management: Monitoring. Timothy Burris, Cloud Adoption & Technical Enablement
Hands-on Lab Session 9909 Introduction to Application Performance Management: Monitoring Timothy Burris, Cloud Adoption & Technical Enablement Copyright IBM Corporation 2017 IBM, the IBM logo and ibm.com
More informationIndex COPYRIGHTED MATERIAL
Index COPYRIGHTED MATERIAL Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations. A abstract classes
More informationStoneFly SCVM Deployment Guide for VMware ESXi
StoneFly SCVM Deployment Guide for VMware ESXi Storage Concentrator Virtual Machine Software-Defined Virtual Storage Appliance Revision 2017.1 This Page is intentionally left blank. ENG-114 V 1.1 Copyright
More informationOverview of Web Services API
CHAPTER 1 The Cisco IP Interoperability and Collaboration System (IPICS) 4.0(x) application programming interface (API) provides a web services-based API that enables the management and control of various
More informationMore Control Structures
Chapter 8 More Control Structures 1 8.1 Exceptions When a Java program performs an illegal operation, an exception happens. If a program has no special provisions for dealing with exceptions, it will behave
More informationLanguage Features. 1. The primitive types int, double, and boolean are part of the AP
Language Features 1. The primitive types int, double, and boolean are part of the AP short, long, byte, char, and float are not in the subset. In particular, students need not be aware that strings are
More informationAn overview of Java, Data types and variables
An overview of Java, Data types and variables Lecture 2 from (UNIT IV) Prepared by Mrs. K.M. Sanghavi 1 2 Hello World // HelloWorld.java: Hello World program import java.lang.*; class HelloWorld { public
More informationJava: Classes. An instance of a class is an object based on the class. Creation of an instance from a class is called instantiation.
Java: Classes Introduction A class defines the abstract characteristics of a thing (object), including its attributes and what it can do. Every Java program is composed of at least one class. From a programming
More informationTIBCO ActiveSpaces Transactions. System Sizing Guide. Software Release Published February 15, 2017
TIBCO ActiveSpaces Transactions System Sizing Guide Software Release 2.5.6 Published February 15, 2017 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED
More informationFCUBS JMS Configuration Using Websphere Default Messaging Provider Oracle FLEXCUBE Universal Banking Release [February] [2018]
FCUBS JMS Configuration Using Websphere Default Messaging Provider Oracle FLEXCUBE Universal Banking Release 14.0.0.0.0 [February] [2018] Table of Contents 1. PURPOSE... 1-3 2. INTRODUCTION... 2-4 3. PRE-REQUISITES...
More informationIntroduction to Java https://tinyurl.com/y7bvpa9z
Introduction to Java https://tinyurl.com/y7bvpa9z Eric Newhall - Laurence Meyers Team 2849 Alumni Java Object-Oriented Compiled Garbage-Collected WORA - Write Once, Run Anywhere IDE Integrated Development
More informationTIBCO BusinessEvents Extreme. System Sizing Guide. Software Release Published February 17, 2015
TIBCO BusinessEvents Extreme System Sizing Guide Software Release 1.2.1 Published February 17, 2015 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED
More informationFCUBS JMS Configuration Using Websphere Default Messaging Provider Oracle FLEXCUBE Universal Banking Release [December] [2015]
FCUBS JMS Configuration Using Websphere Default Messaging Provider Oracle FLEXCUBE Universal Banking Release 12.1.0.0.0 [December] [2015] Table of Contents 1. PURPOSE... 3 2. INTRODUCTION... 3 3. PRE-REQUISITES...
More informationMSc Software Testing MSc Prófun hugbúnaðar
MSc Software Testing MSc Prófun hugbúnaðar Fyrirlestrar 37 og 38 Assertion facility in Java Assertions as a test oracle in random testing before code deployment... 31/10/2007 Dr Andy Brooks 1 Case Study
More information16-Dec-10. Consider the following method:
Boaz Kantor Introduction to Computer Science IDC Herzliya Exception is a class. Java comes with many, we can write our own. The Exception objects, along with some Java-specific structures, allow us to
More informationJava Loop Control. Programming languages provide various control structures that allow for more complicated execution paths.
Loop Control There may be a situation when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first,
More informationNimsoft Monitor. websphere Guide. v1.5 series
Nimsoft Monitor websphere Guide v1.5 series Legal Notices Copyright 2012, Nimsoft Corporation Warranty The material contained in this document is provided "as is," and is subject to being changed, without
More informationWhat is Transaction? Why Transaction Management Required? JDBC Transaction Management in Java with Example. JDBC Transaction Management Example
JDBC Transaction Management in Java with Example Here you will learn to implement JDBC transaction management in java. By default database is in auto commit mode. That means for any insert, update or delete
More informationHYCU SCOM Management Pack for Nutanix
HYCU SCOM Management Pack for Nutanix Product version: 2.5 Product release date: May 2018 Document edition: First Legal notices Copyright notice 2016-2018 HYCU. All rights reserved. This document contains
More informationHP 5120 SI Switch Series
HP 5120 SI Switch Series Network Management and Monitoring Configuration Guide Part number: 5998-1813 Software version: Release 1505 Document version: 6W102-20121111 Legal and notice information Copyright
More informationJava: Comment Text. Introduction. Concepts
Java: Comment Text Introduction Comment text is text included in source code that is ignored by the compiler and does not cause any machine-language object code to be generated. It is written into the
More informationCSCI 135 Exam #2 Fundamentals of Computer Science I Fall 2013
CSCI 135 Exam #2 Fundamentals of Computer Science I Fall 2013 Name: This exam consists of 6 problems on the following 6 pages. You may use your two-sided hand-written 8 ½ x 11 note sheet during the exam.
More informationUnderstanding Cloud Migration. Ruth Wilson, Data Center Services Executive
Understanding Cloud Migration Ruth Wilson, Data Center Services Executive rhwilson@us.ibm.com Migrating to a Cloud is similar to migrating data and applications between data centers with a few key differences
More informationAP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS
AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this
More informationThe client also provides utilities to disassemble signatures (e.g. extracting the signer certificates, digest algorithms used etc.
Krestfield EzSign Client Integration Guide Version 2.1 Copyright Krestfield 2017 Introduction The Krestfield EzSign Client is a lightweight java package which interfaces with the EzSign Server enabling
More informationLecture 14 Summary 3/9/2009. By the end of this lecture, you will be able to differentiate between errors, exceptions, and runtime exceptions.
Lecture 14 Summary Exceptions vs. Errors Exceptions vs. RuntimeExceptions...catch...finally throw and throws By the end of this lecture, you will be able to differentiate between errors, exceptions, and
More informationIBM Security Secret Server Version Application Server API Guide
IBM Security Secret Server Version 10.4 Application Server API Guide Contents Overview... 1 Concepts... 1 Standalone Java API... 1 Integrated Java API... 1 Integrated.NET Configuration API... 1 Application
More informationCS 231 Data Structures and Algorithms, Fall 2016
CS 231 Data Structures and Algorithms, Fall 2016 Dr. Bruce A. Maxwell Department of Computer Science Colby College Course Description Focuses on the common structures used to store data and the standard
More informationCOMP 110 Programming Exercise: Simulation of the Game of Craps
COMP 110 Programming Exercise: Simulation of the Game of Craps Craps is a game of chance played by rolling two dice for a series of rolls and placing bets on the outcomes. The background on probability,
More informationCSC System Development with Java. Exception Handling. Department of Statistics and Computer Science. Budditha Hettige
CSC 308 2.0 System Development with Java Exception Handling Department of Statistics and Computer Science 1 2 Errors Errors can be categorized as several ways; Syntax Errors Logical Errors Runtime Errors
More information/* Copyright 2012 Robert C. Ilardi
/ Copyright 2012 Robert C. Ilardi Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
More informationJava Overview An introduction to the Java Programming Language
Java Overview An introduction to the Java Programming Language Produced by: Eamonn de Leastar (edeleastar@wit.ie) Dr. Siobhan Drohan (sdrohan@wit.ie) Department of Computing and Mathematics http://www.wit.ie/
More informationCA Automation Suite for Clouds Base Configuration
CA Automation Suite for Clouds Base Configuration Release Notes Release 01.7 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to
More informationEASYHA SQL SERVER V1.0
EASYHA SQL SERVER V1.0 CONTENTS 1 Introduction... 2 2 Install SQL 2016 in Azure... 3 3 Windows Failover Cluster Feature Installation... 7 4 Windows Failover Clustering Configuration... 9 4.1 Configure
More information