org.apache.catalina.tribes.transport.MultiPointSender Java Examples

The following examples show how to use org.apache.catalina.tribes.transport.MultiPointSender. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SenderSF.java    From Tomcat8-Source-Read with MIT License 3 votes vote down vote up
/**
 * Store the specified Sender child.
 *
 * @param aWriter
 *            PrintWriter to which we are storing
 * @param indent
 *            Number of spaces to indent this element
 * @param aSender
 *            Channel whose properties are being stored
 *
 * @exception Exception
 *                if an exception occurs while storing
 */
@Override
public void storeChildren(PrintWriter aWriter, int indent, Object aSender,
        StoreDescription parentDesc) throws Exception {
    if (aSender instanceof ReplicationTransmitter) {
        ReplicationTransmitter transmitter = (ReplicationTransmitter) aSender;
        // Store nested <Transport> element
        MultiPointSender transport = transmitter.getTransport();
        if (transport != null) {
            storeElement(aWriter, indent, transport);
        }
   }
}