SlideShare uma empresa Scribd logo
1 de 16
Group Members:
Jayaweera W.J.A.I.U. 100227D
Kumarasiri M.K.D.S. 100285C
Liyanage K.L.D.U. 100299X
Sajeewa G.K.M.C. 100470N
Wijewardane M.M.D.T.K.
100612E
Stream Connector
What is a Connector?
 A software connector provides one or more of four
general classes of services:
Communication
Coordination
Conversion
Facilitation
What is a Stream?
 Streams in a software are used to transfer large
amount of data between autonomous processes.
What does the stream
connectors do?
 Stream connection provides
communication services
of the system to support
transmission of data among
components.
What other connector types
which can be connected with
stream?
 Data Access Connectors
 To provide composite connectors for performing
database and file storage access
 Event connectors
 To multiplex the delivery of large number of
events
Use of Stream
Connectors
Examples of Stream
Connector
Unix Pipes
TCP and UDP communication sockets
Proprietary Client-Server protocols
Unix Pipes
Keyboard Program
1
Program
3
Program
2
stdin
Display
stderr
stdout/stdin
stdout/stdin
stderr
stderr
stdout
TCP/UDP Communication Sockets
Process X Process Y
…. Port N ….
TCP
…. Port N ….
TCP
IP IP
Example- Code
public class StartGame {
Socket gameServerSocket;
InputStreamReader inputStreamReader;
BufferedReader bufferedReader;
PrintWriter printWriter;
public void startGame(){
try {
gameServerSocket = new Socket("127.0.0.1", 6000);
System.out.println( gameServerSocket.isConnected());
System.out.println("Connected!!!!!!!!!!!!!");
printWriter=new
PrintWriter(gameServerSocket.getOutputStream());
printWriter.print("JOIN#");
Advantages of using Stream
Disadvantages of using Stream
Variations of Stream Connector
 So many options are available to a software engineer to
construct a stream connector.
 Stream can be described according to following
dimensions,
• Cardinality of communication
• Format
• Synchronicity
• Locality
• Identity
• State
• Throughput
• Buffering
• Bounds
• Delivery
Variations of Streams According to Their
Dimensions
Cardinality – number of parties involve in communication.
Format – format of data which is carried in the stream.
Synchronicity- whether stream provides synchronicity or not
Locality – scope of communication
Identity – whether the stream-base connector is named or unnamed
Variations (ctd…)
State - whether stream maintains communication state or not
Throughput – number of data units transferred in unit time
Bounds - whether the stream-base connector is bounded or
unbounded
Buffering - whether it contains a buffer or not for flow control
Delivery - effort it takes to transfer data
Q & A

Mais conteúdo relacionado

Mais procurados

Asp.net server controls
Asp.net server controlsAsp.net server controls
Asp.net server controls
Raed Aldahdooh
 
Validation testing
Validation testingValidation testing
Validation testing
Slideshare
 

Mais procurados (20)

Security asp.net application
Security asp.net applicationSecurity asp.net application
Security asp.net application
 
Software Evolution
Software EvolutionSoftware Evolution
Software Evolution
 
Design engineering
Design engineeringDesign engineering
Design engineering
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction Modeling
 
Edifact
EdifactEdifact
Edifact
 
Type checking compiler construction Chapter #6
Type checking compiler construction Chapter #6Type checking compiler construction Chapter #6
Type checking compiler construction Chapter #6
 
Types of Parser
Types of ParserTypes of Parser
Types of Parser
 
Software development life cycle (SDLC)
Software development life cycle (SDLC)Software development life cycle (SDLC)
Software development life cycle (SDLC)
 
Asp.net server controls
Asp.net server controlsAsp.net server controls
Asp.net server controls
 
Chapter 12 user interface design
Chapter 12 user interface designChapter 12 user interface design
Chapter 12 user interface design
 
Case Study Research in Software Engineering
Case Study Research in Software EngineeringCase Study Research in Software Engineering
Case Study Research in Software Engineering
 
software engineering
software engineeringsoftware engineering
software engineering
 
Client server technology
Client server technologyClient server technology
Client server technology
 
Unit 09: Web Application Testing
Unit 09: Web Application TestingUnit 09: Web Application Testing
Unit 09: Web Application Testing
 
Validation testing
Validation testingValidation testing
Validation testing
 
Dot net assembly
Dot net assemblyDot net assembly
Dot net assembly
 
CSharp Presentation
CSharp PresentationCSharp Presentation
CSharp Presentation
 
Client side scripting and server side scripting
Client side scripting and server side scriptingClient side scripting and server side scripting
Client side scripting and server side scripting
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Code optimization in compiler design
Code optimization in compiler designCode optimization in compiler design
Code optimization in compiler design
 

Destaque (7)

Software connector type - Adaptor
Software connector type - AdaptorSoftware connector type - Adaptor
Software connector type - Adaptor
 
Ch17-Software Engineering 9
Ch17-Software Engineering 9Ch17-Software Engineering 9
Ch17-Software Engineering 9
 
An example of Future composition in a real app
An example of Future composition in a real appAn example of Future composition in a real app
An example of Future composition in a real app
 
Ch18-Software Engineering 9
Ch18-Software Engineering 9Ch18-Software Engineering 9
Ch18-Software Engineering 9
 
07 software connectors
07 software connectors07 software connectors
07 software connectors
 
07 software connectors (2)
07 software connectors (2)07 software connectors (2)
07 software connectors (2)
 
Software Architecture connectors - ActiveMQ analysis
Software Architecture connectors - ActiveMQ analysisSoftware Architecture connectors - ActiveMQ analysis
Software Architecture connectors - ActiveMQ analysis
 

Semelhante a Stream connectors

Internetworking
InternetworkingInternetworking
Internetworking
Raghu nath
 
934 Ch1 Networks
934 Ch1  Networks934 Ch1  Networks
934 Ch1 Networks
techbed
 
group11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressinggroup11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressing
Anitha Selvan
 
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Jorgen Thelin
 
lec3_10.ppt
lec3_10.pptlec3_10.ppt
lec3_10.ppt
ImXaib
 
Collaboration and Grid Technologies
Collaboration and Grid TechnologiesCollaboration and Grid Technologies
Collaboration and Grid Technologies
Videoguy
 

Semelhante a Stream connectors (20)

Automating System-Level Data-Interchange Software through a System Interface ...
Automating System-Level Data-Interchange Software through a System Interface ...Automating System-Level Data-Interchange Software through a System Interface ...
Automating System-Level Data-Interchange Software through a System Interface ...
 
Cs556 section1
Cs556 section1Cs556 section1
Cs556 section1
 
Ch 2 network
Ch 2 networkCh 2 network
Ch 2 network
 
Internetworking
InternetworkingInternetworking
Internetworking
 
934 Ch1 Networks
934 Ch1  Networks934 Ch1  Networks
934 Ch1 Networks
 
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.pptcharacteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
 
group11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressinggroup11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressing
 
nv.ppt
nv.pptnv.ppt
nv.ppt
 
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
 
Language (SoaML): A baseline for Specification of Cloud-based Services
Language (SoaML): A baseline for Specification of Cloud-based ServicesLanguage (SoaML): A baseline for Specification of Cloud-based Services
Language (SoaML): A baseline for Specification of Cloud-based Services
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architecture
 
Fundamental Of Computer Network.
Fundamental Of Computer Network. Fundamental Of Computer Network.
Fundamental Of Computer Network.
 
OSI layer by cisco
OSI layer by ciscoOSI layer by cisco
OSI layer by cisco
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Advantage of WCF Over Web Services
Advantage of WCF Over Web ServicesAdvantage of WCF Over Web Services
Advantage of WCF Over Web Services
 
lec3_10.ppt
lec3_10.pptlec3_10.ppt
lec3_10.ppt
 
Collaboration and Grid Technologies
Collaboration and Grid TechnologiesCollaboration and Grid Technologies
Collaboration and Grid Technologies
 
seven layer OSI model
seven layer OSI modelseven layer OSI model
seven layer OSI model
 
Distributed Systems: How to connect your real-time applications
Distributed Systems: How to connect your real-time applicationsDistributed Systems: How to connect your real-time applications
Distributed Systems: How to connect your real-time applications
 
Measuring black boxes
Measuring black boxesMeasuring black boxes
Measuring black boxes
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Stream connectors

  • 1. Group Members: Jayaweera W.J.A.I.U. 100227D Kumarasiri M.K.D.S. 100285C Liyanage K.L.D.U. 100299X Sajeewa G.K.M.C. 100470N Wijewardane M.M.D.T.K. 100612E Stream Connector
  • 2. What is a Connector?  A software connector provides one or more of four general classes of services: Communication Coordination Conversion Facilitation
  • 3. What is a Stream?  Streams in a software are used to transfer large amount of data between autonomous processes.
  • 4. What does the stream connectors do?  Stream connection provides communication services of the system to support transmission of data among components.
  • 5. What other connector types which can be connected with stream?  Data Access Connectors  To provide composite connectors for performing database and file storage access  Event connectors  To multiplex the delivery of large number of events
  • 7. Examples of Stream Connector Unix Pipes TCP and UDP communication sockets Proprietary Client-Server protocols
  • 9. TCP/UDP Communication Sockets Process X Process Y …. Port N …. TCP …. Port N …. TCP IP IP
  • 10. Example- Code public class StartGame { Socket gameServerSocket; InputStreamReader inputStreamReader; BufferedReader bufferedReader; PrintWriter printWriter; public void startGame(){ try { gameServerSocket = new Socket("127.0.0.1", 6000); System.out.println( gameServerSocket.isConnected()); System.out.println("Connected!!!!!!!!!!!!!"); printWriter=new PrintWriter(gameServerSocket.getOutputStream()); printWriter.print("JOIN#");
  • 11. Advantages of using Stream Disadvantages of using Stream
  • 12. Variations of Stream Connector  So many options are available to a software engineer to construct a stream connector.  Stream can be described according to following dimensions, • Cardinality of communication • Format • Synchronicity • Locality • Identity • State • Throughput • Buffering • Bounds • Delivery
  • 13.
  • 14. Variations of Streams According to Their Dimensions Cardinality – number of parties involve in communication. Format – format of data which is carried in the stream. Synchronicity- whether stream provides synchronicity or not Locality – scope of communication Identity – whether the stream-base connector is named or unnamed
  • 15. Variations (ctd…) State - whether stream maintains communication state or not Throughput – number of data units transferred in unit time Bounds - whether the stream-base connector is bounded or unbounded Buffering - whether it contains a buffer or not for flow control Delivery - effort it takes to transfer data
  • 16. Q & A

Notas do Editor

  1. Connector – An architectural component or a mechanism for, assembling functional software components supporting their interactionNecessity – Due to component based architecture
  2. Stream – In day to day language – Flow of fluids in a specific direction between two placesStreams – In software - To transfer large amount of data between autonomous processes
  3. Connectors providing communication services to support transmission of data among components. Data transfer blocks are primary building block of component interaction. Components, routinely pass messages exchange data to be processed communicate results of computations.Streams are also used in client server systems with data transfer protocols to deliver results of computation.
  4. Stream connectors are used to provide, a synchronous remote interaction of structured data among processes.
  5. Java streams
  6. In Unix-like operating systems, a pipeline is the original software pipeline. It is a chain of commands, in which the output from a particular process is fed into the next process as input. Two or more commands connected this way forms a pipe. When a program takes an input and do some processing on that and writes the result into the standard output, it is called a filter. Here all the programs run parallel, even though it can be identified as functional programming, which implies the output from one process is fed as an input to the next.While stdout and stdin writes into the next program, the standard error stream(stderr) is not passed through the pipeline, it is directed to the console by default.
  7. To manage the connection between application layer protocols, TCP and UDP use ports and sockets. The socket connection maintains a consistent port number throughout the connection. They provide a host-to-host communication in the IP communication. This implies two processes are connected to perform a particular task. i.e. two processes communicate via TCP sockets and it provides a process with a full-duplex byte stream connection to another process. In this host-to-host connection, a server process is running on one host while a client process runs in the other.
  8. ADVANTAGES----------------Separate computation from interaction Minimize component interdependencies Support software evolution Potential for supporting dynamism Facilitate heterogeneity Become points of distribution Aid system analysis & testing
  9. This slide shows the overall taxonomy of stream connectors
  10. Cardinality -It can be binary or n-ary. Under n-ary streams there can be stream of multiple senders, multiple receivers, multiple sender/ReceiverFormat- can be structured according to a particular standard. Or it can be just raw data.Synchronicity- some streams may be synchronous and some may be asynchronous.Locality- it can be a local interaction or remote interaction.Identity- named or unnamed
  11. State – stateless or statefulThroughput- atomic units or higher order unitsBounds – bounded or unbounded.Buffering- buffered or unbuffered.Delivery – best effort ,exactly once, at least once, at most once