mirror of
https://github.com/apache/jclouds.git
synced 2025-02-17 15:35:44 +00:00
ObjectFields is only used in tests
This commit is contained in:
parent
5d8dfea9bd
commit
4aa9bcb82e
@ -22,8 +22,8 @@ package org.jclouds.demo.tweetstore.integration;
|
|||||||
|
|
||||||
import static com.google.common.base.Predicates.instanceOf;
|
import static com.google.common.base.Predicates.instanceOf;
|
||||||
import static java.util.Arrays.asList;
|
import static java.util.Arrays.asList;
|
||||||
import static org.jclouds.demo.tweetstore.config.utils.ObjectFields.set;
|
import static org.jclouds.demo.tweetstore.integration.utils.ObjectFields.set;
|
||||||
import static org.jclouds.demo.tweetstore.config.utils.ObjectFields.valueOf;
|
import static org.jclouds.demo.tweetstore.integration.utils.ObjectFields.valueOf;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -107,6 +107,13 @@ class StaxSdkAppServer2 {
|
|||||||
serverThread.interrupt();
|
serverThread.interrupt();
|
||||||
StaxReflect.getStaxAppQueryTimer(server).cancel();
|
StaxReflect.getStaxAppQueryTimer(server).cancel();
|
||||||
KillerCallback requestMonitorAssassin = new KillerCallback(StaxReflect.getRequestMonitorTimerCallback(server));
|
KillerCallback requestMonitorAssassin = new KillerCallback(StaxReflect.getRequestMonitorTimerCallback(server));
|
||||||
|
/*
|
||||||
|
* Hoping for the best here in terms of visibility - we're setting a variable in a
|
||||||
|
* different thread which isn't guaranteed to see the change.
|
||||||
|
* But we can't set the callbackClient before serverThread starts (which would create
|
||||||
|
* a happens-before relationship) because the objects on which the callbackClient is
|
||||||
|
* set have not been created yet at that point.
|
||||||
|
*/
|
||||||
set("callbackClient", StaxReflect.getRequestMonitorTimer(server), requestMonitorAssassin);
|
set("callbackClient", StaxReflect.getRequestMonitorTimer(server), requestMonitorAssassin);
|
||||||
requestMonitorAssassin.setToKill();
|
requestMonitorAssassin.setToKill();
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*/
|
*/
|
||||||
package org.jclouds.demo.tweetstore.config.utils;
|
package org.jclouds.demo.tweetstore.integration.utils;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user