org.jboss.ejb.plugins.cmp.jdbc2.schema
Class PartitionedTableCache
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.mx.util.JBossNotificationBroadcasterSupport
       org.jboss.system.ServiceMBeanSupport
org.jboss.system.ServiceMBeanSupport
           org.jboss.ejb.plugins.cmp.jdbc2.schema.PartitionedTableCache
org.jboss.ejb.plugins.cmp.jdbc2.schema.PartitionedTableCache
- All Implemented Interfaces: 
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Cache, PartitionedTableCacheMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class PartitionedTableCache 
- extends org.jboss.system.ServiceMBeanSupport- implements Cache, PartitionedTableCacheMBean
- Version:
- $Revision: 57209 $
- Author:
- Alexey Loubyansky
 
 
 
| Fields inherited from class org.jboss.system.ServiceMBeanSupport | 
| log, server, SERVICE_CONTROLLER_SIG, serviceName | 
 
| Fields inherited from interface org.jboss.ejb.plugins.cmp.jdbc2.schema.Cache | 
| NONE | 
 
| Fields inherited from interface org.jboss.system.ServiceMBean | 
| CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED | 
 
 
 
| Methods inherited from class org.jboss.system.ServiceMBeanSupport | 
| create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop | 
 
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport | 
| addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface org.jboss.system.ServiceMBean | 
| getName, getState, getStateString, jbossInternalLifecycle | 
 
| Methods inherited from interface org.jboss.system.Service | 
| create, destroy, start, stop | 
 
PartitionedTableCache
public PartitionedTableCache(int minCapacity,
                             int maxCapacity,
                             int partitionsTotal)
stopService
public void stopService()
- 
- Overrides:
- stopServicein class- org.jboss.system.ServiceMBeanSupport
 
- 
 
initOverager
public void initOverager(long period,
                         long maxAge,
                         String threadName)
- 
 
- 
 
registerListener
public void registerListener(Cache.Listener listener)
- 
- Specified by:
- registerListenerin interface- PartitionedTableCacheMBean
 
- 
 
size
public int size()
- 
- Specified by:
- sizein interface- PartitionedTableCacheMBean
 
- 
 
getMaxCapacity
public int getMaxCapacity()
- 
- Specified by:
- getMaxCapacityin interface- PartitionedTableCacheMBean
 
- 
 
setMaxCapacity
public void setMaxCapacity(int maxCapacity)
- 
- Specified by:
- setMaxCapacityin interface- PartitionedTableCacheMBean
 
- 
 
getMinCapacity
public int getMinCapacity()
- 
- Specified by:
- getMinCapacityin interface- PartitionedTableCacheMBean
 
- 
 
getPartitionsTotal
public int getPartitionsTotal()
- 
- Specified by:
- getPartitionsTotalin interface- PartitionedTableCacheMBean
 
- 
 
getMinPartitionCapacity
public int getMinPartitionCapacity()
- 
- Specified by:
- getMinPartitionCapacityin interface- PartitionedTableCacheMBean
 
- 
 
getMaxPartitionCapacity
public int getMaxPartitionCapacity()
- 
- Specified by:
- getMaxPartitionCapacityin interface- PartitionedTableCacheMBean
 
- 
 
lock
public void lock()
- 
- Specified by:
- lockin interface- Cache
 
- 
 
lock
public void lock(Object key)
- 
- Specified by:
- lockin interface- Cache
 
- 
 
unlock
public void unlock()
- 
- Specified by:
- unlockin interface- Cache
 
- 
 
unlock
public void unlock(Object key)
- 
- Specified by:
- unlockin interface- Cache
 
- 
 
getFields
public Object[] getFields(Object pk)
- 
- Specified by:
- getFieldsin interface- Cache
 
- 
 
getRelations
public Object[] getRelations(Object pk)
- 
- Specified by:
- getRelationsin interface- Cache
 
- 
 
put
public void put(Transaction tx,
                Object pk,
                Object[] fields,
                Object[] relations)
- 
- Specified by:
- putin interface- Cache
 
- 
 
remove
public void remove(Transaction tx,
                   Object pk)
- 
- Specified by:
- removein interface- Cache
 
- 
 
contains
public boolean contains(Transaction tx,
                        Object pk)
- 
- Specified by:
- containsin interface- Cache
 
- 
 
lockForUpdate
public void lockForUpdate(Transaction tx,
                          Object pk)
                   throws Exception
- 
- Specified by:
- lockForUpdatein interface- Cache
 
- 
- Throws:
- Exception
 
releaseLock
public void releaseLock(Transaction tx,
                        Object pk)
                 throws Exception
- 
- Specified by:
- releaseLockin interface- Cache
 
- 
- Throws:
- Exception
 
flush
public void flush()
- 
- Specified by:
- flushin interface- Cache
 
- 
 
      
      
        Copyright © 2002 JBoss Group, LLC. All Rights Reserved.