This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notification about autoBlock changed. Now mails are sent out for ever…
…y retry, when blocked for more than 60sec http://scm.sonatype.org/revinfo.svn?revision=6316&name=Nexus git-svn-id: file:///opt/svn/repositories/sonatype.org/nexus/branches/nexus-1.6.0@6317 2aa8b3fc-8ebb-4439-a84f-95066eaea8ab
- Loading branch information
velo
committed
Apr 12, 2010
1 parent
f2e7dd0
commit 0cb5641
Showing
6 changed files
with
143 additions
and
54 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
nexus-api/src/main/java/org/sonatype/nexus/proxy/events/RepositoryEventProxyMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** | ||
* Sonatype Nexus (TM) Open Source Version. | ||
* Copyright (c) 2008 Sonatype, Inc. All rights reserved. | ||
* Includes the third-party code listed at http://nexus.sonatype.org/dev/attributions.html | ||
* This program is licensed to you under Version 3 only of the GNU General Public License as published by the Free Software Foundation. | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU General Public License Version 3 for more details. | ||
* You should have received a copy of the GNU General Public License Version 3 along with this program. | ||
* If not, see http://www.gnu.org/licenses/. | ||
* Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. | ||
* "Sonatype" and "Sonatype Nexus" are trademarks of Sonatype, Inc. | ||
*/ | ||
package org.sonatype.nexus.proxy.events; | ||
|
||
import org.sonatype.nexus.proxy.repository.ProxyMode; | ||
import org.sonatype.nexus.proxy.repository.ProxyRepository; | ||
|
||
/** | ||
* The superclass event of ProxyReposiory ProxyMode related events. | ||
* | ||
* @author cstamas | ||
*/ | ||
public abstract class RepositoryEventProxyMode | ||
extends RepositoryEvent | ||
{ | ||
private final ProxyMode oldProxyMode; | ||
|
||
private final ProxyMode newProxyMode; | ||
|
||
private final Throwable cause; | ||
|
||
public RepositoryEventProxyMode( final ProxyRepository repository, final ProxyMode oldProxyMode, | ||
final ProxyMode newProxyMode, final Throwable cause ) | ||
{ | ||
super( repository ); | ||
|
||
this.oldProxyMode = oldProxyMode; | ||
|
||
this.newProxyMode = newProxyMode; | ||
|
||
this.cause = cause; | ||
} | ||
|
||
public ProxyMode getOldProxyMode() | ||
{ | ||
return oldProxyMode; | ||
} | ||
|
||
public ProxyMode getNewProxyMode() | ||
{ | ||
return newProxyMode; | ||
} | ||
|
||
public Throwable getCause() | ||
{ | ||
return cause; | ||
} | ||
|
||
public ProxyRepository getRepository() | ||
{ | ||
return (ProxyRepository) super.getRepository(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
nexus-api/src/main/java/org/sonatype/nexus/proxy/events/RepositoryEventProxyModeSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Sonatype Nexus (TM) Open Source Version. | ||
* Copyright (c) 2008 Sonatype, Inc. All rights reserved. | ||
* Includes the third-party code listed at http://nexus.sonatype.org/dev/attributions.html | ||
* This program is licensed to you under Version 3 only of the GNU General Public License as published by the Free Software Foundation. | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU General Public License Version 3 for more details. | ||
* You should have received a copy of the GNU General Public License Version 3 along with this program. | ||
* If not, see http://www.gnu.org/licenses/. | ||
* Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. | ||
* "Sonatype" and "Sonatype Nexus" are trademarks of Sonatype, Inc. | ||
*/ | ||
package org.sonatype.nexus.proxy.events; | ||
|
||
import org.sonatype.nexus.proxy.repository.ProxyMode; | ||
import org.sonatype.nexus.proxy.repository.ProxyRepository; | ||
|
||
/** | ||
* The event fired when a repository's proxy mode is set. This event is fired on <b>every</b> setting of ProxyMode on a | ||
* ProxyRepository, unlike the RepositoryEventProxyModeChanged event. | ||
* | ||
* @author cstamas | ||
*/ | ||
public class RepositoryEventProxyModeSet | ||
extends RepositoryEventProxyMode | ||
{ | ||
public RepositoryEventProxyModeSet( final ProxyRepository repository, final ProxyMode oldProxyMode, | ||
final ProxyMode newProxyMode, final Throwable cause ) | ||
{ | ||
super( repository, oldProxyMode, newProxyMode, cause ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters