|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.portal.jems.as.system.AbstractJBossService org.jboss.portal.portlet.impl.state.producer.ProducerPersistenceManagerService
Field Summary | |
private int |
counter
. |
private java.util.Map |
store
. |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|
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 |
Constructor Summary | |
ProducerPersistenceManagerService()
|
Method Summary | |
java.lang.String |
cloneState(java.lang.String stateId)
Clone an existing state. |
java.lang.String |
cloneState(java.lang.String stateId,
PropertyMap propertyMap)
Clone an existing state. |
java.lang.String |
createState(java.lang.String portletId,
PropertyMap propertyMap)
Create the initial state. |
void |
destroyState(java.lang.String stateId)
Destroy the state. |
int |
getSize()
|
ProducerStateContext |
loadState(java.lang.String stateId)
Load the state. |
void |
updateState(java.lang.String stateId,
PropertyMap propertyMap)
Update the state. |
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService |
create, destroy, getState, getStateString, start, stop |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
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 |
Field Detail |
private java.util.Map store
private int counter
Constructor Detail |
public ProducerPersistenceManagerService()
Method Detail |
public ProducerStateContext loadState(java.lang.String stateId) throws NoSuchStateException, InvalidStateIdException
ProducerPersistenceManager
loadState
in interface ProducerPersistenceManager
stateId
- the state id
InvalidStateIdException
- if the state id is not valid
NoSuchStateException
- is the specified state does not existpublic java.lang.String createState(java.lang.String portletId, PropertyMap propertyMap)
ProducerPersistenceManager
createState
in interface ProducerPersistenceManager
portletId
- the id that this state refers to
public java.lang.String cloneState(java.lang.String stateId, PropertyMap propertyMap) throws NoSuchStateException, InvalidStateIdException
ProducerPersistenceManager
cloneState
in interface ProducerPersistenceManager
stateId
- the id that this state refers topropertyMap
- the values of the cloned state
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not validpublic java.lang.String cloneState(java.lang.String stateId) throws java.lang.IllegalArgumentException, NoSuchStateException, InvalidStateIdException
ProducerPersistenceManager
cloneState
in interface ProducerPersistenceManager
stateId
- the id that this state refers to
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not valid
java.lang.IllegalArgumentException
- if the state id is nullpublic void updateState(java.lang.String stateId, PropertyMap propertyMap) throws NoSuchStateException, InvalidStateIdException
ProducerPersistenceManager
updateState
in interface ProducerPersistenceManager
stateId
- propertyMap
- the updated state
InvalidStateIdException
- if the state id is not valid
NoSuchStateException
- is the specified state does not existpublic void destroyState(java.lang.String stateId) throws InvalidStateIdException, NoSuchStateException
ProducerPersistenceManager
destroyState
in interface ProducerPersistenceManager
stateId
-
NoSuchStateException
- is the specified state does not exist
InvalidStateIdException
- if the state id is not validpublic int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |