org.terracotta.management.resource.AgentEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache Show documentation
Show all versions of ehcache Show documentation
Ehcache is an open source, standards-based cache used to boost performance,
offload the database and simplify scalability. Ehcache is robust, proven and full-featured and
this has made it the most widely-used Java-based cache.
/*
* All content copyright (c) 2003-2012 Terracotta, Inc., except as may otherwise be noted in a separate copyright
* notice. All rights reserved.
*/
package org.terracotta.management.resource;
import java.util.HashMap;
import java.util.Map;
/**
*
* Represents an agent for some monitorable application. It provides access to the root {@link Representable} objects
* in an appropriate state as determined by the resource providing it.
*
*
* @author brandony
*
*/
public class AgentEntity extends VersionedEntity {
private String agentId;
private String agencyOf;
private final Map rootRepresentables = new HashMap();
/**
* @return the agentId
*/
@Override
public String getAgentId() {
return agentId;
}
/**
* @param agentId to set
*/
@Override
public void setAgentId(String agentId) {
this.agentId = agentId;
}
public String getAgencyOf() {
return agencyOf;
}
public void setAgencyOf(String agencyOf) {
this.agencyOf = agencyOf;
}
public Map getRootRepresentables() {
return rootRepresentables;
}
}