/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: RWGroupJSSProxy.java,v 1.3 2008/06/25 05:41:34 qcheng Exp $
*
*/
private boolean src_to_dst_clean = false;
private boolean dst_to_src_clean = false;
{
}
if (obj == src_to_dst) {
if (dst_to_src.isAlive()) {
dst_to_src.stop();
}
} else if (obj == dst_to_src) {
if (src_to_dst.isAlive()) {
src_to_dst.stop();
}
}
cleanup();
if (obj == src_to_dst) {
src_to_dst_clean = true;
} else if (obj == dst_to_src) {
dst_to_src_clean = true;
}
}
public void cleanup() {
if (fromClient != null) {
try {
fromClient.close();
} catch (Exception e) {
} finally {
fromClient = null;
}
}
try {
} catch (Exception e) {
} finally {
}
}
}
public boolean isDone() {
if (dst_to_src_clean && src_to_dst_clean) {
dst_to_src = null;
src_to_dst = null;
}
return(dst_to_src_clean && src_to_dst_clean);
}
}