/** * Returns the locator to the connector. Locator is the actual InvokerLocator * object used to identify and get the ServerInvoker we are wrapping. * * @jmx.managed-attribute description = "Locator is the actual InvokerLocator object used to * identify and get the ServerInvoker we are wrapping." * access = "read-only" */ public InvokerLocator getLocator() { return invoker.getLocator(); }
/** * Subclasses should override to provide any specific start logic. */ public void start() throws IOException { started = true; log.debug(this + " started for locator " + getLocator()); }
public static void destroyServerInvoker(ServerInvoker invoker) { if(invoker != null) { InvokerLocator locator = invoker.getLocator(); unregisterLocator(locator); } }
public java.io.Serializable getStub() { return getInvoker().getLocator(); }
/** * Gets the invoker locator string for this server * * @return */ public String getInvokerLocator() { if(serverInvoker != null) { return serverInvoker.getLocator().getLocatorURI(); } else { return null; } }
protected Invoker createProxy(boolean isStrictRMIException, List<?> targets, LoadBalancePolicy policy, String proxyFamilyName, long viewId) { return new UnifiedInvokerHAProxy(getInvoker().getLocator(), isStrictRMIException, targets, policy, proxyFamilyName, viewId); } }
private ServerInvokerCallbackHandler getCallbackHandler(InvocationRequest invocation) throws Exception { ServerInvokerCallbackHandler callbackHandler = null; String id = ServerInvokerCallbackHandler.getId(invocation); synchronized(callbackHandlers) { callbackHandler = (ServerInvokerCallbackHandler)callbackHandlers.get(id); // if does not exist, create it if(callbackHandler == null) { callbackHandler = new ServerInvokerCallbackHandler(invocation, getLocator(), this); callbackHandlers.put(id, callbackHandler); } } callbackHandler.connect(); if(trace) { log.trace("ServerInvoker (" + this + ") adding server callback handler " + callbackHandler + " with id of " + id + "."); } return callbackHandler; }
InvokerLocator locator = svrInvoker.getLocator(); if (locatorUrl.equalsIgnoreCase(locator.getOriginalURI()))
InvokerLocator locator = getLocator(); StringBuffer buffer = new StringBuffer("jboss.remoting:service=invoker,transport=" + locator.getProtocol());
/** * Will get the data type for the marshaller factory so know which marshaller to get to marshal * the data. Will first check the locator uri for a 'datatype' parameter and take that value if * it exists. Otherwise, will use the default datatype for the client invoker, based on * transport. */ public String getDataType() { if(dataType == null) { dataType = getDataType(getLocator()); if(dataType == null) { dataType = getDefaultDataType(); } } return dataType; }
/** * create a ServerInvoker instance, using the specific Invoker locator data and an implementation of the * ServerInvocationHandler interface along with * * @param locator * @return * @throws Exception */ public static ServerInvoker createServerInvoker(InvokerLocator locator, Map configuration) throws Exception { ServerInvoker invoker = null; synchronized(serverLock) { invoker = (ServerInvoker) serverLocators.get(locator); if(invoker != null) { throw new InvalidConfigurationException("The invoker for locator (" + locator + ") is already " + "in use by another Connector. Either change the locator or " + "add new handlers to existing Connector."); } String protocol = locator.getProtocol(); invoker = loadServerInvoker(protocol, locator, configuration); serverLocators.put(locator, invoker); registeredLocators.add(invoker.getLocator()); } return invoker; }
ServerInvokerMetadata serverInvoker = new ServerInvokerMetadata(invokers[c].getLocator(), invokers[c].getSupportedSubsystems()); l.add(serverInvoker);
if(serverInvoker != null) locator = serverInvoker.getLocator(); if(!serverInvoker.isStarted())
locatorURI = invoker.getLocator().getLocatorURI(); marshallerLoaderConnector = createMarshallerLoader(invoker.getLocator());
callbackLocator = callbackServerConnector.getServerInvoker().getLocator(); addCallbackListener(callbackhandler, metadata, callbackLocator, callbackHandlerObject);
InvokerLocator svrlocator = svrinvoker.getLocator(); if(getLocator().equals(svrlocator))
"Must not be null and must be of type InvocationRequest."); Exception e = new Exception("Error processing invocation request on " + getLocator() + ". Either invocation was null or of wrong type.");