/** * Get the rms component identifier. * @return The rms component identifier. */ public IComponentIdentifier getRMSComponentIdentifier() { return component.getComponentIdentifier(); }
/** * Create marshal service. */ public MarshalService(IExternalAccess access) { super(access.getComponentIdentifier(), IMarshalService.class, null); this.access = access; }
/** * Create a service. */ public BeliefGetter(IExternalAccess agent) { super(agent.getComponentIdentifier(), IBeliefGetter.class, null); this.agent = agent; }
/** * Build an id to be used for remote listener (de-)registration. * @param cid The remote component id. * @return An id for remote listener (de-)registration. */ protected String buildId(final IComponentIdentifier cid) { return "cmslistener_"+hashCode()+"_"+access.getComponentIdentifier().toString()+"_"+cid; } }
public void customResultAvailable(IExternalAccess result) { IComponentIdentifier cid = result.getComponentIdentifier(); ret.setResult(cid); // acknowledgeUpdate(cid.getRoot()); } });
/** * Add a service query to the registry. * @param type The service type. * @param scope The scope. * @param filter The filter. */ public static <T> ISubscriptionIntermediateFuture<T> addQuery(final IExternalAccess component, Class<T> type, String scope, IAsyncFilter<T> filter) { return addQuery(component.getComponentIdentifier(), type, scope, filter); }
public void run() { Map msg = new HashMap(); msg.put(MESSAGE_TYPE, defaulttype); msg.put(defaulttype.getSenderIdentifier(), agent.getComponentIdentifier()); sendpanel.setMessage(msg); } });
public void run() { Map msg = new HashMap(); msg.put(MESSAGE_TYPE, defaulttype); msg.put(defaulttype.getSenderIdentifier(), agent.getComponentIdentifier()); sendpanel.setMessage(msg); } });
/** * Load the settings. */ public IFuture<Void> loadSettings() { // Only load GUI settings as platform settings are loaded on platform startup and every tool init as required. return loadSettings(new File(jccaccess.getComponentIdentifier().getLocalName() + SETTINGS_EXTENSION)); }
/** * Load the settings. */ public IFuture<Void> loadSettings() { // Only load GUI settings as platform settings are loaded on platform startup and every tool init as required. return loadSettings(new File(jccaccess.getComponentIdentifier().getLocalName() + SETTINGS_EXTENSION)); }
/** * */ protected void disposeTreeView() { cmshandler.removeCMSListener(access.getComponentIdentifier().getRoot(), cmslistener); valmap.clear(); }
/** * Create a new connection handler. */ public AbstractConnectionHandler(MessageService ms, Map<String, Object> nonfunc) { // Use timeouts relative to deftimeout this(ms, nonfunc, 3, Starter.getScaledRemoteDefaultTimeout(ms.getComponent().getComponentIdentifier(), 1.0/3), Starter.getScaledRemoteDefaultTimeout(ms.getComponent().getComponentIdentifier(), 1.0/2)); }
/** * 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(); }
public void actionPerformed(ActionEvent e) { addSelectedAgent(new ComponentIdentifier("@"+access.getComponentIdentifier().getPlatformName(), (String[])null), list); } });
public void customResultAvailable(IComponentManagementService cms) { cms.getExternalAccess((IComponentIdentifier)access.getComponentIdentifier().getRoot()) .addResultListener(new SwingDelegationResultListener<IExternalAccess>(ret)); } });
public void customResultAvailable(Object result) { window.getStatusBar().setText("Saved platform settings for: "+pcc.getPlatformAccess().getComponentIdentifier().getPlatformName()); pcc.dispose(); } public void customExceptionOccurred(Exception exception)
public void customResultAvailable(final IExternalAccess platform) { performTest(platform.getComponentIdentifier(), testno, false) .addResultListener(agent.getComponentFeature(IExecutionFeature.class).createResultListener(new DelegationResultListener<TestReport>(ret))); } }));
public void customResultAvailable(final IExternalAccess platform) { performTest(platform.getComponentIdentifier(), testno, false) .addResultListener(agent.getComponentFeature(IExecutionFeature.class).createResultListener(new DelegationResultListener<TestReport>(ret))); } }));
/** * Test if the service is a local service. */ public boolean isLocal() { return ((IService)getService()).getServiceIdentifier().getProviderId().getRoot() .equals(getJCC().getJCCAccess().getComponentIdentifier().getRoot()); }
public void customResultAvailable(Object result) { window.getStatusBar().setText("Saved platform settings for: "+pcc.getPlatformAccess().getComponentIdentifier().getPlatformName()); pcc.dispose(); } public void customExceptionOccurred(Exception exception)