All Packages Class Hierarchy This Package Previous Next Index
Class iceberg.iap.vat_iap.Vat_Iap
java.lang.Object
|
+----ninja.rmi.NinjaRemoteObject
|
+----ninja.ispace.iSpaceService
|
+----iceberg.iap.IAP
|
+----iceberg.iap.IAPWithCA
|
+----iceberg.iap.vat_iap.Vat_Iap
- public class Vat_Iap
- extends IAPWithCA
- implements rmi2phone, IAPIF, ConnectorMgrIF
IAP for vat. This can run as an independent executable, or from
iSpace. To run it a separate program, make Vat_Iap extend
'UnicastRemoteObject'. To run it as an iSpaceService, make
Vat_Iap extend 'IAP' It should just compile either way. When it
runs as an iSpaceService, Vat_Iap uses a CallAgent for signaling.
Else, it uses its own signaling between IAPs.
Note: Operation without the call agent has not been tested
very well.
- See Also:
- IAPWithCA, IAPIF, ConnectorMgrIF, rmi2phone
-
accBtn
- Button for user to accept/reject call
-
accepted
- Has incoming call been accepted?
-
accWaitStat
-
-
calleeEmail
- The text field in the GUI for callee's e-mail
-
callerEmail
- The identity of the caller (in email format)
-
connStat
-
-
discStat
-
-
ipBSize
- The input block size
-
ldapObj
- The ldap instance used for name lookups
-
log
- Text area for log messages
-
my_format
- Format to be used by vat
-
my_host_ip
- My IP Address in dotted string notation
-
my_host_name
- My host name
-
my_vat_port
- Port to be used by vat
-
myInetAddress
- My IP Address
-
myRuntime
- The Runtime of the JVM
-
name_server
- The name server for bootstrap
-
opBSize
- The output block size
-
RMIName
- The RMIName to which I am bound
-
statusLabel
- The label indicating status
-
vat_thr
- The thread that waits for vat
-
vatImpl
- The instance of the Vat_Iap class
-
Vat_Iap()
-
-
beHungUp(CallAgentIF, EndPointInfo)
- RMI call from CA to terminate a call.
-
call2phone(rmi2phone_req)
- The RMI server.
-
call2phone(rmi2phone_req, CallAgentIF)
- Called by the RMI interface routine to do the actual work.
-
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
-
init(iSpaceServiceConfig)
- init - to be called by iSpace; calls into the other init()
-
init(String, String, String, String, boolean)
- init - will be called by init(iSpaceServiceConfig) and by main()
-
loadLocalOperator(int, DescrOperator, String, String)
- Call for loading the 'operator'.
-
logAppend(String)
- GUI related routine
-
main(String[])
- The program with the GUI that execs vat for incoming calls.
-
rejected(String, String)
- RMI call from CA when remote end rejects call -- not sure if
this is ever called by the call agent
-
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
my_vat_port
public static int my_vat_port
- Port to be used by vat
my_format
public static String my_format
- Format to be used by vat
vat_thr
public static VatThrClass vat_thr
- The thread that waits for vat
myRuntime
public static Runtime myRuntime
- The Runtime of the JVM
RMIName
public static String RMIName
- The RMIName to which I am bound
name_server
public static String name_server
- The name server for bootstrap
ldapObj
public static ldap ldapObj
- The ldap instance used for name lookups
calleeEmail
public static JTextField calleeEmail
- The text field in the GUI for callee's e-mail
statusLabel
public static JLabel statusLabel
- The label indicating status
connStat
public static String connStat
discStat
public static String discStat
accWaitStat
public static String accWaitStat
log
public static JTextArea log
- Text area for log messages
accBtn
public static JButton accBtn
- Button for user to accept/reject call
accepted
public static boolean accepted
- Has incoming call been accepted?
vatImpl
public static Vat_Iap vatImpl
- The instance of the Vat_Iap class
ipBSize
public static int ipBSize
- The input block size
opBSize
public static int opBSize
- The output block size
callerEmail
public static String callerEmail
- The identity of the caller (in email format)
Vat_Iap
public Vat_Iap() throws RemoteException
call2phone
public synchronized rmi2phone_rep call2phone(rmi2phone_req req) throws RemoteException
- The RMI server. IAP handles incoming calls through this
interface. This is called when vat_iap is operating without a
call agent. The name is due to historical reasons :-)
call2phone
public synchronized rmi2phone_rep call2phone(rmi2phone_req req,
CallAgentIF ca) throws RemoteException
- Called by the RMI interface routine to do the actual work.
- Parameters:
- req - - the incoming request
- ca - - the call agent (null if operating without CA)
logAppend
public static void logAppend(String s)
- GUI related 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. Note: many of the fields in rmi2phone_req
and rmi2phone_rep are not really required.
- 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.
- Parameters:
- ca - - the call agent corresponding to the call (not used)
- info - - the end-point info that was passed in the original
RingReply to ring() or OutgoingCallRequest in
handleOutgoingCall() -- this has the session-id
- Overrides:
- beHungUp in class IAPWithCA
rejected
public void rejected(String calleeAddr,
String pathInfo) throws RemoteException
- RMI call from CA when remote end rejects call -- not sure if
this is ever called by the call agent
- Overrides:
- rejected in class IAPWithCA
init
public void init(iSpaceServiceConfig config)
- init - to be called by iSpace; calls into the other init()
- Overrides:
- init in class IAP
main
public static void main(String argv[])
- The program with the GUI that execs vat for incoming calls.
main() is not invoked when operating with a call-agent.
init
public static void init(String name_server,
String iPoPHost,
String fmt,
String callerEmail,
boolean withCA)
- init - will be called by init(iSpaceServiceConfig) and by main()
- Parameters:
- name_server - - the local Iceberg name server
- iPoPHost - - the host running the iPoP service
- fmt - - the format to be used by vat (gsm or pcm-ul-8000)
- callerEmail - - email id of the person using the IAP
- withCA - - am I operating with a call agent?
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 sessionID) throws ClassNotFoundException, IllegalArgumentException, InstantiationException, IllegalAccessException, IOException, RemoteException
- Call for loading the 'operator'. Return the interface to the
dummy operator.
- Parameters:
- pathid - - the id of the path
- thedescr - - description of the source operator to be run
at this end
- name - - name of the operator (ignored)
- sessionID - - the callid/sessionID that was passed in the
original EndPointInfo to the call agent
- Overrides:
- loadLocalOperator in class IAPWithCA
createStartConn
public ConnEntry createStartConn(int connType,
OperatorIF opSource,
InetAddress addr,
int port,
String sessionID) throws RemoteException, IOException
- This is the call that gives info on the destination of packets
from vat.
- Parameters:
- connType - - ignored
- opSource - - ignored
- addr - - destination IP address of pkts from this source
operator
- port - - destn port for pkts from this src operator
- sessionID - - the callid/sessionID that was passed in the
original EndPointInfo to the call agent
- Overrides:
- createStartConn in class IAPWithCA
cleanUp
public void cleanUp(int pathid,
OperatorIF op,
String sessionID) throws RemoteException
- Call for terminating the 'operator'
- Parameters:
- sessionID - - the callid/sessionID that was passed in the
original EndPointInfo to the call agent (not used, other args
also not used)
- Overrides:
- cleanUp in class IAPWithCA
All Packages Class Hierarchy This Package Previous Next Index