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
-
ComPointMailRecord()
- Constructor without args
-
ComPointMailRecord(ComPointAddress)
- Creates a server ComPointmailRecord.
-
ComPointMailRecord(ComPointMailControl)
- Creates a Responder ComPointmailRecord based on control received from
a remote initiator.
-
ComPointMailRecord(int, int, ComPointAddress, ComPointAddress)
- Creates an initiator ComPointmailRecord.
-
getAddress()
- Returns the address.
-
getConnection()
- Returns the connection.
-
getControl(int)
- Returns a control.
-
getKey()
- Returns the key.
-
getPort()
- Returns the port.
-
getQueue()
- Returns the queue.
-
getReturnAddr()
- Returns the return address.
-
getType()
- Returns the type.
-
isBlocked()
- Is an accept or a read blocked on this record?
-
notifySync()
- encapsulation of notify in a synchronized method
-
setType(int)
- Sets the type.
-
toString()
- Creates an string representation of the Record.
-
waitSync()
- encapsulation of wait in a synchronized method
ComPointMailRecord
public ComPointMailRecord()
- Constructor without args
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
ComPointMailRecord
public ComPointMailRecord(ComPointAddress address)
- Creates a server ComPointmailRecord.
- Parameters:
- address - address
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.
waitSync
public synchronized void waitSync() throws InterruptedException
- encapsulation of wait in a synchronized method
- Throws: InterruptedException
- interrupted exception
notifySync
public synchronized void notifySync() throws InterruptedException
- encapsulation of notify in a synchronized method
- Throws: InterruptedException
- interrupted exception
isBlocked
public boolean isBlocked()
- Is an accept or a read blocked on this record?
getControl
public ComPointMailControl getControl(int type)
- Returns a control.
- Parameters:
- type - type of the control which may be remote initiator or responder
getPort
public int getPort()
- Returns the port.
getConnection
public int getConnection()
- Returns the connection.
getKey
public ComPointMailKey getKey()
- Returns the key.
setType
public void setType(int type)
- Sets the type.
getType
public int getType()
- Returns the type.
getAddress
public ComPointAddress getAddress()
- Returns the address.
getReturnAddr
public ComPointAddress getReturnAddr()
- Returns the return address.
getQueue
public Queue getQueue()
- Returns the queue.
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