void profileSet(HostsServiceImpl service, ProfileService profile) { if (log.isTraceEnabled()) { log.trace("Set profile {} for {}.", profile, service); } else { log.info("Set profile {} for hostname service.", profile.getProfileName()); } }
void profileSet(FirewallServiceImpl service, ProfileService profile) { if (log.isDebugEnabled()) { log.debug(PROFILE_SET, profile, service); } else { log.info(PROFILE_SET2, profile.getProfileName()); } }
@Override public String toString() { ToStringBuilder builder; builder = new ToStringBuilder(this).append(NAME, getName()); if (profile != null) { builder.append(PROFILE, profile.getProfileName()); } return builder.toString(); } }
/** * Compares the service script name to the specified service information. * * @param info * the {@link ServiceScriptInfo}. * * @param profile * the service {@link ProfileService}. * * @param service * the service. * * @return {@code true} if the service script that is specified by the * service script information is the correct one for the service. */ protected boolean isServiceScriptEquals(ServiceScriptInfo info, ProfileService profile, Object service) { return info.getProfileName().equals(profile.getProfileName()) && info.getServiceName().equals(service); }
ServiceException errorConfigureCompiler(Exception e, ProfileService profile) { return logException( new ServiceException(_.error_configure_compiler, e).add( _.profile_name, profile), _.error_configure_compiler_message, profile.getProfileName()); } }
void profileSet(Service service, ProfileService profile) { if (isDebugEnabled()) { debug(profileSetDebug, profile, service); } else { info(profileSet, profile.getProfileName()); } }
void profileSet(HostnameServiceImpl service, ProfileService profile) { if (isDebugEnabled()) { debug(set_profile, profile, service); } else { info(set_profile_info, profile.getProfileName()); } }
void profileSet(AbstractService service, ProfileService profile) { if (isDebugEnabled()) { debug(profile_set_debug, profile, service); } else { info(profile_set_info, profile.getProfileName(), service.getName()); } }
ServiceException errorFindServiceScript(AbstractService service, ProfileService profile, String serviceName) { return logException( new ServiceException(find_service).add(service, service) .add(profile, profile).add(service_name, serviceName), find_service_message, profile.getProfileName(), serviceName); }
@Override public Service call() throws ServiceException { Script script = getScript(profile.getProfileName()); script.setProperty(PROFILE, profile.getEntry(getName())); script.setProperty(SERVICE, this); script.setProperty(NAME, getName()); script.setProperty(THREADS, getThreads()); injectScript(script); script.run(); return this; }