Beruflich Dokumente
Kultur Dokumente
_____________________________________________________________________________________________
Acharya Motibhai Patel Institute of Computer Studies, Ganpat University, Kherva, Mehsana,
Gujrat, India.
Abstract
Present study was focus on Object Oriented Paradigm using Visual Basic.net which can
be reusable and robust structures that support the prediction of fault tolerance of
software errors in the application layer. Once any software developed, their first goal is
to create error free and objective met software. Although developers often have several
problems after completion of their task, here we will give fault-tolerance techniques
with vb.net. We are trying to show Fault tolerance can be implemented with Visual
Basic.net. Implementation supports the approach of user defined library and re-designs.
Introduction
To manage software system complexity, to As we develop our routine any code with
convert any real time problem, we use Object Oriented Paradigm (OOP) with
object-oriented programming. To enhance object Library based on meta object
reliability into any Software system we need protocols, we implement a set of monitoring
some of the new creation introducing by mechanisms for software fault tolerance in
Software fault-tolerance (1). Approaches Visual basic.net. Meta-level interface hides
and mechanisms are therefore required to most implementation details of the fault-
allow the system working with software tolerant mechanism at the application level
faults remaining in the system after its and allows the programmer to flexibly
development. There are many ways to do change the use of various schemes of fault
which have been proven successful (2). tolerance without modifying the code of
Here, we introduce our experience using application programs.
Visual basic.net for the implementation of
reusable, robust structure that can effectively In Addition, the document includes our
support the prediction of software fault reproduced model and implementation
tolerance at the application level in object- framework for software error tolerance and
oriented software (3). We focus on reliable addresses the separation of concerns
systems that can reduce the encumbrance of regarding the development of fault-tolerant
individual programmers, and therefore less programs. Visual basic.net is used to define
likely to produce software failures. and implement object libraries that support
© STM Journals 2011. All Rights Reserved. 32
Journal of Computer Technology & Applications
Volume 2, Issue 1, March, 2011, Pages 32-40.
_____________________________________________________________________________________________
software fault tolerance. Very firstly we As we know, software failures are endless. It
would like to focus on the software fault can occur any time because of any reason
tolerance framework, later OOP and fault though we keep mind over the development.
tolerance is discussed. Here we are There are many ways to manage errors in
developing the code for dealing with faults fault tolerance. First, we would focus on the
when the application is running. Finally, our Design Diversity. It is an approach in which
experiments focus on different sets of code the making of two or more components
and their results. intended at achieving the same output
through independent designs and
An Approached Framework of Software- implementations (6, 7). Design diversity
Fault Tolerance begins with the initial requirement of
specification. (1).
Fault tolerance can be made available, by
redundancy, functionality according to the Variety of designs with data diversity and
requirement, and when the flaws that environmental diversity of the whole system
occurred or are occurring. Laprie argues that can produce better services. There may be at
resilience is achieved by redundancy (5). It least two variations to design system faults
may be fine for the bugs that are not caused tolerance, which requires a primary solution
by design flaws; though, repeatedly of the that provides expected error-free result of
design fault in more than a few places will performance variations.
not help in the implementation of the
specification. It is also important to Classical techniques for tolerating software
emphasis on the specification as the final design faults are mostly based on some form
arbiter that no software faults tolerance in of design diversity including Recovery
the context of this work is a concern with all Blocks (RcB) (8) and N-version
methods required by the system to tolerate programming (NVP) (6). The RcB is one of
software design faults. To discuss the the two original varieties of techniques of
software fault tolerance, we must first software fault tolerance. It was introduced in
establish, or uncover a conceptual model for 1974, Horning et al., from early
describing software systems. The system is implementations developed by Randall in
supposed to consist of many components 1975 and Hecht in 1981 (8).
that interact under the control design (1).
The components are as systems in their way,
but the design of the system is also a
component which has special characteristics
for managing the interaction between the
components and the linkage between the
system and its environment.
_____________________________________________________________________________________________
RcB work with variations in output made We classify programmers into three classes
during the program execution on the basis of of fault-tolerant object-oriented program:
results of acceptance tests. RcB uses the users failover objects, designers of fault-
acceptance test, back and restore order to tolerant objects (or foot-designer) and
achieve fault tolerance. We know that most system (or meta-level) programmers. If only
of the functions of the program can be using fault-tolerant object or an improved
executed in more than one ways using version of the original object, the user must
different algorithms and structures. These know a little information about the
different functions are variations which have interested object of fault-tolerant or not.
varying degrees of effectiveness in the
management and use of memory, execution
time, reliability and other criteria. RcB
includes this variation, the most efficient
module, is the first in the flow. And it is
called a primary alternative or primary unit.
_____________________________________________________________________________________________
OOP Approach
_____________________________________________________________________________________________
_____________________________________________________________________________________________
_____________________________________________________________________________________________
It can be easily modified using various enabling speedy experimentations and some
communication protocols, such as reduction of the extra burden on the FT-
mechanisms of RPC, used by the system designers. However, the application
Arjuna (11). Now, by using the reusable programmer who wishes to utilize the
control structures provided above, an fault library routines must be fully responsible for
tolerant designer can easily construct correct use of them; the programming
dependable versions (or sub-classes) of the conventions related to the use of library
ItemList class. The fault tolerant designer programs must be strictly adhered and all
has to develop the Variations and to indicate checks as to the faithfulness can be
which type of objects will be handled by the performed only by the programmer
FaultT1. him/herself. Moreover, such conventions
cannot make a clear separation between
Public function NVP(ByVal Obj As item) application code and the extra code for
implements FaultT1. NVP software-fault tolerance. To support Sorting,
Dim i As Integer = left, j As Integer = right we can have QuickSort as well as NVP for
Dim temp As Integer achieving Design diversity.
Dim pivot__1 As Integer =
CInt(arr.GetValue(Pivot(right, left))) Public class FMT
While i <= j Inherits Item
While CInt(arr.GetValue(i))< pivot1 if ( NOT obj.List) then
i += 1 „Use NVP(..)
End While Else
While CInt(arr.GetValue(j)) > pivot1 „use QuickSort()
j -= 1 End if
End While End Function
If i <= j Then End class
temp = CInt(arr.GetValue(i))
arr.SetValue(arr.GetValue(j), i) Suppose one would like to make the
arr.SetValue(temp, j) QuickSort() operation fault-tolerant. We
i += 1 should be able to make the QuickSort()
j -= 1 operation reflective first and inherits it by
End If the next used class of vb.net. Note that the
End While code of the control mechanisms
If left < j Then implemented in FMC can use Item and
QuickSort(left, j) FaultT1 both. So the base-level programs
End If will be very similar to normal, non-fault-
If i < right Then tolerant ones and Item is derived from
QuickSort(i, right) Itemlist which treated as sub objects.
End If Further, we can create any class that can use
End Function our earlier defined class for achieving same
functionality.
We defined the QuickSort() for the different
objects from different nodes which can use
it. We can achieve few advantages of this
approach as no change to the compiler so
© STM Journals 2011. All Rights Reserved. 38
Journal of Computer Technology & Applications
Volume 2, Issue 1, March, 2011, Pages 32-40.
_____________________________________________________________________________________________
_____________________________________________________________________________________________