org.jclouds.jenkins.v1.domain
Class ComputerView

java.lang.Object
  extended by org.jclouds.jenkins.v1.domain.ComputerView
All Implemented Interfaces:
Comparable<ComputerView>

public class ComputerView
extends Object
implements Comparable<ComputerView>

Author:
Adrian Cole
See Also:
api doc

Nested Class Summary
static class ComputerView.Builder
           
 
Field Summary
protected  int busyExecutors
           
protected  Set<Computer> computers
           
protected  String displayName
           
protected  int totalExecutors
           
 
Constructor Summary
ComputerView(String displayName, int busyExecutors, int totalExecutors, Set<Computer> computers)
           
 
Method Summary
static ComputerView.Builder builder()
           
 int compareTo(ComputerView that)
           
 boolean equals(Object object)
           
 int getBusyExecutors()
           
 Set<Computer> getComputers()
           
 String getDisplayName()
           
 int getTotalExecutors()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 ComputerView.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

displayName

protected final String displayName

busyExecutors

protected final int busyExecutors

totalExecutors

protected final int totalExecutors

computers

protected final Set<Computer> computers
Constructor Detail

ComputerView

public ComputerView(String displayName,
                    int busyExecutors,
                    int totalExecutors,
                    Set<Computer> computers)
Method Detail

builder

public static ComputerView.Builder builder()

toBuilder

public ComputerView.Builder toBuilder()

getDisplayName

public String getDisplayName()
Returns:
the displayName of the computer

getBusyExecutors

public int getBusyExecutors()
Returns:
the number of objects in the computer

getTotalExecutors

public int getTotalExecutors()
Returns:
the total totalExecutors stored in this computer

getComputers

public Set<Computer> getComputers()
Returns:
the computers in this set

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

compareTo

public int compareTo(ComputerView that)
Specified by:
compareTo in interface Comparable<ComputerView>


Copyright © 2009-2012 jclouds. All Rights Reserved.