public void setDirectory(String directory){ if(directory == null){ remove(DIRECTORY); } else if (directory.isEmpty()){ throw new IllegalArgumentException("The parsed directory MUST NOT be empty!"); } else { setProperty(DIRECTORY, directory); } } public ManagedIndexState getState(){
public void setDirectory(String directory){ if(directory == null){ remove(DIRECTORY); } else if (directory.isEmpty()){ throw new IllegalArgumentException("The parsed directory MUST NOT be empty!"); } else { setProperty(DIRECTORY, directory); } } public ManagedIndexState getState(){
public void setArchive(String archive){ if(archive == null){ remove(ARCHIVE); } else if (archive.isEmpty()){ throw new IllegalArgumentException("The parsed archive MUST NOT be empty!"); } else { setProperty(ARCHIVE, archive); } } public String getIndexName(){
public void setArchive(String archive){ if(archive == null){ remove(ARCHIVE); } else if (archive.isEmpty()){ throw new IllegalArgumentException("The parsed archive MUST NOT be empty!"); } else { setProperty(ARCHIVE, archive); } } public String getIndexName(){
public void setState(ManagedIndexState state){ if(state == null){ throw new IllegalArgumentException("The parsed ManagedIndexState MUST NOT be NULL!"); } setProperty(STATE, state.name()); if(state != ManagedIndexState.ERROR){ remove(STACK_TRACE); } } /**
public void setState(ManagedIndexState state){ if(state == null){ throw new IllegalArgumentException("The parsed ManagedIndexState MUST NOT be NULL!"); } setProperty(STATE, state.name()); if(state != ManagedIndexState.ERROR){ remove(STACK_TRACE); } } /**