-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEIIDDES-1459: parent of teiid server should be provided
* TeiidServer * In order for the unit tests to work correctly, the parent of the teiid server should be provided to the constructor rather than the latter trying to initialise it itself. * If the parent server is null then an illegal argument exception is thrown like the other parameters * The hashcode() and equals() methods have been modified to be the eclipse versions * Setters have been removed for the fields involved in the equals() and hashcode() methods since these fields should be immutable
- Loading branch information
Paul Richardson
committed
Sep 5, 2012
1 parent
03621b3
commit d202626
Showing
8 changed files
with
141 additions
and
114 deletions.
There are no files selected for viewing
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
46 changes: 46 additions & 0 deletions
46
...s/org.teiid.designer.dqp/src/org/teiid/designer/runtime/OrphanedTeiidServerException.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,46 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source. | ||
* | ||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. | ||
* | ||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. | ||
*/ | ||
package org.teiid.designer.runtime; | ||
|
||
import org.eclipse.wst.server.core.IServer; | ||
import org.eclipse.wst.server.core.ServerCore; | ||
|
||
/** | ||
* Exception thrown if a {@link TeiidServer} is constructed but a related | ||
* {@link IServer} cannot be found in the {@link ServerCore#getServers()} | ||
* collection. | ||
* | ||
* @since 8.0 | ||
*/ | ||
public class OrphanedTeiidServerException extends Exception { | ||
|
||
/** | ||
* | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
private String teiidServerUrl; | ||
|
||
/** | ||
* Create a new instance | ||
* | ||
* @param teiidAdminInfo | ||
*/ | ||
public OrphanedTeiidServerException(TeiidAdminInfo teiidAdminInfo) { | ||
this.teiidServerUrl = teiidAdminInfo.getUrl(); | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see java.lang.Throwable#getMessage() | ||
*/ | ||
@Override | ||
public String getMessage() { | ||
return DqpPlugin.Util.getString(getClass().getSimpleName() + ".message", teiidServerUrl); //$NON-NLS-1$ | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.