railo.runtime.type.scope
Class ClusterWrap
java.lang.Object
railo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.type.scope.ScopeSupport
railo.runtime.type.scope.ClusterWrap
- All Implemented Interfaces:
- Serializable, Cloneable, Map, Dumpable, Castable, Collection, ForEachIteratorable, Iteratorable, Objects, Cluster, Scope, Sizeable, Struct
public final class ClusterWrap
- extends ScopeSupport
- implements Cluster, Sizeable
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from interface railo.runtime.type.scope.Scope |
SCOPE_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_COUNT, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VAR, SCOPE_VARIABLES |
Method Summary |
void |
broadcast()
broadcast data on stack |
Collection |
duplicate(boolean deepCopy)
|
Object |
get(Collection.Key key)
return a value from the collection |
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null |
int |
getType()
|
String |
getTypeAsString()
|
void |
init(ConfigServer configServer)
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection |
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
void |
setEntry(ClusterEntry newEntry)
|
long |
sizeOf()
return the size of the object |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Methods inherited from class railo.runtime.type.StructImpl |
clear, containsKey, containsValue, copy, entryIterator, equals, g, g, hashCode, keyIterator, keys, keysAsStringIterator, size, valueIterator, values |
Methods inherited from class railo.runtime.type.util.StructSupport |
call, callWithNamedValues, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, get, get, get, get, get, getIterator, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, toString |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface railo.runtime.op.Castable |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo |
ClusterWrap
public ClusterWrap(ConfigServer cs,
ClusterRemote core)
init
public void init(ConfigServer configServer)
- Specified by:
init
in interface Cluster
get
public Object get(Collection.Key key)
throws PageException
- Description copied from interface:
Collection
- return a value from the collection
- Specified by:
get
in interface Collection
- Overrides:
get
in class StructImpl
- Parameters:
key
- key of the value to get must be lower case
- Returns:
- value on key position
- Throws:
PageException
get
public Object get(Collection.Key key,
Object defaultValue)
- Description copied from interface:
Collection
- return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
- Specified by:
get
in interface Collection
- Overrides:
get
in class StructImpl
- Parameters:
key
- key of the value to get
- Returns:
- value on key position or null
remove
public Object remove(Collection.Key key)
throws PageException
- Description copied from interface:
Collection
- removes value from collection and return it when it exists, otherwise throws a exception
- Specified by:
remove
in interface Collection
- Overrides:
remove
in class StructImpl
- Parameters:
key
- key of the collection
- Returns:
- removed Object
- Throws:
PageException
removeEL
public Object removeEL(Collection.Key key)
- Description copied from interface:
Collection
- removes value from collection and return it when it exists, otherwise returns null
- Specified by:
removeEL
in interface Collection
- Overrides:
removeEL
in class StructImpl
- Parameters:
key
- key of the collection
- Returns:
- removed Object
setEL
public Object setEL(Collection.Key key,
Object value)
- Description copied from interface:
Collection
- sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
- Specified by:
setEL
in interface Collection
- Overrides:
setEL
in class StructImpl
- Parameters:
key
- key of the value to getvalue
- value to set
- Returns:
- value on key position or null
setEntry
public void setEntry(ClusterEntry newEntry)
- Specified by:
setEntry
in interface Cluster
set
public Object set(Collection.Key key,
Object value)
throws PageException
- Description copied from interface:
Collection
- sets a value to the collection
- Specified by:
set
in interface Collection
- Overrides:
set
in class StructImpl
- Parameters:
key
- key of the new valuevalue
- value to set
- Returns:
- value setted
- Throws:
PageException
toDumpData
public DumpData toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
- Description copied from interface:
Dumpable
- method to print out information to a object as HTML
- Specified by:
toDumpData
in interface Dumpable
- Overrides:
toDumpData
in class ScopeSupport
- Returns:
- HTML print out
getType
public int getType()
- Specified by:
getType
in interface Scope
- Overrides:
getType
in class ScopeSupport
- Returns:
- return the scope type (SCOPE_SERVER, SCOPE_SESSION usw.)
getTypeAsString
public String getTypeAsString()
- Specified by:
getTypeAsString
in interface Scope
- Overrides:
getTypeAsString
in class ScopeSupport
- Returns:
- return the scope type as a String (server,session usw.)
duplicate
public Collection duplicate(boolean deepCopy)
- Specified by:
duplicate
in interface Collection
- Overrides:
duplicate
in class StructImpl
broadcast
public void broadcast()
- Description copied from interface:
Cluster
- broadcast data on stack
- Specified by:
broadcast
in interface Cluster
sizeOf
public long sizeOf()
- Description copied from interface:
Sizeable
- return the size of the object
- Specified by:
sizeOf
in interface Sizeable
- Overrides:
sizeOf
in class ScopeSupport
- Returns:
- size of the object
Copyright © 2012 Railo