@Test public void testAgentUnmarshalling() { LOGGER.info( "Get Kalumet test agent" ); Agent agent = kalumetModel.getAgent( "test" ); assertEquals( "localhost", agent.getHostname() ); assertEquals( 5000, agent.getPort() ); assertEquals( "0 * * * * *", agent.getCron() ); assertEquals( 5, agent.getMaxmanagedenvironments() ); assertEquals( 3, agent.getMaxjeeapplicationserversstarted() ); }
public Agent getAgent( String id ) { for ( Iterator agentIterator = this.getAgents().iterator(); agentIterator.hasNext(); ) { Agent agent = (Agent) agentIterator.next(); if ( agent.getId().equals( id ) ) { return agent; } } return null; }
Kalumet implements Serializable, Cloneable { public Agent getAgent( String id ) { for ( Iterator agentIterator = this.getAgents().iterator(); agentIterator.hasNext(); ) { Agent agent = (Agent) agentIterator.next(); if ( agent.getId().equals( id ) ) { return agent; } } return null; } }
Kalumet implements Serializable, Cloneable { public Agent getAgent( String id ) { for ( Iterator agentIterator = this.getAgents().iterator(); agentIterator.hasNext(); ) { Agent agent = (Agent) agentIterator.next(); if ( agent.getId().equals( id ) ) { return agent; } } return null; } Kalumet(); }
Kalumet implements Serializable, Cloneable { public Agent getAgent( String id ) { for ( Iterator agentIterator = this.getAgents().iterator(); agentIterator.hasNext(); ) { Agent agent = (Agent) agentIterator.next(); if ( agent.getId().equals( id ) ) { return agent; } } return null; } Kalumet(); void addProperty( Property property ); List getProperties(); void setProperties( LinkedList properties ); Property getProperty( String name ); void setSecurity( Security security ); Security getSecurity(); void addAgent( Agent agent ); void setAgents( LinkedList agents ); List getAgents(); Agent getAgent( String id ); void addEnvironment( Environment environment ); List getEnvironments(); void setEnvironments( LinkedList environments ); Environment getEnvironment( String name ); Map getEnvironmentsByGroups(); List getUserEnvironments( String userid ); Map getUserEnvironmentsByGroups( String userid ); List getEnvironmentsByAgent( String id ); static Kalumet digeste( String path ); Object clone(); synchronized void writeXMLFile( String path, boolean backup ); void writeXMLFile( String path ); void backupXMLFile( String path ); static void writeDefault( String path ); }
Kalumet implements Serializable, Cloneable { public Agent getAgent( String id ) { for ( Iterator agentIterator = this.getAgents().iterator(); agentIterator.hasNext(); ) { Agent agent = (Agent) agentIterator.next(); if ( agent.getId().equals( id ) ) { return agent; } } return null; } Kalumet(); void addProperty( Property property ); List getProperties(); void setProperties( LinkedList properties ); Property getProperty( String name ); void setSecurity( Security security ); Security getSecurity(); void addAgent( Agent agent ); void setAgents( LinkedList agents ); List getAgents(); Agent getAgent( String id ); void addEnvironment( Environment environment ); List getEnvironments(); void setEnvironments( LinkedList environments ); Environment getEnvironment( String name ); Map getEnvironmentsByGroups(); List getUserEnvironments( String userid ); Map getUserEnvironmentsByGroups( String userid ); List getEnvironmentsByAgent( String id ); static Kalumet digeste( String path ); Object clone(); synchronized void writeXMLFile( String path, boolean backup ); void writeXMLFile( String path ); void backupXMLFile( String path ); static void writeDefault( String path );  }