All Packages Class Hierarchy This Package Previous Next Index
Class iceberg.iap.vm_iap.Vm_Iap
java.lang.Object
|
+----ninja.rmi.NinjaRemoteObject
|
+----ninja.ispace.iSpaceService
|
+----iceberg.iap.IAP
|
+----iceberg.iap.IAPWithCA
|
+----iceberg.iap.vm_iap.Vm_Iap
- public class Vm_Iap
- extends IAPWithCA
- implements rmi2phone, VMAdminIF, IAPIF, ConnectorMgrIF
IAP for a voice-mail service Can run as an independent program or
as an iSpace service. When run as an iSpace service, uses a Call
Agent to establish calls. Else, it just uses a simple RMI based
signaling to establish calls. To run it as a separate program,
make Vm_Iap extend UnicastRemoteObject instead of IAP. Uses the
Distribute Hashtable for voice-mail storage. It can also use
files for voice-mail storage (decided by #ifdef DDS).
-
ipBSize
- The input block size
-
my_vatrec_port
- Port to be used by vatrec
-
opBSize
- The output block size
-
syncStore
-
-
VM_ADMIN_IF
- The admin RMI interface name
-
Vm_Iap()
-
-
addUser(String, int)
- Add a user to the database
-
beHungUp(CallAgentIF, EndPointInfo)
- RMI call from CA to terminate a call.
-
call2phone(rmi2phone_req)
- The RMI interface for incoming calls (when not using Call Agent)
-
call2phone(rmi2phone_req, CallAgentIF)
- Bulk of the incoming call setup handling code
-
cleanUp(int, OperatorIF, String)
- Call for terminating the 'operator'
-
createStartConn(int, OperatorIF, InetAddress, int, String)
- This is the call that gives info on the destination of packets
from vat.
-
destroy()
- Required for running as iSpace service
-
getMsg(int)
-
-
getMsgInfo(int)
- Read message info from MsgHdrsHT
-
getUserInfo(String)
- Read the user info in the hashtable VMUsersHT
-
getUserInfoStr(String)
- Get user info
-
handleDTMF(CallAgentIF, String, EndPointInfo)
- RMI call from call agent for incoming DTMF
-
init(iSpaceServiceConfig)
- init for extending iSpaceService.
-
init(String, String, boolean)
- The bulk of the init functionality is implemented here
-
loadLocalOperator(int, DescrOperator, String, String)
- Call for loading the 'operator'
-
main(String[])
- Just calls into init(map_file, iPoPHost, withCA=false)
-
putMsg(byte[], int, int)
- Write message in the hashtable MsgsHT
-
putMsgInfo(String, int)
- Write message info in the hashtable MsgHdrsHT
-
putUserInfo(String, String)
- Write user info in the hashtable VMUsersHT
-
ReadFile(String)
- Routine to read bytes from a file
-
rejected(String, String)
- RMI call from CA when remote end rejects call
-
removeMsg(int)
- Remove msg from hashtable MsgsHT
-
removeMsgInfo(int)
- Remove msg info from hashtable MsgHdrsHT
-
removeUserInfo(String)
- Remove user info from hashtable
-
ring(CallAgentIF, String, String, String[])
- The RMI interface for the CA to call on incoming call.
-
WriteFile(String, byte[], int)
- Routine to store a bunch of bytes onto the given file
my_vatrec_port
public static int my_vatrec_port
- Port to be used by vatrec
VM_ADMIN_IF
public static final String VM_ADMIN_IF
- The admin RMI interface name
ipBSize
public static int ipBSize
- The input block size
opBSize
public static int opBSize
- The output block size
syncStore
public static Vm_Iap. SyncStoreClass syncStore
Vm_Iap
public Vm_Iap() throws RemoteException
getUserInfo
public static VMUserInfo getUserInfo(String uid) throws HTException
- Read the user info in the hashtable VMUsersHT
putUserInfo
public static void putUserInfo(String infoStr,
String uid) throws HTException
- Write user info in the hashtable VMUsersHT
removeUserInfo
public static void removeUserInfo(String uid) throws HTException
- Remove user info from hashtable
getMsgInfo
public static MsgInfo getMsgInfo(int msgId) throws HTException
- Read message info from MsgHdrsHT
putMsgInfo
public static void putMsgInfo(String info,
int msgId) throws HTException
- Write message info in the hashtable MsgHdrsHT
removeMsgInfo
public static void removeMsgInfo(int msgId) throws HTException
- Remove msg info from hashtable MsgHdrsHT
getMsg
public static byte[] getMsg(int msgId) throws HTException
putMsg
public static void putMsg(byte bytes[],
int len,
int msgId) throws HTException
- Write message in the hashtable MsgsHT
removeMsg
public static void removeMsg(int msgId) throws HTException
- Remove msg from hashtable MsgsHT
WriteFile
public static void WriteFile(String fname,
byte data[],
int len) throws HTException
- Routine to store a bunch of bytes onto the given file
ReadFile
public static byte[] ReadFile(String fname) throws HTException
- Routine to read bytes from a file
call2phone
public rmi2phone_rep call2phone(rmi2phone_req req) throws RemoteException
- The RMI interface for incoming calls (when not using Call Agent)
call2phone
public rmi2phone_rep call2phone(rmi2phone_req req,
CallAgentIF ca) throws RemoteException
- Bulk of the incoming call setup handling code
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
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
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
init
public void init(iSpaceServiceConfig config)
- init for extending iSpaceService. Just calls into init(map_file,
iPoPHost, withCA=true)
- Overrides:
- init in class IAP
main
public static void main(String argv[])
- Just calls into init(map_file, iPoPHost, withCA=false)
init
public static void init(String map_file,
String iPoPHost,
boolean withCA)
- The bulk of the init functionality is implemented here
destroy
protected void destroy()
- Required for running as iSpace service
- Overrides:
- destroy in class iSpaceService
addUser
public boolean addUser(String uid,
int quota) throws RemoteException, VMAdminException
- Add a user to the database
getUserInfoStr
public String getUserInfoStr(String uid) throws RemoteException, HTException
- Get user info
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
- This is the call that gives info on the destination of packets
from vat.
- 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