SenderReceiverpublic class SenderReceiver extends Object implements Sender, ReceiverThe SenderRecevier class is our implemention of the OTS Sender and Receiver
classes.
Their method are implemented here as passthroughs to avoid dependency on the
CosTSPortability package in com.ibm.jts.implement. This is because
CosTSPortability is a deprecated interface in the OMG specification. |
Fields Summary |
---|
private static final boolean | debug | private static SenderReceiver | sendRec | static Logger | _logger |
Constructors Summary |
---|
SenderReceiver()Default constructor.
|
Methods Summary |
---|
private void | debugMessage(java.lang.String msg, int id, PropagationContext ctx)
//System.err.print is not removed as debug Message will no more be
//used.
_logger.log(Level.FINE,msg+";"+id);
if (ctx == null) {
_logger.log(Level.FINE,"");
} else {
_logger.log(Level.FINE,"," + ctx.current.otid.formatID);
}
| static void | identify(TSIdentification ident)Identifies an instance of this class to the TSIdentification object.
try {
ident.identify_sender(sendRec);
ident.identify_receiver(sendRec);
if (debug) {
_logger.log(Level.FINE,"Sender/Receiver "+ sendRec +
" successfully identified");
}
} catch(AlreadyIdentified exc) {
_logger.log(Level.FINE,"jts.already_indetified_communication_manager");
} catch (NotAvailable exc) {
_logger.log(Level.WARNING,"jts.unable_to_indetify_communication_manager");
}
| public void | received_reply(int id, PropagationContext context, org.omg.CORBA.Environment ex)Pass the operation through to the CurrentTransaction class.
if (debug) {
_logger.log(Level.FINE,"In received_reply"+
":"+id+","+context.current.otid.formatID);
}
CurrentTransaction.receivedReply(id, context, ex);
if (debug) {
_logger.log(Level.FINE,"Out received_reply"+
":"+id+","+context.current.otid.formatID);
}
| public void | received_request(int id, PropagationContext context)Pass the operation through to the CurrentTransaction class.
if (debug) {
_logger.log(Level.FINE,"In received_request"+
":"+id+","+context.current.otid.formatID);
}
CurrentTransaction.receivedRequest(id, context);
if (debug) {
_logger.log(Level.FINE,"Out received_request"+
":"+id+","+context.current.otid.formatID);
}
| public void | sending_reply(int id, PropagationContextHolder holder)Pass the operation through to the CurrentTransaction class.
if (debug) {
_logger.log(Level.FINE,"In sending_reply"+
":"+id+","+holder.value.current.otid.formatID);
}
CurrentTransaction.sendingReply(id, holder);
if (debug) {
_logger.log(Level.FINE,"Out sending_reply"+
":"+id+","+holder.value.current.otid.formatID);
}
| public void | sending_request(int id, PropagationContextHolder holder)Pass the operation through to the CurrentTransaction class.
if (debug) {
_logger.log(Level.FINE,"In sending_request"+
":"+id+","+holder.value.current.otid.formatID);
}
CurrentTransaction.sendingRequest(id, holder);
if (debug) {
_logger.log(Level.FINE,"Out sending_request"+
":"+id+","+holder.value.current.otid.formatID);
}
|
|