org.jdiagnose.remote
Interface Agent
- All Known Implementing Classes:
- DefaultAgent
- public interface Agent
Represents information about an agent, including the host name and agent
name. It is also used to createRemoteResults, provide Guid's and SequenceNumbers.
- Author:
- jmccrindle
getHost
public java.lang.String getHost()
- Returns:
- The host that the agent is running on.
getAgent
public java.lang.String getAgent()
- Returns:
- The agent that the diagnostics are running in
nextSequenceNumber
public long nextSequenceNumber()
- Returns:
- The next sequence number for this agent
nextGuid
public java.lang.String nextGuid()
- Returns:
- a globally unique identifier
createRemoteResult
public RemoteResult createRemoteResult(ResultInfo result)
- Creates a remote result from a regular result
- Parameters:
result
- the result to wrap
- Returns:
- a remote result with agent, host, guid and sequenceNumber set.
Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.