User: juha Date: 01/01/23 10:50:51 Added: src/org/jboss/admin BeanCacheEntry.java Log: Initial import. Dataholder for bean cache messages. Revision Changes Path 1.1 admin/src/org/jboss/admin/BeanCacheEntry.java Index: BeanCacheEntry.java =================================================================== package org.jboss.admin; // standard imports import java.io.Serializable; import javax.jms.Message; import javax.jms.JMSException; /** * ... * * @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a> */ public class BeanCacheEntry implements Serializable { private String application = "<undefined>"; private String bean = "<undefined>"; private String type = "<undefined>"; private long time = 0; /* ************************************************************************* * * CONSTRUCTORS * ************************************************************************* */ public BeanCacheEntry() {} public BeanCacheEntry(String application, String bean, String type, long time) { //setApplication(application); setBean(bean); setType(type); setTime(time); } public BeanCacheEntry(Message msg) throws JMSException { //setApplication(msg.getStringProperty("APPLICATION")); setBean(msg.getStringProperty("BEAN")); setType(msg.getStringProperty("TYPE")); setTime(msg.getLongProperty("TIME")); } /* ************************************************************************* * * PUBLIC INSTANCE METHODS * ************************************************************************* */ public void setApplication(String applicationName) { if ((applicationName == null) || ("").equals(applicationName)) return; this.application = applicationName; } public String getApplication() { return application; } public void setBean(String beanName) { if ((beanName == null) || ("").equals(beanName)) return; this.bean = beanName; } public String getBean() { return bean; } public void setType(String type) { if ((type == null) || ("").equals(type)) return; this.type = type; } public String getType() { return type; } public void setTime(long time) { this.time = time; } public long getTime() { return time; } /* ************************************************************************* * * METHOD OVERRIDES * ************************************************************************* */ public String toString() { return application + "/" + bean + ", time: " + time; } }
