/** * Post a status change. * @param status The new status. */ public IFuture<Void> status(String nick, String status, byte[] image) { publishEvent(ChatEvent.TYPE_STATECHANGE, nick, ServiceCall.getCurrentInvocation().getCaller(), status, false, image); return IFuture.DONE; }
/** * Post a message * @param text The text message. */ public IFuture<Void> message(String nick, String text, boolean privatemessage) { // System.out.println("Timeout: "+ServiceCall.getInstance().getTimeout()+", "+ServiceCall.getInstance().isRealtime()); boolean published = publishEvent(ChatEvent.TYPE_MESSAGE, nick, ServiceCall.getCurrentInvocation().getCaller(), text, privatemessage, null); return published ? IFuture.DONE : new Future<Void>(new RuntimeException("No GUI, message was discarded.")); }
/** * Post a message * @param text The text message. */ public IFuture<Void> message(String nick, String text, boolean privatemessage) { // System.out.println("Timeout: "+ServiceCall.getInstance().getTimeout()+", "+ServiceCall.getInstance().isRealtime()); boolean published = publishEvent(ChatEvent.TYPE_MESSAGE, nick, ServiceCall.getInstance().getCaller(), text, privatemessage, null); return published ? IFuture.DONE : new Future<Void>(new RuntimeException("No GUI, message was discarded.")); }
/** * Post a message * @param text The text message. */ public IFuture<Void> message(String nick, String text, boolean privatemessage) { // System.out.println("Timeout: "+ServiceCall.getInstance().getTimeout()+", "+ServiceCall.getInstance().isRealtime()); boolean published = publishEvent(ChatEvent.TYPE_MESSAGE, nick, ServiceCall.getCurrentInvocation().getCaller(), text, privatemessage, null); return published ? IFuture.DONE : new Future<Void>(new RuntimeException("No GUI, message was discarded.")); }
/** * Post a status change. * @param status The new status. */ public IFuture<Void> status(String nick, String status, byte[] image) { publishEvent(ChatEvent.TYPE_STATECHANGE, nick, ServiceCall.getInstance().getCaller(), status, false, image); return IFuture.DONE; }
/** * Post a status change. * @param status The new status. */ public IFuture<Void> status(String nick, String status, byte[] image) { publishEvent(ChatEvent.TYPE_STATECHANGE, nick, ServiceCall.getCurrentInvocation().getCaller(), status, false, image); return IFuture.DONE; }
public void terminated(Exception reason) { ti.setState(TransferInfo.STATE_ABORTED); publishEvent(ChatEvent.TYPE_FILE, nick, call.getCaller(), ti); transfers2.remove(ti.getId()); } });
public void terminated(Exception reason) { ti.setState(TransferInfo.STATE_ABORTED); publishEvent(ChatEvent.TYPE_FILE, nick, call.getCaller(), ti); transfers2.remove(ti.getId()); } });
public void terminated(Exception reason) { ti.setState(TransferInfo.STATE_ABORTED); publishEvent(ChatEvent.TYPE_FILE, nick, call.getCaller(), ti); transfers2.remove(ti.getId()); } });
public void terminated(Exception reason) { ti.setState(TransferInfo.STATE_ABORTED); publishEvent(ChatEvent.TYPE_FILE, nick, call.getCaller(), ti); transfers2.remove(ti.getId()); } });
public void terminated(Exception reason) { ti.setState(TransferInfo.STATE_ABORTED); publishEvent(ChatEvent.TYPE_FILE, nick, call.getCaller(), ti); transfers2.remove(ti.getId()); } });
public void terminated(Exception reason) { ti.setState(TransferInfo.STATE_ABORTED); publishEvent(ChatEvent.TYPE_FILE, nick, call.getCaller(), ti); transfers2.remove(ti.getId()); } });
IComponentIdentifier cid = ServiceCall.getLastInvocation()!=null && ServiceCall.getLastInvocation().getCaller()!=null ? ServiceCall.getLastInvocation().getCaller() : component.getComponentIdentifier(); cms.getComponentDescription(cid) .addResultListener(new ExceptionDelegationResultListener<IComponentDescription, Void>(ret)
final IComponentIdentifier cid = ServiceCall.getCurrentInvocation().getCaller().getRoot();