|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.agent.server.Agent
public class Agent
Class representing an agent
| Constructor Summary | |
|---|---|
Agent()
Default constructor of the agent |
|
Agent(Agent clone)
Clone an agent into this one, excepted the applicationDiscoveryService List |
|
Agent(org.ow2.jasmine.agent.common.discovery.SystemProperties props)
Agent constructor with SystemProperties |
|
| Method Summary | |
|---|---|
void |
addApplicationDiscoveryService(org.ow2.jasmine.agent.common.discovery.ApplicationDiscoveryService service)
Add an ApplicationDiscoveryService to the list |
void |
addDiscoveredApplication(List<org.ow2.jasmine.agent.common.discovery.Application> appList)
Add discovered applications to the agent application list |
void |
checkAppList()
Check the application list to see if a application has been removed or not since the last discovery |
void |
discoverApplications()
Launch Application discovery |
void |
endDiscovery()
Method called at the end of a discovery |
String |
getAgentId()
Get the ID of the Agent |
List<org.ow2.jasmine.agent.common.discovery.ApplicationDiscoveryService> |
getApplicationDiscoveryServiceList()
|
List<org.ow2.jasmine.agent.common.discovery.Application> |
getApplicationList()
|
UUID |
getIdAsUUID()
Get the ID of the agent as an UUID |
Boolean |
getIsDiscoveryRunning()
|
org.ow2.jasmine.agent.common.jk.JkManagerService |
getJkManagerService()
|
String |
getLastDiscovery()
Get the LastDiscovery Date in a String format |
int |
getState()
|
org.ow2.jasmine.agent.common.discovery.SystemProperties |
getSystemProperties()
|
void |
removeAllRegisteredServices()
Remove all registered Services |
void |
sendUpdate()
Send an update to the DiscoveryManager that the agent has been updated |
void |
setAgentId(String id)
Set the ID of the agent |
void |
setApplicationDiscoveryServiceList(List<org.ow2.jasmine.agent.common.discovery.ApplicationDiscoveryService> applicationDiscoveryServiceList)
|
void |
setApplicationList(List<org.ow2.jasmine.agent.common.discovery.Application> applicationList)
|
void |
setId(UUID id2)
Set the ID of the agent from an UUID |
void |
setIsDiscoveryRunning(Boolean isDiscoveryRunning)
|
void |
setJkManagerService(org.ow2.jasmine.agent.common.jk.JkManagerService jkManagerService)
|
void |
setLastDiscovery(String lastDiscovery)
|
void |
setState(AgentState state)
Set the state from an AgentState |
void |
setState(int state)
Set the state from an int value |
void |
setSystemProperties(org.ow2.jasmine.agent.common.discovery.SystemProperties systemProperties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Agent()
public Agent(org.ow2.jasmine.agent.common.discovery.SystemProperties props)
props - public Agent(Agent clone)
clone - | Method Detail |
|---|
public org.ow2.jasmine.agent.common.discovery.SystemProperties getSystemProperties()
public void setSystemProperties(org.ow2.jasmine.agent.common.discovery.SystemProperties systemProperties)
systemProperties - the systemProperties to setpublic org.ow2.jasmine.agent.common.jk.JkManagerService getJkManagerService()
public void setJkManagerService(org.ow2.jasmine.agent.common.jk.JkManagerService jkManagerService)
jkManagerService - the jkManagerService to setpublic void addApplicationDiscoveryService(org.ow2.jasmine.agent.common.discovery.ApplicationDiscoveryService service)
service - the service to addpublic String getAgentId()
public void setAgentId(String id)
id - the id to setpublic UUID getIdAsUUID()
public void setId(UUID id2)
id2 - the id to setpublic List<org.ow2.jasmine.agent.common.discovery.ApplicationDiscoveryService> getApplicationDiscoveryServiceList()
public void setApplicationDiscoveryServiceList(List<org.ow2.jasmine.agent.common.discovery.ApplicationDiscoveryService> applicationDiscoveryServiceList)
applicationDiscoveryServiceList - the applicationDiscoveryServiceList to setpublic int getState()
public void setState(int state)
state - the state to setpublic void setState(AgentState state)
state - public String getLastDiscovery()
public void setLastDiscovery(String lastDiscovery)
lastDiscovery - public void removeAllRegisteredServices()
public List<org.ow2.jasmine.agent.common.discovery.Application> getApplicationList()
public void setApplicationList(List<org.ow2.jasmine.agent.common.discovery.Application> applicationList)
applicationList - the applicationList to setpublic void addDiscoveredApplication(List<org.ow2.jasmine.agent.common.discovery.Application> appList)
appList - the list of discovered applications to addpublic void checkAppList()
public void discoverApplications()
public Boolean getIsDiscoveryRunning()
public void setIsDiscoveryRunning(Boolean isDiscoveryRunning)
isDiscoveryRunning - the isDiscoveryRunning to setpublic void sendUpdate()
public void endDiscovery()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||