org.rhq.core.server
Class ExternalizableStrategy
java.lang.Object
org.rhq.core.server.ExternalizableStrategy
public class ExternalizableStrategy
- extends Object
This uses a ThreadLocal to bind an externalization strategy based on the invoking subsystem. In other
words, when we know we're serializing for Server-Agent communication then set to AGENT, when we know we're
serializing for RemoteClient-Server communication set to REMOTEAPI. By keeping this info on the thread
we avoid having to tag all of the relevant objects that will be serialized.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalizableStrategy
public ExternalizableStrategy()
getStrategy
public static ExternalizableStrategy.Subsystem getStrategy()
setStrategy
public static void setStrategy(ExternalizableStrategy.Subsystem newStrategy)
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.