Java Doc for ManagerUtil.java in  » Net » Terracotta » com » tc » object » bytecode » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » Terracotta » com.tc.object.bytecode 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.tc.object.bytecode.ManagerUtil

ManagerUtil
public class ManagerUtil (Code)
A bunch of static methods that make calling Manager method much easier from instrumented classes


Field Summary
final public static  StringCLASS
    
final public static  StringTYPE
    


Method Summary
public static  voidaddClusterEventListener(ClusterEventListener cel)
    
public static  voidarraycopy(Object src, int srcPos, Object dest, int destPos, int length)
    
public static  voidbeginLock(String lockID, int type)
    
public static  voidbeginVolatile(TCObject tcObject, String fieldName, int type)
    
public static  voidbeginVolatileByOffset(Object pojo, long fieldOffset, int type)
    
public static  voidbyteOrBooleanArrayChanged(Object array, int index, byte value)
    
public static  voidcharArrayChanged(char[] array, int index, char value)
    
public static  voidcharArrayCopy(char[] src, int srcPos, char[] dest, int destPos, int length, TCObject tco)
    
public static  voidcheckWriteAccess(Object context)
    
public static  voidcommitLock(String lockID)
    
public static  voidcommitVolatile(TCObject tcObject, String fieldName)
    
public static  voidcommitVolatileByOffset(Object pojo, long fieldOffset)
    
public static  ObjectcreateOrReplaceRoot(String rootName, Object object)
     Create or replace root, typically used for replaceable roots.
public static  ObjectdeepCopy(Object pojo)
    
public static  booleandistributedMethodCall(Object receiver, String method, Object[] params)
    
public static  voiddistributedMethodCallCommit()
    
public static  voiddoubleArrayChanged(double[] array, int index, double value)
    
public static  voidenable()
     Called when initialization has proceeded enough that the Manager can be used.
public static  voidfloatArrayChanged(float[] array, int index, float value)
    
public static  Objectget(Object array, int index)
    
public static  StringgetClientID()
    
public static  TCLoggergetLogger(String loggerName)
    
public static  ManagergetManager()
    
public static  TCObjectgetObject(Object array)
    
public static  intgetSessionLockType(String appName)
    
public static  SessionMonitorMBeangetSessionMonitorMBean()
    
public static  TCPropertiesgetTCProperties()
    
public static  voidintArrayChanged(int[] array, int index, int value)
    
public static  booleanisCreationInProgress()
     Check whether a creation is in progress.
public static  booleanisDsoMonitorEntered(Object obj)
    
public static  booleanisDsoMonitored(Object obj)
    
public static  booleanisFieldPortableByOffset(Object pojo, long fieldOffset)
    
public static  booleanisHeldByCurrentThread(Object obj, int lockLevel)
    
public static  booleanisLocked(Object obj, int lockLevel)
    
public static  booleanisLogical(Object obj)
    
public static  booleanisManaged(Object obj)
    
public static  booleanisPhysicallyInstrumented(Class clazz)
    
public static  booleanisRoot(Field field)
    
public static  intlocalHeldCount(Object obj, int lockLevel)
    
public static  voidlogicalInvoke(Object object, String methodName, Object[] params)
    
public static  voidlogicalInvokeWithTransaction(Object object, Object lockObject, String methodName, Object[] params)
    
public static  voidlongArrayChanged(long[] array, int index, long value)
    
public static  TCObjectlookupExistingOrNull(Object pojo)
    
public static  ObjectlookupObject(ObjectID id)
    
public static  ObjectlookupObjectWithParentContext(ObjectID id, ObjectID parentContext)
     Look up object by ID, faulting into the JVM if necessary, This method also passes the parent Object context so that more intelligent prefetching is possible at the L2.
public static  TCObjectlookupOrCreate(Object obj)
    
public static  ObjectlookupOrCreateRoot(String name, Object object)
    
public static  ObjectlookupOrCreateRootNoDepth(String name, Object obj)
     Look up or create a new root object.
public static  ObjectlookupRoot(String name)
    
public static  voidmonitorEnter(Object obj, int type)
    
public static  voidmonitorExit(Object obj)
    
public static  voidobjectArrayChanged(Object[] array, int index, Object value)
    
public static  voidobjectNotify(Object obj)
    
public static  voidobjectNotifyAll(Object obj)
    
public static  voidobjectWait0(Object obj)
    
public static  voidobjectWait1(Object obj, long millis)
    
public static  voidobjectWait2(Object obj, long millis, int nanos)
    
public static  voidoptimisticBegin()
    
public static  voidoptimisticCommit()
    
public static  voidoptimisticRollback()
    
public static  booleanprunedDistributedMethodCall(Object receiver, String method, Object[] params)
    
public static  intqueueLength(Object obj)
    
public static  voidregister(Object pojo, TCObject obj)
     Register an array with its TCO.
public static  voidset(Object array, int index, Object value)
     This method is part of java.lang.reflect.Array and does the same as the set() method in the Sun JDK, the IBM version of the set method just adds a series of argument checks and then delegates to the native setImpl version.
public static  voidsetBoolean(Object array, int index, boolean z)
    
public static  voidsetByte(Object array, int index, byte b)
    
public static  voidsetChar(Object array, int index, char c)
    
public static  voidsetDouble(Object array, int index, double d)
    
public static  voidsetFloat(Object array, int index, float f)
    
public static  voidsetImpl(Object array, int index, Object value)
     This method is part of java.lang.reflect.Array and does the same as the set() method in the Sun JDK, the IBM version of the set method just adds a series of argument checks and then delegates to the native setImpl version.
public static  voidsetInt(Object array, int index, int i)
    
public static  voidsetLong(Object array, int index, long l)
    
public static  voidsetShort(Object array, int index, short s)
    
public static  TCObjectshareObjectIfNecessary(Object pojo)
    
public static  voidshortArrayChanged(short[] array, int index, short value)
    
public static  booleantryBeginLock(String lockID, int type)
    
public static  booleantryMonitorEnter(Object obj, long timeoutInNanos, int type)
    
public static  intwaitLength(Object obj)
    

Field Detail
CLASS
final public static String CLASS(Code)
This class name



TYPE
final public static String TYPE(Code)
This class type





Method Detail
addClusterEventListener
public static void addClusterEventListener(ClusterEventListener cel)(Code)
Add listener for cluster events
Parameters:
  cel - Listener



arraycopy
public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length)(Code)
Handle System.arraycopy() semantics with managed arrays
Parameters:
  src - Source array
Parameters:
  srcPos - Start index in source
Parameters:
  dest - Destination array
Parameters:
  destPos - Destination start index
Parameters:
  length - Number of items to copy
throws:
  NullPointerException - If src or dest is null



beginLock
public static void beginLock(String lockID, int type)(Code)
Begin lock
Parameters:
  lockID - Lock identifier
Parameters:
  type - Lock type



beginVolatile
public static void beginVolatile(TCObject tcObject, String fieldName, int type)(Code)
Begin volatile lock
Parameters:
  tcObject - TCObject to lock
Parameters:
  fieldName - Field name holding volatile object
Parameters:
  type - Lock type



beginVolatileByOffset
public static void beginVolatileByOffset(Object pojo, long fieldOffset, int type)(Code)
Begin volatile lock by field offset in the class
Parameters:
  pojo - Instance containing field
Parameters:
  fieldOffset - Field offset in pojo
Parameters:
  type - Lock level



byteOrBooleanArrayChanged
public static void byteOrBooleanArrayChanged(Object array, int index, byte value)(Code)
Indicate that byte or boolean in array changed
Parameters:
  array - The array
Parameters:
  index - The index into array
Parameters:
  value - The new value



charArrayChanged
public static void charArrayChanged(char[] array, int index, char value)(Code)
Indicate that char in array changed
Parameters:
  array - The array
Parameters:
  index - The index into array
Parameters:
  value - The new value



charArrayCopy
public static void charArrayCopy(char[] src, int srcPos, char[] dest, int destPos, int length, TCObject tco)(Code)
Copy char[]
Parameters:
  src - Source array
Parameters:
  srcPos - Start in src
Parameters:
  dest - Destination array
Parameters:
  destPos - Start in dest
Parameters:
  length - Number of items to copy
Parameters:
  tcDest - TCObject for dest array



checkWriteAccess
public static void checkWriteAccess(Object context)(Code)
Check whether current context has write access
Parameters:
  context - Context object
throws:
  com.tc.object.util.ReadOnlyException - If in read-only transaction



commitLock
public static void commitLock(String lockID)(Code)
Commit lock
Parameters:
  lockID - Lock name



commitVolatile
public static void commitVolatile(TCObject tcObject, String fieldName)(Code)
Commit volatile lock
Parameters:
  tcObject - Volatile object TCObject
Parameters:
  fieldName - Field holding the volatile object



commitVolatileByOffset
public static void commitVolatileByOffset(Object pojo, long fieldOffset)(Code)
Commit volatile lock by field offset in the class
Parameters:
  pojo - Instance containing field
Parameters:
  fieldOffset - Field offset in pojo



createOrReplaceRoot
public static Object createOrReplaceRoot(String rootName, Object object)(Code)
Create or replace root, typically used for replaceable roots.
Parameters:
  rootName - Root name
Parameters:
  object - Root object Root object used



deepCopy
public static Object deepCopy(Object pojo)(Code)
Deep copy the source object graph
Parameters:
  source - Source object The copy



distributedMethodCall
public static boolean distributedMethodCall(Object receiver, String method, Object[] params)(Code)
Perform distributed method call on all nodes
Parameters:
  receiver - The receiver object
Parameters:
  method - The method to call
Parameters:
  params - The parameter values



distributedMethodCallCommit
public static void distributedMethodCallCommit()(Code)
Commit DMI call



doubleArrayChanged
public static void doubleArrayChanged(double[] array, int index, double value)(Code)
Indicate that double in array changed
Parameters:
  array - The array
Parameters:
  index - The index into array
Parameters:
  value - The new value



enable
public static void enable()(Code)
Called when initialization has proceeded enough that the Manager can be used.



floatArrayChanged
public static void floatArrayChanged(float[] array, int index, float value)(Code)
Indicate that float in array changed
Parameters:
  array - The array
Parameters:
  index - The index into array
Parameters:
  value - The new value



get
public static Object get(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
For java.lang.reflect.Array.get()
Parameters:
  array - The array
Parameters:
  index - Index into the array Item in array at index, boxed to Object if primitive array
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is not an array type



getClientID
public static String getClientID()(Code)
Get JVM Client identifier Client identifier



getLogger
public static TCLogger getLogger(String loggerName)(Code)
Get the named logger
Parameters:
  name - Logger name The logger



getManager
public static Manager getManager()(Code)



getObject
public static TCObject getObject(Object array)(Code)
Get the TCO for an array
Parameters:
  array - The array instance The TCObject



getSessionLockType
public static int getSessionLockType(String appName)(Code)
Get session lock type for the specified app (usually WRITE or SYNCHRONOUS_WRITE)
Parameters:
  appName - Web app name Lock type



getSessionMonitorMBean
public static SessionMonitorMBean getSessionMonitorMBean()(Code)
Session monitor MBean



getTCProperties
public static TCProperties getTCProperties()(Code)
TCProperties



intArrayChanged
public static void intArrayChanged(int[] array, int index, int value)(Code)
Indicate that int in array changed
Parameters:
  array - The array
Parameters:
  index - The index into array
Parameters:
  value - The new value



isCreationInProgress
public static boolean isCreationInProgress()(Code)
Check whether a creation is in progress. This flag is set on a per-thread basis while hydrating an object from DNA. True if in progress



isDsoMonitorEntered
public static boolean isDsoMonitorEntered(Object obj)(Code)
Check whether dso MonitorExist is required True if required



isDsoMonitored
public static boolean isDsoMonitored(Object obj)(Code)
Check whether an object is shared
Parameters:
  obj - Instance True if shared



isFieldPortableByOffset
public static boolean isFieldPortableByOffset(Object pojo, long fieldOffset)(Code)
Returns true if the field represented by the offset is a portable field, i.e., not static and not dso transient
Parameters:
  pojo - Object
Parameters:
  fieldOffset - The index true if the field is portable and false otherwise



isHeldByCurrentThread
public static boolean isHeldByCurrentThread(Object obj, int lockLevel)(Code)
Check whether this lock is held by the current thread
Parameters:
  obj - The lock
Parameters:
  lockLevel - The lock level True if held by current thread
throws:
  NullPointerException - If obj is null



isLocked
public static boolean isLocked(Object obj, int lockLevel)(Code)
Check whether an object is locked at this lockLevel
Parameters:
  obj - Lock
Parameters:
  lockLevel - Lock level True if locked at this level
throws:
  NullPointerException - If obj is null



isLogical
public static boolean isLogical(Object obj)(Code)
Check whether object is logically instrumented
Parameters:
  obj - Instance True if logically instrumented



isManaged
public static boolean isManaged(Object obj)(Code)
Check whether an object is managed
Parameters:
  obj - Instance True if managed



isPhysicallyInstrumented
public static boolean isPhysicallyInstrumented(Class clazz)(Code)
Determine whether this class is physically instrumented
Parameters:
  clazz - Class True if physically instrumented



isRoot
public static boolean isRoot(Field field)(Code)
Check whether field is a root
Parameters:
  field - Field True if root



localHeldCount
public static int localHeldCount(Object obj, int lockLevel)(Code)
Get number of locks held locally on this object
Parameters:
  obj - The lock object
Parameters:
  lockLevel - The lock level Lock count
throws:
  NullPointerException - If obj is null



logicalInvoke
public static void logicalInvoke(Object object, String methodName, Object[] params)(Code)
Perform invoke on logical managed object
Parameters:
  object - The object
Parameters:
  methodName - The method to call
Parameters:
  params - The parameters to the method



logicalInvokeWithTransaction
public static void logicalInvokeWithTransaction(Object object, Object lockObject, String methodName, Object[] params)(Code)
Perform invoke on logical managed object in lock
Parameters:
  object - The object
Parameters:
  lockObject - The lock object
Parameters:
  methodName - The method to call
Parameters:
  params - The parameters to the method



longArrayChanged
public static void longArrayChanged(long[] array, int index, long value)(Code)
Indicate that long in array changed
Parameters:
  array - The array
Parameters:
  index - The index into array
Parameters:
  value - The new value



lookupExistingOrNull
public static TCObject lookupExistingOrNull(Object pojo)(Code)
Find managed object, which may be null
Parameters:
  pojo - The object instance The TCObject



lookupObject
public static Object lookupObject(ObjectID id)(Code)
Look up object by ID, faulting into the JVM if necessary
Parameters:
  id - Object identifier The actual object
throws:
  TCClassNotFoundException - If a class is not found during faulting



lookupObjectWithParentContext
public static Object lookupObjectWithParentContext(ObjectID id, ObjectID parentContext)(Code)
Look up object by ID, faulting into the JVM if necessary, This method also passes the parent Object context so that more intelligent prefetching is possible at the L2. XXX::FIXME:: This method is not called lookupObject() coz ManagerHelperFactory doesn't allow method overloading.
Parameters:
  id - Object identifier of the object we are looking up
Parameters:
  parentContext - Object identifier of the parent object The actual object
throws:
  TCClassNotFoundException - If a class is not found during faulting



lookupOrCreate
public static TCObject lookupOrCreate(Object obj)(Code)
Find or create new TCObject
Parameters:
  obj - The object instance The TCObject



lookupOrCreateRoot
public static Object lookupOrCreateRoot(String name, Object object)(Code)
Look up or create a new root object
Parameters:
  name - Root name
Parameters:
  object - Root object to use if none exists yet The root object actually used, may or may not == object



lookupOrCreateRootNoDepth
public static Object lookupOrCreateRootNoDepth(String name, Object obj)(Code)
Look up or create a new root object. Objects faulted in to arbitrary depth.
Parameters:
  name - Root name
Parameters:
  obj - Root object to use if none exists yet The root object actually used, may or may not == object



lookupRoot
public static Object lookupRoot(String name)(Code)
Lookup root by name
Parameters:
  name - Name of root Root object



monitorEnter
public static void monitorEnter(Object obj, int type)(Code)
Enter synchronized monitor
Parameters:
  obj - Object
Parameters:
  type - Lock type



monitorExit
public static void monitorExit(Object obj)(Code)
Exit synchronized monitor
Parameters:
  obj - Object



objectArrayChanged
public static void objectArrayChanged(Object[] array, int index, Object value)(Code)
Indicate that object in array changed
Parameters:
  array - The array
Parameters:
  index - The index into array
Parameters:
  value - The new value



objectNotify
public static void objectNotify(Object obj)(Code)
Perform notify on obj
Parameters:
  obj - Instance



objectNotifyAll
public static void objectNotifyAll(Object obj)(Code)
Perform notifyAll on obj
Parameters:
  obj - Instance



objectWait0
public static void objectWait0(Object obj) throws InterruptedException(Code)
Perform untimed wait on obj
Parameters:
  obj - Instance



objectWait1
public static void objectWait1(Object obj, long millis) throws InterruptedException(Code)
Perform timed wait on obj
Parameters:
  obj - Instance
Parameters:
  millis - Wait time



objectWait2
public static void objectWait2(Object obj, long millis, int nanos) throws InterruptedException(Code)
Perform timed wait on obj
Parameters:
  obj - Instance
Parameters:
  millis - Wait time
Parameters:
  nonas - More wait time



optimisticBegin
public static void optimisticBegin()(Code)
Begin an optimistic transaction



optimisticCommit
public static void optimisticCommit()(Code)
Commit an optimistic transaction
throws:
  ClassNotFoundException - If class not found while faulting in object



optimisticRollback
public static void optimisticRollback()(Code)
Rollback an optimistic transaction



prunedDistributedMethodCall
public static boolean prunedDistributedMethodCall(Object receiver, String method, Object[] params)(Code)
Perform distributed method call on just this node
Parameters:
  receiver - The receiver object
Parameters:
  method - The method to call
Parameters:
  params - The parameter values



queueLength
public static int queueLength(Object obj)(Code)
Number in queue waiting on this lock
Parameters:
  obj - The object Number of waiters
throws:
  NullPointerException - If obj is null



register
public static void register(Object pojo, TCObject obj)(Code)
Register an array with its TCO. It is an error to register an array that has already been registered.
Parameters:
  array - Array
Parameters:
  tco - TCObject
throws:
  NullPointerException - if array or tco are null



set
public static void set(Object array, int index, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
This method is part of java.lang.reflect.Array and does the same as the set() method in the Sun JDK, the IBM version of the set method just adds a series of argument checks and then delegates to the native setImpl version.
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  value - New value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setBoolean
public static void setBoolean(Object array, int index, boolean z) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
Set boolean value in array
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  z - New boolean value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setByte
public static void setByte(Object array, int index, byte b) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
Set byte value in array
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  b - New byte value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setChar
public static void setChar(Object array, int index, char c) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
Set int value in array
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  c - New int value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setDouble
public static void setDouble(Object array, int index, double d) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
Set double value in array
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  d - New double value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setFloat
public static void setFloat(Object array, int index, float f) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
Set float value in array
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  f - New float value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setImpl
public static void setImpl(Object array, int index, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
This method is part of java.lang.reflect.Array and does the same as the set() method in the Sun JDK, the IBM version of the set method just adds a series of argument checks and then delegates to the native setImpl version.
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  value - New value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setInt
public static void setInt(Object array, int index, int i) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
Set int value in array
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  i - New int value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setLong
public static void setLong(Object array, int index, long l) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
Set long value in array
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  l - New long value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



setShort
public static void setShort(Object array, int index, short s) throws IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)
Set short value in array
Parameters:
  array - Array
Parameters:
  index - Index in array
Parameters:
  s - New short value
throws:
  NullPointerException - If array is null
throws:
  IllegalArgumentException - If array is an unexpected array type
throws:
  ArrayIndexOutOfBoundsException - If index is not in valid range for array



shareObjectIfNecessary
public static TCObject shareObjectIfNecessary(Object pojo)(Code)

Parameters:
  pojo - Object instance TCObject for pojo



shortArrayChanged
public static void shortArrayChanged(short[] array, int index, short value)(Code)
Indicate that short in array changed
Parameters:
  array - The array
Parameters:
  index - The index into array
Parameters:
  value - The new value



tryBeginLock
public static boolean tryBeginLock(String lockID, int type)(Code)
Try to begin lock
Parameters:
  lockID - Lock identifier
Parameters:
  type - Lock type True if lock was successful



tryMonitorEnter
public static boolean tryMonitorEnter(Object obj, long timeoutInNanos, int type)(Code)
Try to enter monitor for specified object
Parameters:
  obj - The object monitor
Parameters:
  timeoutInNanos - Timeout in nanoseconds
Parameters:
  type - The lock level True if entered
throws:
  NullPointerException - If obj is null



waitLength
public static int waitLength(Object obj)(Code)
Number in queue waiting on this wait()
Parameters:
  obj - The object Number of waiters
throws:
  NullPointerException - If obj is null



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.