/** * Create an component termination exception. */ public ComponentTerminatedException(IComponentIdentifier cid) { super(cid.getName()); this.cid = cid; }
/** * Create an component termination exception. */ public ComponentTerminatedException(IComponentIdentifier cid) { super(cid.getName()); this.cid = cid; }
/** * Create an component termination exception. */ public ComponentTerminatedException(IComponentIdentifier cid, String message) { super(cid.getName()+": "+message); this.cid = cid; }
/** * Create an component termination exception. */ public ComponentNotFoundException(IComponentIdentifier cid) { super(cid.getName()); this.cid = cid; }
/** * Create an component termination exception. */ public ComponentNotFoundException(IComponentIdentifier cid, String message) { super(cid.getName()+": "+message); this.cid = cid; }
/** * Create an component persited exception. */ public ComponentPersistedException(IComponentIdentifier cid) { super(cid.getName()); this.cid = cid; }
/** * Get the name without @ replaced by dot. */ public static String getDotName(IComponentIdentifier cid) { return cid.getName().replace('@', '.'); // return cid.getParent()==null? cid.getName(): cid.getLocalName()+"."+getSubcomponentName(cid); }
public void exceptionOccurred(Exception exception) { if(cid.getName().toLowerCase().indexOf("directservice")!=-1 || cid.getName().toLowerCase().indexOf("rawservice")!=-1 || cid.getName().toLowerCase().indexOf("decoupledservice")!=-1) { System.out.println("getExternalAccess: "+agent.getComponentIdentifier()+", "+cid); // getExternalAccess(cid); } } });
/** * Test if two component identifiers are equal. * @return True, if equal. */ public boolean equals(Object obj) { return this==obj || obj instanceof IComponentIdentifier && SUtil.equals(name, ((IComponentIdentifier)obj).getName()); }
/** * Get a string representation. */ public String toString() { return getComponentIdentifier().getName(); } }
/** * Create a new property. */ public ProxyLatencyProperty(final IInternalAccess comp) { super(comp, new NFPropertyMetaInfo("latency "+((ProxyAgent)comp).rcid.getName(), long.class, null, true, 0, true, Target.Root), false); }
/** * Test if two component identifiers are equal. * @return True, if equal. */ public boolean equals(Object obj) { return this==obj || obj instanceof IComponentIdentifier && SUtil.equals(name, ((IComponentIdentifier)obj).getName()); }
/** * String representation of the component. */ public String toString() { return "StandaloneComponentAdapter("+desc.getName().getName()+")"; }
/** * Test if a component identifier is a remote component. */ protected boolean isRemoteComponent(IComponentIdentifier cid) { return !cid.getPlatformName().equals(root.getComponentIdentifier().getName()); }
/** * Test if a component identifier is a remote component. */ protected boolean isRemoteComponent(IComponentIdentifier cid) { return !cid.getPlatformName().equals(agent.getComponentIdentifier().getName()); }
/** * Test if a component identifier is a remote component. */ protected boolean isRemoteComponent(IComponentIdentifier cid) { return !cid.getPlatformName().equals(root.getComponentIdentifier().getName()); }
/** * Name is used as tab title. */ public String getName() { // GTK look and feel calls this already in constructor. grrr return controlcenter==null ? null : controlcenter.getPlatformAccess().getComponentIdentifier().getName(); }
/** * Get an item. */ public IFuture<String> getItem() { return new Future<String>("item: "+agent.getComponentIdentifier().getName()); }
public void sendBackwardCommand(Object info) { Future<Object> res = new Future<Object>(); final String mycallid = SUtil.createUniqueId(compid.getName()+".sub."+method.toString()); RemoteFutureBackwardCommand content = new RemoteFutureBackwardCommand(mycallid, callid, info); // Can be invoked directly, because internally redirects to agent thread. // System.out.println("sending backward cmd"); rsms.sendMessage(pr.getRemoteReference().getRemoteManagementServiceIdentifier(), null, content, mycallid, to, res, nonfunc, sic); }
public void sendBackwardCommand(Object info) { Future<Object> res = new Future<Object>(); final String mycallid = SUtil.createUniqueId(compid.getName()+".term."+method.toString()); RemoteFutureBackwardCommand content = new RemoteFutureBackwardCommand(mycallid, callid, info); // Can be invoked directly, because internally redirects to agent thread. // System.out.println("sending backward cmd"); rsms.sendMessage(pr.getRemoteReference().getRemoteManagementServiceIdentifier(), null, content, mycallid, to, res, nonfunc, sic); }