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.
-
call_state
- The Hashtable of call states
-
dbg
-
-
ipBSize
- The input block size
-
my_host_ip
- My IP Address in dotted string notation
-
my_host_name
- My host name
-
myInetAddress
- My IP Address
-
myRuntime
- The Runtime of the JVM
-
opBSize
- The output block size
-
RMIName
- The RMIName to which I am bound
-
testMP3
- The test mp3 file location at the APC service
-
Jukebox_Iap()
-
-
beHungUp(CallAgentIF, EndPointInfo)
- RMI call from CA to terminate a call.
-
call2phone(rmi2phone_req)
- The RMI server interface.
-
call2phone(rmi2phone_req, CallAgentIF)
- The IAP handles incoming in this routine.
-
cleanUp(int, OperatorIF, String)
- Call for terminating the 'operator'
-
createStartConn(int, OperatorIF, InetAddress, int, String)
- Call for creating connection to the end-operator.
-
destroy()
- Required for running as iSpace service
-
handleDTMF(CallAgentIF, String, EndPointInfo)
- RMI call from call agent for incoming DTMF
-
init()
- Call this to init a new connection to the MusicDirectory
-
init(iSpaceServiceConfig)
- init - to be called by iSpace
-
init(String, String, String, boolean)
-
-
loadLocalOperator(int, DescrOperator, String, String)
- Call for loading the 'operator'
-
main(String[])
-
-
rejected(String, String)
- RMI call from CA when remote end rejects call
-
ring(CallAgentIF, String, String, String[])
- The RMI interface for the CA to call on incoming call.
myInetAddress
public static InetAddress myInetAddress
- My IP Address
my_host_name
public static String my_host_name
- My host name
my_host_ip
public static String my_host_ip
- My IP Address in dotted string notation
RMIName
public static String RMIName
- The RMIName to which I am bound
myRuntime
public static Runtime myRuntime
- The Runtime of the JVM
call_state
public static Hashtable call_state
- The Hashtable of call states
dbg
public static final boolean dbg
testMP3
public static String testMP3
- The test mp3 file location at the APC service
ipBSize
public static int ipBSize
- The input block size
opBSize
public static int opBSize
- The output block size
Jukebox_Iap
public Jukebox_Iap() throws RemoteException
init
public static void init() throws RemoteException
- Call this to init a new connection to the MusicDirectory
call2phone
public synchronized rmi2phone_rep call2phone(rmi2phone_req req) throws RemoteException
- The RMI server interface. Just calls into the other call2phone
routine.
call2phone
public synchronized rmi2phone_rep call2phone(rmi2phone_req req,
CallAgentIF ca) throws RemoteException
- The IAP handles incoming in this routine.
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
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
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
rejected
public void rejected(String calleeAddr,
String pathInfo) throws RemoteException
- RMI call from CA when remote end rejects call
- Overrides:
- rejected in class IAPWithCA
main
public static void main(String argv[])
init
public static void init(String mdhost,
String SongsFile,
String iPoPHost,
boolean withCA)
init
public void init(iSpaceServiceConfig config)
- init - to be called by iSpace
- Overrides:
- init in class IAP
destroy
protected void destroy()
- Required for running as iSpace service
- Overrides:
- destroy in class iSpaceService
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
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
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