All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iceberg.iap.jukebox_iap.Jukebox_Iap

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

public class Jukebox_Iap
extends IAPWithCA
implements rmi2phone, IAPIF, ConnectorMgrIF
IAP to interface with the Ninja JukeBox service. Can run as an independent program (in which case it uses its own signaling), or as an iSpaceService (in which case it uses a Call Agent service for establishing calls). To run as an independent program, make Jukebox_Iap extend UnicastRemoteObject and to run as an iSpaceService, make Jukebox_Iap extend IAP.


Variable Index

 o call_state
The Hashtable of call states
 o dbg
 o ipBSize
The input block size
 o my_host_ip
My IP Address in dotted string notation
 o my_host_name
My host name
 o myInetAddress
My IP Address
 o myRuntime
The Runtime of the JVM
 o opBSize
The output block size
 o RMIName
The RMIName to which I am bound
 o testMP3
The test mp3 file location at the APC service

Constructor Index

 o Jukebox_Iap()

Method Index

 o beHungUp(CallAgentIF, EndPointInfo)
RMI call from CA to terminate a call.
 o call2phone(rmi2phone_req)
The RMI server interface.
 o call2phone(rmi2phone_req, CallAgentIF)
The IAP handles incoming in this routine.
 o cleanUp(int, OperatorIF, String)
Call for terminating the 'operator'
 o createStartConn(int, OperatorIF, InetAddress, int, String)
Call for creating connection to the end-operator.
 o destroy()
Required for running as iSpace service
 o handleDTMF(CallAgentIF, String, EndPointInfo)
RMI call from call agent for incoming DTMF
 o init()
Call this to init a new connection to the MusicDirectory
 o init(iSpaceServiceConfig)
init - to be called by iSpace
 o init(String, String, 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 myInetAddress
 public static InetAddress myInetAddress
My IP Address

 o my_host_name
 public static String my_host_name
My host name

 o my_host_ip
 public static String my_host_ip
My IP Address in dotted string notation

 o RMIName
 public static String RMIName
The RMIName to which I am bound

 o myRuntime
 public static Runtime myRuntime
The Runtime of the JVM

 o call_state
 public static Hashtable call_state
The Hashtable of call states

 o dbg
 public static final boolean dbg
 o testMP3
 public static String testMP3
The test mp3 file location at the APC service

 o ipBSize
 public static int ipBSize
The input block size

 o opBSize
 public static int opBSize
The output block size

Constructors

 o Jukebox_Iap
 public Jukebox_Iap() throws RemoteException

Methods

 o init
 public static void init() throws RemoteException
Call this to init a new connection to the MusicDirectory

 o call2phone
 public synchronized rmi2phone_rep call2phone(rmi2phone_req req) throws RemoteException
The RMI server interface. Just calls into the other call2phone routine.

 o call2phone
 public synchronized rmi2phone_rep call2phone(rmi2phone_req req,
                                              CallAgentIF ca) throws RemoteException
The IAP handles incoming in this routine.

 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 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 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 main
 public static void main(String argv[])
 o init
 public static void init(String mdhost,
                         String SongsFile,
                         String iPoPHost,
                         boolean withCA)
 o init
 public void init(iSpaceServiceConfig config)
init - to be called by iSpace

Overrides:
init in class IAP
 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
Call for creating connection to the end-operator. Since the jukebox does not have any end-operator, ignore the call.

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