Package edu.pdx.cs399J.net

This package contains classes that demonstrates Java's networking and concurrent programming facilities.

See:
          Description

Class Summary
ATM This class demonstrates how concurrent access to a bank account needs to be synchronized in order to guarantee the balance is always correct.
BankAccount A BackAccount maintains a integer balance.
ChatCommunicator A ChatCommunicator obtains a Socket and then creates a ChatSpeaker and a ChatListener that run in their own threads.
ChatListener A ChatListener runs in the background and listens for messages on a socket on localhost.
ChatMessage This class represents a message that is passed between two ChatSessions.
ChatSession This class allows two people to chat.
ChatSpeaker A ChatSpeaker runs in the background and sends ChatMessages over a Socket.
Counter A Counter is something that counts in its own thread.
CountingRace This class demonstrates concurrency in Java by having Big Bird and Mr.
DateClient A client that connects to a DateServer and reads the Date sent to it as a String.
DateServer A server that waits for a DateClient to connect to it.
DumpURL This program dumps the contents of a URL to standard out.
GraphNode This class is used to demonstrate object serialization support for referential integrity.
InterruptingThread This program starts up a bunch of WorkingThreads and also starts an InterruptingThread that will interrupt each WorkingThread after a given number of seconds.
Listener This program listens to a socket.
LoadFromURL Uses a URLClassLoader to load a resource from a given URL.
McCustomer A McCustomer arrives a McDonalds and waits for a BigMac.
McDonalds This class models a McDonalds.
McEmployee This class represents an employee of a McDonalds who makes BigMacs(tm).
ReadDate This class demonstrates object serialization by reading an instance of Date from a file.
ReadGraphNodes This class demonstrates serialization support for referential integrity by deserializing a graph of GraphNodes.
Speaker A Speaker sends strings over a Socket to a Listener.
SynchronizedATM This class demonstrates obtains a lock before access the BankAccount.
SynchronizedBankAccount Synchronized methods ensure that the data in the balance is accessed correctly.
Transfer Transfers money between two BankAccounts.
WorkingThread This thread will work until and then wait until it is interrupted.
WriteDate Demonstrates serialization by writing an instance of Date to a file.
WriteGraphNodes This program constructs a graph of Nodes and serializes them to a file.
 

Package edu.pdx.cs399J.net Description

This package contains classes that demonstrates Java's networking and concurrent programming facilities.

Some networking and threading resources:



Copyright © 2000-2009 Portland State University. All Rights Reserved.