@Override public void addLifecycleListener(LifecycleListener listener) { lifecycle.addLifecycleListener(listener); }
@Override public LifecycleListener[] findLifecycleListeners() { return lifecycle.findLifecycleListeners(); }
@Override public void removeLifecycleListener(LifecycleListener listener) { lifecycle.removeLifecycleListener(listener); }
protected Object toObject(ClassLoader classLoader, byte[] value) throws IOException, ClassNotFoundException { if (value == null) { return null; } CustomObjectInputStream in = new CustomObjectInputStream(new ByteArrayInputStream(value), classLoader); return in.readObject(); } }
@Override public void stop() throws LifecycleException { try { shutdownRedisson(); } catch (Exception e) { throw new LifecycleException(e); } lifecycle.fireLifecycleEvent(STOP_EVENT, null); }
@RequestMapping("/deRegService") public String deRegService(HttpServletRequest request) throws Exception { IpAddress ipAddress = getIPAddress(request); String namespaceId = WebUtils.optional(request, Constants.REQUEST_PARAM_NAMESPACE_ID, UtilsAndCommons.getDefaultNamespaceId()); String dom = WebUtils.required(request, Constants.REQUEST_PARAM_SERVICE_NAME); VirtualClusterDomain virtualClusterDomain = (VirtualClusterDomain) domainsManager.getDomain(namespaceId, dom); if (virtualClusterDomain == null) { return "ok"; } ParameterMap<String, String[]> parameterMap = new ParameterMap<>(); parameterMap.put("dom", Arrays.asList(dom).toArray(new String[1])); parameterMap.put("ipList", Arrays.asList(JSON.toJSONString(Arrays.asList(ipAddress))).toArray(new String[1])); parameterMap.put("json", Arrays.asList("true").toArray(new String[1])); parameterMap.put("token", Arrays.asList(virtualClusterDomain.getToken()).toArray(new String[1])); return remvIP4Dom(OverrideParameterRequestWrapper.buildRequest(request, parameterMap)); }
@Override public String[] getValueNames() { if (readMode == ReadMode.REDIS) { if (!isValidInternal()) { throw new IllegalStateException (sm.getString("standardSession.getAttributeNames.ise")); } Set<String> keys = map.readAllKeySet(); return keys.toArray(new String[keys.size()]); } return super.getValueNames(); }
protected Object toObject(ClassLoader classLoader, byte[] value) throws IOException, ClassNotFoundException { if (value == null) { return null; } CustomObjectInputStream in = new CustomObjectInputStream(new ByteArrayInputStream(value), classLoader); return in.readObject(); } }
/** * Get the lifecycle listeners associated with this lifecycle. If this Lifecycle has no listeners * registered, a zero-length array is returned. */ @Override public LifecycleListener[] findLifecycleListeners() { return this.lifecycle.findLifecycleListeners(); }
/** * Add a lifecycle event listener to this component. * * @param listener The listener to add */ @Override public void addLifecycleListener(LifecycleListener listener) { this.lifecycle.addLifecycleListener(listener); }
/** * Remove a lifecycle event listener from this component. * * @param listener The listener to remove */ @Override public void removeLifecycleListener(LifecycleListener listener) { this.lifecycle.removeLifecycleListener(listener); }
this.lifecycle.fireLifecycleEvent(STOP_EVENT, null);
@Override public Enumeration<String> getAttributeNames() { if (readMode == ReadMode.REDIS) { if (!isValidInternal()) { throw new IllegalStateException (sm.getString("standardSession.getAttributeNames.ise")); } return Collections.enumeration(map.readAllKeySet()); } return super.getAttributeNames(); }
protected Object toObject(ClassLoader classLoader, byte[] value) throws IOException, ClassNotFoundException { if (value == null) { return null; } CustomObjectInputStream in = new CustomObjectInputStream(new ByteArrayInputStream(value), classLoader); return in.readObject(); } }
/** * Get the lifecycle listeners associated with this lifecycle. If this Lifecycle has no listeners * registered, a zero-length array is returned. */ @Override public LifecycleListener[] findLifecycleListeners() { return this.lifecycle.findLifecycleListeners(); }
/** * Add a lifecycle event listener to this component. * * @param listener The listener to add */ @Override public void addLifecycleListener(LifecycleListener listener) { this.lifecycle.addLifecycleListener(listener); }
/** * Remove a lifecycle event listener from this component. * * @param listener The listener to remove */ @Override public void removeLifecycleListener(LifecycleListener listener) { this.lifecycle.removeLifecycleListener(listener); } }
return; this.lifecycle.fireLifecycleEvent(START_EVENT, null); try { init();
@Override public Object getAttribute(String name) { if (readMode == ReadMode.REDIS) { if (!isValidInternal()) { throw new IllegalStateException(sm.getString("standardSession.getAttribute.ise")); } if (name == null) { return null; } return map.get(name); } return super.getAttribute(name); }
protected Object toObject(ClassLoader classLoader, byte[] value) throws IOException, ClassNotFoundException { if (value == null) { return null; } CustomObjectInputStream in = new CustomObjectInputStream(new ByteArrayInputStream(value), classLoader); return in.readObject(); } }