final Container actualEngine = TomcatUtil.engine(expectedService, expectedHost.getName()); if (actualEngine != expectedEngine) { throw new TomcatServiceException(
/** * Return the name of the Container with which this Deployer is associated. */ public String getName() { return (host.getName()); }
public ObjectName createObjectName(String domain, ObjectName parent) throws Exception { return new ObjectName( domain + ":type=Host,host=" + getName()); }
public ObjectName createObjectName(String domain, ObjectName parent) throws Exception { if( log.isDebugEnabled()) log.debug("Create ObjectName " + domain + " " + parent ); return new ObjectName( domain + ":type=Host,host=" + getName()); }
@Override public ObjectName createObjectName(String domain, ObjectName parent) throws Exception { if( log.isLoggable(Level.FINE)) log.log(Level.FINE, neutralizeForLog("Create ObjectName " + domain + " " + parent)); return new ObjectName( domain + ":type=Host,host=" + getName()); }
public ObjectName createObjectName(String domain, ObjectName parent) throws Exception { if( log.isDebugEnabled()) log.debug("Create ObjectName " + domain + " " + parent ); return new ObjectName( domain + ":type=Host,host=" + getName()); }
/** * Return a String representation of this component. */ public String toString() { StringBuffer sb = new StringBuffer(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Return a String representation of this component. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getParent() != null) { sb.append(getParent().toString()); sb.append("."); } sb.append("StandardHost["); sb.append(getName()); sb.append("]"); return (sb.toString()); }
/** * Set the application root for this Host. This can be an absolute * pathname, a relative pathname, or a URL. * * @param appBase The new application root */ @Override public void setAppBase(String appBase) { if (appBase.trim().equals("")) { log.warn(sm.getString("standardHost.problematicAppBase", getName())); } String oldAppBase = this.appBase; this.appBase = appBase; support.firePropertyChange("appBase", oldAppBase, this.appBase); this.appBaseFile = null; }
/** * Set the application root for this Host. This can be an absolute * pathname, a relative pathname, or a URL. * * @param appBase The new application root */ @Override public void setAppBase(String appBase) { if (appBase.trim().equals("")) { log.warn(sm.getString("standardHost.problematicAppBase", getName())); } String oldAppBase = this.appBase; this.appBase = appBase; support.firePropertyChange("appBase", oldAppBase, this.appBase); this.appBaseFile = null; }
public void init() { if( initialized ) return; initialized=true; if( oname==null ) { try { StandardContext ctx=(StandardContext)this.getContainer(); domain=ctx.getEngineName(); distributable = ctx.getDistributable(); StandardHost hst=(StandardHost)ctx.getParent(); String path = ctx.getEncodedPath(); if (path.equals("")) { path = "/"; } oname=new ObjectName(domain + ":type=Manager,path=" + path + ",host=" + hst.getName()); } catch (Exception e) { log.log(Level.SEVERE, LogFacade.ERROR_REGISTERING_EXCEPTION_SEVERE, e); } } if (log.isLoggable(Level.FINE)) { log.log(Level.FINE, "Registering " + oname ); } }
public void init() { if( initialized ) return; initialized=true; if( oname==null ) { try { StandardContext ctx=(StandardContext)this.getContainer(); domain=ctx.getEngineName(); distributable = ctx.getDistributable(); StandardHost hst=(StandardHost)ctx.getParent(); String path = ctx.getPath(); if (path.equals("")) { path = "/"; } oname=new ObjectName(domain + ":type=Manager,path=" + path + ",host=" + hst.getName()); Registry.getRegistry(null, null).registerComponent(this, oname, null ); } catch (Exception e) { log.error("Error registering ",e); } } // Initialize random number generation getRandomBytes(new byte[16]); if(log.isDebugEnabled()) log.debug("Registering " + oname ); }