@Override protected void applyUpdate(ServerGroupElement element) throws UpdateFailedException { if (! element.addJvm(name)) { throw new UpdateFailedException("Server group already has a jvm configured"); } }
/** {@inheritDoc} */ @Override protected void applyUpdate(final HostModel element) throws UpdateFailedException { if (!element.removeServer(serverName)) { throw new UpdateFailedException("Server " + serverName + " was not configured"); } }
/** {@inheritDoc} */ @Override protected void applyUpdate(final ServerModel element) throws UpdateFailedException { if (!element.addManagementElement(interfaceName, port)) { throw new UpdateFailedException("Management socket already configured"); } }
/** {@inheritDoc} */ @Override protected void applyUpdate(DomainModel element) throws UpdateFailedException { if(element.removeServerGroup(serverGroupName)) { throw new UpdateFailedException(String.format("server-group (%s) does not exist.", serverGroupName)); } }
/** {@inheritDoc} */ @Override protected void applyUpdate(ServerModel element) throws UpdateFailedException { if(! element.removePath(name)) { throw new UpdateFailedException(String.format("path (%s) does not exist.", name)); } }
/** {@inheritDoc} */ protected void applyUpdate(ServerModel element) throws UpdateFailedException { if(element.removeInterface(interfaceName)) { throw new UpdateFailedException(String.format("network interface (%s) not found", interfaceName)); } }
@Override protected void applyUpdate(final DomainModel element) throws UpdateFailedException { if (! element.addProfile(profileName)) { throw new UpdateFailedException("Profile '" + profileName + "' is already configured"); } }
/** {@inheritDoc} */ @Override protected void applyUpdate(DomainModel element) throws UpdateFailedException { if (! element.addServerGroup(name, profile)) { throw new UpdateFailedException("Duplicate server group " + name); } }
@Override protected void applyUpdate(final DomainModel element) throws UpdateFailedException { DeploymentUnitElement due = new DeploymentUnitElement(uniqueName, runtimeName, hash, start); if (! element.addDeployment(due)) { throw new UpdateFailedException("Deployment '" + uniqueName + "' is already configured"); } }
/** {@inheritDoc} */ @Override protected void applyUpdate(final ServerModel element) throws UpdateFailedException { ManagementElement me = element.getManagementElement(); if (me == null) { throw new UpdateFailedException("No management socket configured"); } me.setMaxThreads(maxThreads); }
@Override protected void applyUpdate(ServerGroupElement element) throws UpdateFailedException { if (element.getDeployment(uniqueName) == null) { throw new UpdateFailedException("Deployment " + uniqueName + " already removed"); } element.removeDeployment(uniqueName); }
/** {@inheritDoc} */ protected void applyUpdate(ServerModel element) throws UpdateFailedException { final DeploymentRepositoryElement repository = element.getDeploymentRepository(name); if(repository == null) { throw new UpdateFailedException("non existent deployment repository " + name); } repository.setEnabled(true); }
@Override protected void applyUpdate(final DomainModel element) throws UpdateFailedException { final ServerGroupElement serverGroup = element.getServerGroup(serverGroupName); if (serverGroup == null) { throw new UpdateFailedException("Server group " + serverGroupName + " does not exist"); } serverGroupUpdate.applyUpdate(serverGroup); }
@Override protected void applyUpdate(ServerElement element) throws UpdateFailedException { JvmElement jvm = element.getJvm(); if (jvm == null) { throw new UpdateFailedException("Server group " + element.getName() + " has no JVM configured"); } jvmUpdate.applyUpdate(jvm); }
@Override protected void applyUpdate(ServerGroupElement element) throws UpdateFailedException { JvmElement jvm = element.getJvm(); if (jvm == null) { throw new UpdateFailedException("Server group " + element.getName() + " has no JVM configured"); } jvmUpdate.applyUpdate(jvm); }
/** {@inheritDoc} */ protected void applyUpdate(ServerModel element) throws UpdateFailedException { final PathElement pathElement = element.addPath(update.getName()); if(pathElement == null) { throw new UpdateFailedException("duplicate path definition " + update.getName()); } update.applyUpdate(pathElement); }
/** {@inheritDoc} */ @Override protected void applyUpdate(ServerElement element) throws UpdateFailedException { final PathElement path = element.addPath(update.getName()); if(path == null) { throw new UpdateFailedException("duplicate path " + update.getName()); } update.applyUpdate(path); }
/** {@inheritDoc} */ @Override protected void applyUpdate(HostModel element) throws UpdateFailedException { final PathElement path = element.addPath(update.getName()); if(path == null) { throw new UpdateFailedException("duplicate path " + update.getName()); } update.applyUpdate(path); }
/** {@inheritDoc} */ @Override protected void applyUpdate(DomainModel element) throws UpdateFailedException { final InterfaceElement networkInterface = element.addInterface(delegate.getName()); if(networkInterface == null) { throw new UpdateFailedException("duplicate interface binding " + delegate.getName()); } delegate.applyUpdate(networkInterface); }
/** {@inheritDoc} */ @Override protected void applyUpdate(DomainModel element) throws UpdateFailedException { final SocketBindingGroupElement bindingGroup = element.addSocketBindingGroup(update.getName()); if(bindingGroup == null) { throw new UpdateFailedException("duplicate binding-group " + update.getName()); } update.applyUpdate(bindingGroup); }