/** * Test if a call is remote. */ public boolean isRemoteCall() { return caller==null? false: !caller.getRoot().equals(platform); }
/** * Get a global platform value. * @param platform The platform name. */ public static synchronized void removePlatformMemory(IComponentIdentifier platform) { platformmem.remove(platform.getRoot()); }
/** * Get the root. * @return the root. */ public IComponentIdentifier getRoot() { if(root==null) this.root = agent.getComponentIdentifier().getRoot(); return root; }
/** * Get the root. * @return the root. */ public IComponentIdentifier getRoot() { if(root==null) this.root = agent.getComponentIdentifier().getRoot(); return root; }
/** * Get the root. * @return the root. */ public IComponentIdentifier getRoot() { if(root==null) this.root = agent.getComponentIdentifier().getRoot(); return root; }
/** * Get the remote default timeout. */ public static synchronized long getRemoteDefaultTimeout(IComponentIdentifier platform) { if(platform==null) return StarterConfiguration.DEFAULT_REMOTE_TIMEOUT; platform = platform.getRoot(); return hasPlatformValue(platform, DATA_DEFAULT_REMOTE_TIMEOUT)? ((Long)getPlatformValue(platform, DATA_DEFAULT_REMOTE_TIMEOUT)).longValue(): StarterConfiguration.DEFAULT_REMOTE_TIMEOUT; }
/** * */ protected void disposeTreeView() { cmshandler.removeCMSListener(access.getComponentIdentifier().getRoot(), cmslistener); valmap.clear(); }
public void exceptionOccurred(Exception exception) { releasedatecache.put(rec.getRoot(), null); crl.resultAvailable(null); } });
/** * */ protected IFuture<TestReport> testLocal(int testno) { return performTest(agent.getComponentIdentifier().getRoot(), testno); }
/** * Test if local intermediate results are correctly delivered * (not as bunch when finished has been called). */ protected IFuture<Collection<TestReport>> testLocal(int testno, long delay) { return performTest(agent.getComponentIdentifier().getRoot(), testno, delay); }
/** * Test, if a resource is available locally. */ protected boolean isAvailable(IResourceIdentifier rid) { // Do not check existence of manually added (local) resources return ResourceIdentifier.isLocal(rid, component.getComponentIdentifier().getRoot()) || getHashRidFile(rid).exists(); }
/** * Start the service. */ @ServiceStart public IFuture<Void> startService() { this.cid = component.getComponentIdentifier().getRoot(); this.logger = component.getLogger(); return IFuture.DONE; }
/** * Execute the functional body of the agent. * Is only called once. */ public IFuture<Void> executeBody() { root = getComponentIdentifier().getRoot(); startRemoveBehaviour(); return new Future<Void>(); // never kill by return }
/** * Test if a rid is local to this platform. */ protected boolean isLocal(IResourceIdentifier rid) { return rid.getLocalIdentifier()!=null && rid.getLocalIdentifier().getComponentIdentifier().equals(component.getComponentIdentifier().getRoot()); } }
/** * Start the service. */ @ServiceStart public IFuture<Void> startService() { this.cid = component.getComponentIdentifier().getRoot(); this.logger = component.getLogger(); return IFuture.DONE; }
public void customResultAvailable(IComponentManagementService cms) { cms.getExternalAccess((IComponentIdentifier)access.getComponentIdentifier().getRoot()) .addResultListener(new SwingDelegationResultListener<IExternalAccess>(ret)); } });
public void customResultAvailable(IComponentManagementService cms) { cms.createComponent("platforms", "jadex/base/service/awareness/RemotePlatformAgent.class", new CreationInfo(getComponentIdentifier().getRoot()), null) .addResultListener(new DelegationResultListener<IComponentIdentifier>(pcreatefut)); } });
public void customResultAvailable(final TestReport result1) { performTestB(agent.getComponentIdentifier().getRoot(), testno+1, delay, max) .addResultListener(agent.getComponentFeature(IExecutionFeature.class).createResultListener(new ExceptionDelegationResultListener<TestReport, TestReport[]>(ret) { public void customResultAvailable(final TestReport result2) { ret.setResult(new TestReport[]{result1, result2}); } })); } }));