org.jdiagnose.remote.system
Class InMemoryRemoteSystem

java.lang.Object
  extended byorg.jdiagnose.remote.system.InMemoryRemoteSystem
All Implemented Interfaces:
RemoteResultStore, RemoteSystem

public class InMemoryRemoteSystem
extends java.lang.Object
implements RemoteSystem, RemoteResultStore

Author:
jmccrindle

Constructor Summary
InMemoryRemoteSystem()
           
 
Method Summary
 void addRemoteResult(RemoteResult result)
           
 void addRemoteResults(java.util.Iterator results)
           
protected  void addResult(RemoteResult result)
           
 RemoteAgent getAgent(java.lang.String name)
           
 java.util.Iterator getAgents()
           
 RemoteHost getHost(java.lang.String name)
           
 java.util.Iterator getHosts()
           
 int getMax()
           
 RemoteResult getResult(java.lang.String guid)
           
 java.util.Iterator getResults()
           
protected  boolean removeResult(RemoteResult result)
           
 void setMax(int max)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InMemoryRemoteSystem

public InMemoryRemoteSystem()
Method Detail

addRemoteResults

public void addRemoteResults(java.util.Iterator results)
                      throws RemoteResultException
Specified by:
addRemoteResults in interface RemoteResultStore
Throws:
RemoteResultException

addRemoteResult

public void addRemoteResult(RemoteResult result)
                     throws RemoteResultException
Specified by:
addRemoteResult in interface RemoteResultStore
Throws:
RemoteResultException

removeResult

protected boolean removeResult(RemoteResult result)

addResult

protected void addResult(RemoteResult result)

getHosts

public java.util.Iterator getHosts()
Specified by:
getHosts in interface RemoteSystem

getAgents

public java.util.Iterator getAgents()
Specified by:
getAgents in interface RemoteSystem

toString

public java.lang.String toString()

getHost

public RemoteHost getHost(java.lang.String name)
Specified by:
getHost in interface RemoteSystem

getAgent

public RemoteAgent getAgent(java.lang.String name)
Specified by:
getAgent in interface RemoteSystem

getResults

public java.util.Iterator getResults()
Specified by:
getResults in interface RemoteSystem

getMax

public int getMax()
Returns:
Returns the max.

setMax

public void setMax(int max)
Parameters:
max - The max to set.

getResult

public RemoteResult getResult(java.lang.String guid)
Specified by:
getResult in interface RemoteSystem


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.