All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.comm.ComPointMailRecord

java.lang.Object
   |
   +----semper.comm.ComPointMailRecord

public class ComPointMailRecord
extends Object
implements ComPointConstants
Defines a class for the ComPointMail records for keeping the context of mail comPoints.

Version:
beta-4, 12.8.96
Author:
Mehdi Nassehi

Constructor Index

 o ComPointMailRecord()
Constructor without args
 o ComPointMailRecord(ComPointAddress)
Creates a server ComPointmailRecord.
 o ComPointMailRecord(ComPointMailControl)
Creates a Responder ComPointmailRecord based on control received from a remote initiator.
 o ComPointMailRecord(int, int, ComPointAddress, ComPointAddress)
Creates an initiator ComPointmailRecord.

Method Index

 o getAddress()
Returns the address.
 o getConnection()
Returns the connection.
 o getControl(int)
Returns a control.
 o getKey()
Returns the key.
 o getPort()
Returns the port.
 o getQueue()
Returns the queue.
 o getReturnAddr()
Returns the return address.
 o getType()
Returns the type.
 o isBlocked()
Is an accept or a read blocked on this record?
 o notifySync()
encapsulation of notify in a synchronized method
 o setType(int)
Sets the type.
 o toString()
Creates an string representation of the Record.
 o waitSync()
encapsulation of wait in a synchronized method

Constructors

 o ComPointMailRecord
 public ComPointMailRecord()
Constructor without args

 o ComPointMailRecord
 public ComPointMailRecord(int port,
                           int connection,
                           ComPointAddress address,
                           ComPointAddress returnAddr)
Creates an initiator ComPointmailRecord.

Parameters:
port - server port through which the connection was opened.
connection - connection number
address - address
returnAddr - return address
 o ComPointMailRecord
 public ComPointMailRecord(ComPointAddress address)
Creates a server ComPointmailRecord.

Parameters:
address - address
 o ComPointMailRecord
 public ComPointMailRecord(ComPointMailControl control) throws ComPointException
Creates a Responder ComPointmailRecord based on control received from a remote initiator.

Parameters:
control - control
Throws: ComPointException
error while setting return address.

Methods

 o waitSync
 public synchronized void waitSync() throws InterruptedException
encapsulation of wait in a synchronized method

Throws: InterruptedException
interrupted exception
 o notifySync
 public synchronized void notifySync() throws InterruptedException
encapsulation of notify in a synchronized method

Throws: InterruptedException
interrupted exception
 o isBlocked
 public boolean isBlocked()
Is an accept or a read blocked on this record?

 o getControl
 public ComPointMailControl getControl(int type)
Returns a control.

Parameters:
type - type of the control which may be remote initiator or responder
 o getPort
 public int getPort()
Returns the port.

 o getConnection
 public int getConnection()
Returns the connection.

 o getKey
 public ComPointMailKey getKey()
Returns the key.

 o setType
 public void setType(int type)
Sets the type.

 o getType
 public int getType()
Returns the type.

 o getAddress
 public ComPointAddress getAddress()
Returns the address.

 o getReturnAddr
 public ComPointAddress getReturnAddr()
Returns the return address.

 o getQueue
 public Queue getQueue()
Returns the queue.

 o toString
 public String toString()
Creates an string representation of the Record.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index