public Response putInService( String repoId, String repoType ) throws IOException { RepositoryStatusResource status = new RepositoryStatusResource(); status.setId( repoId ); status.setRepoType( repoType ); status.setLocalStatus( LocalStatus.IN_SERVICE.name() ); return changeStatus( status ); }
public static Response putOutOfService( String repoId, String repoType ) throws IOException { RepositoryStatusResource status = new RepositoryStatusResource(); status.setId( repoId ); status.setRepoType( repoType ); status.setLocalStatus( LocalStatus.OUT_OF_SERVICE.name() ); return changeStatus( status ); }
public Response putOutOfService(String repoId, String repoType) throws IOException { RepositoryStatusResource status = new RepositoryStatusResource(); status.setId(repoId); status.setRepoType(repoType); status.setLocalStatus(LocalStatus.OUT_OF_SERVICE.name()); return changeStatus(status); }
public Response putInService(String repoId, String repoType) throws IOException { RepositoryStatusResource status = new RepositoryStatusResource(); status.setId(repoId); status.setRepoType(repoType); status.setLocalStatus(LocalStatus.IN_SERVICE.name()); return changeStatus(status); }
public Response putOutOfService( String repoId, String repoType ) throws IOException { RepositoryStatusResource status = new RepositoryStatusResource(); status.setId( repoId ); status.setRepoType( repoType ); status.setLocalStatus( LocalStatus.OUT_OF_SERVICE.name() ); return changeStatus( status ); }
public static Response putInService( String repoId, String repoType ) throws IOException { RepositoryStatusResource status = new RepositoryStatusResource(); status.setId( repoId ); status.setRepoType( repoType ); status.setLocalStatus( LocalStatus.IN_SERVICE.name() ); return changeStatus( status ); }
/** * Change block out of service state.<BR> * this method only return after all Tasks and Asynchronous events to finish */ public void setOutOfServiceProxy(final String repoId, final boolean outOfService) throws Exception { RepositoryStatusResource status = new RepositoryStatusResource(); status.setId(repoId); status.setRepoType("proxy"); if (outOfService) { status.setLocalStatus(LocalStatus.OUT_OF_SERVICE.name()); } else { status.setLocalStatus(LocalStatus.IN_SERVICE.name()); } Response response = changeStatus(status); try { assertThat("Could not set proxy out of service status (Status: " + response.getStatus() + ": " + repoId + "\n" + response.getEntity().getText(), response, isSuccessful()); } finally { nexusRestClient.releaseResponse(response); } // wait for this action to be complete, since make no sense test if repo got out of service before oos was // really enforced taskNRC.waitForAllTasksToStop(); eventNRC.waitForCalmPeriod(); }
status.setId(repoId); status.setRepoType("proxy"); status.setLocalStatus(LocalStatus.IN_SERVICE.name()); if (block) { status.setRemoteStatus(RemoteStatus.AVAILABLE.name());
status.setId( repoId ); status.setRepoType( "proxy" ); status.setLocalStatus( LocalStatus.IN_SERVICE.name() ); if ( block )
appModel.setLocalStatus(LocalStatus.IN_SERVICE.name()); if (target != null) { appModel.setLocalStatus(target.getLocalStatus());
appModel.setLocalStatus( LocalStatus.IN_SERVICE.name() ); if ( target != null )