All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iceberg.iap.mm_iap.MM_IAP

java.lang.Object
   |
   +----ninja.rmi.NinjaRemoteObject
           |
           +----ninja.ispace.iSpaceService
                   |
                   +----iceberg.iap.IAP
                           |
                           +----iceberg.iap.IAPWithCA
                                   |
                                   +----iceberg.iap.mm_iap.MM_IAP

public class MM_IAP
extends IAPWithCA
implements rmi2phone, IAPIF, ConnectorMgrIF
IAP for the MediaManager service. Can be run as an independent program or as an iSpaceService. When run as an iSpaceService, it uses a Call Agent for signaling. When run as an independent program, it uses its own RMI signaling. To run as iSpaceService, make MM_IAP extend IAP, and to run as an independent program, make MM_IAP extend UnicastRemoteObject.


Variable Index

 o ipBSize
The input block size
 o opBSize
The output block size

Constructor Index

 o MM_IAP()

Method Index

 o beHungUp(CallAgentIF, EndPointInfo)
RMI call from CA to terminate a call.
 o call2phone(rmi2phone_req)
The RMI server.
 o call2phone(rmi2phone_req, CallAgentIF)
This is the routine that implements the functionality for incoming calls.
 o cleanUp(int, OperatorIF, String)
Call for terminating the 'operator'
 o createStartConn(int, OperatorIF, InetAddress, int, String)
This is the call that gives info on the destination of packets from vat.
 o destroy()
Required for running as iSpace service
 o handleDTMF(CallAgentIF, String, EndPointInfo)
RMI call from call agent for incoming DTMF
 o init(iSpaceServiceConfig)
init - to be called by iSpace
 o init(String, boolean)
 o loadLocalOperator(int, DescrOperator, String, String)
Call for loading the 'operator'
 o main(String[])
 o rejected(String, String)
RMI call from CA when remote end rejects call
 o ring(CallAgentIF, String, String, String[])
The RMI interface for the CA to call on incoming call.

Variables

 o ipBSize
 public static int ipBSize
The input block size

 o opBSize
 public static int opBSize
The output block size

Constructors

 o MM_IAP
 public MM_IAP() throws RemoteException

Methods

 o call2phone
 public rmi2phone_rep call2phone(rmi2phone_req req) throws RemoteException
The RMI server. IAP handles incoming calls through this interface.

 o call2phone
 public rmi2phone_rep call2phone(rmi2phone_req req,
                                 CallAgentIF ca) throws RemoteException
This is the routine that implements the functionality for incoming calls. The same routine is used for call setup, terminate, and for DTMF tones

 o ring
 public RingReply ring(CallAgentIF ca,
                       String callerID,
                       String netSpecID,
                       String others[]) throws RemoteException
The RMI interface for the CA to call on incoming call. This just calls call2phone with the appropriate transformation of args and return value.

Overrides:
ring in class IAPWithCA
 o beHungUp
 public void beHungUp(CallAgentIF ca,
                      EndPointInfo info) throws RemoteException
RMI call from CA to terminate a call. This just calls call2phone with the appropriate transformation of args.

Overrides:
beHungUp in class IAPWithCA
 o rejected
 public void rejected(String calleeAddr,
                      String pathInfo) throws RemoteException
RMI call from CA when remote end rejects call

Overrides:
rejected in class IAPWithCA
 o handleDTMF
 public void handleDTMF(CallAgentIF ca,
                        String tone,
                        EndPointInfo info) throws RemoteException
RMI call from call agent for incoming DTMF

Overrides:
handleDTMF in class IAP
 o init
 public void init(iSpaceServiceConfig config)
init - to be called by iSpace

Overrides:
init in class IAP
 o main
 public static void main(String argv[])
 o init
 public static void init(String iPoPHost,
                         boolean withCA)
 o destroy
 protected void destroy()
Required for running as iSpace service

Overrides:
destroy in class iSpaceService
 o loadLocalOperator
 public OperatorIF loadLocalOperator(int pathid,
                                     DescrOperator thedescr,
                                     String name,
                                     String callid) throws ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, IOException, RemoteException
Call for loading the 'operator'

Overrides:
loadLocalOperator in class IAPWithCA
 o createStartConn
 public ConnEntry createStartConn(int connType,
                                  OperatorIF opSource,
                                  InetAddress addr,
                                  int port,
                                  String callid) throws RemoteException, IOException
This is the call that gives info on the destination of packets from vat.

Overrides:
createStartConn in class IAPWithCA
 o cleanUp
 public void cleanUp(int pathid,
                     OperatorIF op,
                     String callid) throws RemoteException
Call for terminating the 'operator'

Overrides:
cleanUp in class IAPWithCA

All Packages  Class Hierarchy  This Package  Previous  Next  Index