|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject atg.nucleus.GenericRMIService atg.adapter.gsa.invalidator.GSAInvalidatorService
public class GSAInvalidatorService
This class is a RMI service that waits for requests from outside clients, and issues JMS invalidation events via Patchbay.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected static java.lang.String |
INVALIDATOR_JMSTYPE
System property defining the JMS Type & port of the messages sent for cache invalidation |
protected static java.lang.String |
INVALIDATOR_PORT
|
Fields inherited from class atg.nucleus.GenericRMIService |
---|
SERVICE_INFO_KEY |
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
GSAInvalidatorService()
GenericRMIService constructors must be able to throw RemoteExceptions. |
Method Summary | |
---|---|
boolean |
getActive()
Retrieve the active flag, which indicates if this component can send messages. |
boolean |
getEnabled()
Retrieve the enabled flag, which indicates if this component can send messages, as long as the active flag is also true. |
int |
getMaxItemsPerEvent()
|
MessageSourceContext |
getMessageSourceContext()
Gets the messageSourceContext for this MessageSource. |
int |
getNumCompressedEventsSent()
|
int |
getNumEventsSent()
|
java.lang.String |
getServerId()
Returns the unique id to be used for tagging events in this server |
atg.service.ServerName |
getServerName()
|
void |
invalidate(atg.adapter.gsa.invalidator.MultiTypeInvalidationMessage pInfoMessage)
Invalidator interface remote method which receives a MultiTypeInvalidationMessage from local or RMI clients, and emits a JMS Message containing a this MultiTypeInvalidationMessage object. |
void |
invalidate(java.lang.String pRepositoryName,
java.lang.String pItemDescriptorName,
java.lang.String pItemId)
Invalidator interface remote method which receives invalidate events from RMI clients, and emits a JMS Message containing a GSAInvalidationMessage object. |
void |
setActive(boolean pActive)
Set the active flag, indicating this component can send messages. |
void |
setEnabled(boolean pEnabled)
Set the enabled flag, which has to be set along with the active flag for this component to send messages. |
void |
setMaxItemsPerEvent(int pMaxItemsPerEvent)
Sets the property MaxItemsPerEvent. |
void |
setMessageSourceContext(MessageSourceContext pContext)
MessageSource interface method to set the MessageSourceContext for this MessageSource. |
void |
setNumCompressedEventsSent(int pNumCompressedEventsSent)
Sets the property NumCompressedEventsSent. |
void |
setNumEventsSent(int pNumEventsSent)
Sets the property NumEventsSent. |
void |
setServerName(atg.service.ServerName pServerName)
Sets the property ServerName. |
void |
startMessageSource()
MessageSource interface method to signal this MessageSource that it is now legal to emit messages. |
void |
stopMessageSource()
MessageSource interface method to signal this MessageSource that it is no longer legal to emit messages. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected static final java.lang.String INVALIDATOR_JMSTYPE
protected static final java.lang.String INVALIDATOR_PORT
Constructor Detail |
---|
public GSAInvalidatorService() throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public void setMaxItemsPerEvent(int pMaxItemsPerEvent)
pMaxItemsPerEvent
- new value to setpublic int getMaxItemsPerEvent()
public void setNumEventsSent(int pNumEventsSent)
pNumEventsSent
- new value to setpublic int getNumEventsSent()
public void setNumCompressedEventsSent(int pNumCompressedEventsSent)
pNumCompressedEventsSent
- new value to setpublic int getNumCompressedEventsSent()
public void setMessageSourceContext(MessageSourceContext pContext)
setMessageSourceContext
in interface MessageSource
public MessageSourceContext getMessageSourceContext()
public void setActive(boolean pActive)
pActive
- Boolean that indicates whether GSA Cache invalidation service is ready or notpublic boolean getActive()
public void setEnabled(boolean pEnabled)
pEnabled
- Boolean that enables (TRUE) or disables (FALSE) GSA Cache invalidation via JMSpublic boolean getEnabled()
public void setServerName(atg.service.ServerName pServerName)
pServerName
- new value to setpublic atg.service.ServerName getServerName()
public java.lang.String getServerId()
public void startMessageSource()
startMessageSource
in interface MessageSource
public void stopMessageSource()
stopMessageSource
in interface MessageSource
public void invalidate(java.lang.String pRepositoryName, java.lang.String pItemDescriptorName, java.lang.String pItemId) throws java.rmi.RemoteException
invalidate
in interface atg.adapter.gsa.invalidator.GSAInvalidator
pRepositoryName
- Name of repository to invalidatepItemDescriptorName
- Name of item descriptor type to invalidatepItemId
- Item ID of specific item to invalidate via distributed dynamo
repository facility
java.rmi.RemoteException
- Nothing thrown in this versionpublic void invalidate(atg.adapter.gsa.invalidator.MultiTypeInvalidationMessage pInfoMessage) throws java.rmi.RemoteException
pMessage
- The MultiTypeInvalidationMessage to send
java.rmi.RemoteException
- Nothing thrown in this version
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |