/* * (non-Javadoc) * * @see * jp.happyhacking70.cum3.presSvr.chnlLyr.ChnlAudIntf#lvChnl(jp.happyhacking70 * .cum3.presSvr.audLyr.AudIntf) */ @Override public synchronized NtfyCmdLvChnl lvChnl(AudIntf aud) throws CumExcpAudNotExist { if (auds.containsKey(aud.getAudName()) == false) { throw new CumExcpAudNotExist(chnlName, aud.getAudName()); } auds.remove(aud.getAudName()); return new NtfyCmdLvChnl(seshName, chnlType, chnlName, aud.getAudName()); }
/* * (non-Javadoc) * * @see * jp.happyhacking70.cum3.presSvr.chnlLyr.ChnlAudIntf#joinChnl(jp.happyhacking70 * .cum3.presSvr.audLyr.AudIntf) */ @Override public synchronized NtfyCmdJoinChnl joinChnl(AudIntf aud) throws CumExcpAudExists { if (auds.containsKey(aud.getAudName())) { throw new CumExcpAudExists(chnlName, aud.getAudName()); } auds.put(aud.getAudName(), aud); return new NtfyCmdJoinChnl(seshName, chnlType, chnlName, aud.getAudName()); }
/* * (non-Javadoc) * * @see * jp.happyhacking70.cum3.presSvr.chnlLyr.ChnlPrestrIntf#sendChnlCmd(jp. * happyhacking70.cum3.cmd.CmdChnlAbst) */ @Override public synchronized void sendChnlCmd(CmdChnlAbst cmd) throws CumExcpAudNotExist, CumExcpXMLGenFailed { for (AudIntf aud : auds.values()) { sendChnlCmd(cmd, aud.getAudName()); } }