ScopeProvider.instance instead@Deprecated public class GCUBEScopeManagerImpl extends Object implements GCUBEScopeManager
GCUBEScopeManager.GCUBEScopeManager.IllegalScopeException| Modifier and Type | Field and Description |
|---|---|
protected GCUBELog |
logger
Deprecated.
Object logger.
|
protected String |
name
Deprecated.
The name of the manager.
|
protected Map<Thread,GCUBEScope> |
scopes
Deprecated.
Cache of scope information indexed by thread id.
|
CLASS_HEADER_NAME, DEFAULT, NAME_HEADER_NAME, SCOPE_HEADER_NAME, SCOPE_NS| Constructor and Description |
|---|
GCUBEScopeManagerImpl()
Deprecated.
Creates a new instance.
|
GCUBEScopeManagerImpl(GCUBELog logger)
Deprecated.
Creates a new instance with a given logger.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getName()
Deprecated.
Returns the name with which the manager should log events.
|
GCUBEScope |
getScope()
Deprecated.
Gets the scope for outgoing calls in the current thread.
|
void |
prepareCall(Remote remote,
String clazz,
String name,
GCUBEScope... scope)
Deprecated.
Sets the scope for an outgoing call to a target gCube service.
|
protected void |
setName(String name)
Deprecated.
Sets the name with which the manager should log events
|
void |
setScope(GCUBEScope scope)
Deprecated.
Sets the scope of outgoing calls in the current thread.
|
void |
setScope(Thread thread,
GCUBEScope... scope)
Deprecated.
Sets the scope of outgoing calls in a given thread.
|
void |
setScope(Thread thread,
GCUBEScope scope)
Deprecated.
|
protected GCUBELog logger
protected Map<Thread,GCUBEScope> scopes
protected String name
public GCUBEScopeManagerImpl()
public GCUBEScopeManagerImpl(GCUBELog logger)
logger - the logger.protected String getName()
protected void setName(String name)
name - the namepublic void setScope(GCUBEScope scope)
setScope in interface GCUBEScopeManagerscope - the scope.public void setScope(Thread thread, GCUBEScope scope) throws GCUBEScopeManager.IllegalScopeException
public void setScope(Thread thread, GCUBEScope... scope)
setScope in interface GCUBEScopeManagerthread - the thread.scope - (optional) the scope. If omitted, it defaults to the scope of the current thread.public GCUBEScope getScope()
getScope in interface GCUBEScopeManagerpublic void prepareCall(Remote remote, String clazz, String name, GCUBEScope... scope)
prepareCall in interface GCUBEScopeManagerremote - the stub of the target port-type.clazz - the gCube class of the target service.name - the gCube name of the target service.Copyright © 2015. All Rights Reserved.