@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((type == null) ? 0 : type.hashCode()); result = prime * result + getId(); result = prime * result + ((destination == null) ? 0 : destination.hashCode()); return result; }
public String toString() { StringBuilder str = new StringBuilder(); return str.append(getClass().getSimpleName()).append(":[" ).append("id='").append(getId() ).append("', destination='").append(destination ).append("', type='").append(type ).append("', propagationtype='").append(propagationType ).append("']").toString(); }
@Override public String serializeToString() { StringBuilder str = new StringBuilder(); return str.append(this.getClass().getSimpleName()).append(":[").append( "id=<").append(getId()).append(">").append( ", destination=<").append(getDestination() == null ? "\\0" : BeansUtils.createEscaping(getDestination())).append(">").append( ", type=<").append(getType() == null ? "\\0" : BeansUtils.createEscaping(getType())).append(">").append( ", propagationtype=<").append(getPropagationType() == null ? "\\0" : BeansUtils.createEscaping(getPropagationType())).append(">").append( ']').toString(); }
@Override public int compareTo(PerunBean perunBean) { if(perunBean == null) throw new NullPointerException("PerunBean to compare with is null."); if(perunBean instanceof Destination) { Destination destination = (Destination) perunBean; if (this.getDestination() == null && destination.getDestination() != null) return -1; if (destination.getDestination() == null && this.getDestination() != null) return 1; if (this.getDestination() == null && destination.getDestination() == null) return 0; return this.getDestination().compareToIgnoreCase(destination.getDestination()); } else { return (this.getId() - perunBean.getId()); } } }
while (iter.hasNext()) { Destination dest = iter.next(); if (serviceDenialDao.isServiceBlockedOnDestination(service.getId(), dest.getId())) { iter.remove();
try { taskResult = schedulingPool.createTaskResult(task.getId(), sendTask.getDestination().getId(), sendTask.getStderr(), sendTask.getStdout(), sendTask.getReturnCode(), task.getService());
public RichDestination(Destination destination, Facility facility, Service service) { super(destination.getId(), destination.getDestination(), destination.getType(), destination.getCreatedAt(), destination.getCreatedBy(), destination.getModifiedAt(), destination.getModifiedBy(), destination.getCreatedByUid(), destination.getModifiedByUid()); setPropagationType(destination.getPropagationType()); this.service = service; this.facility = facility; }
jmsQueueManager.reportTaskResult(schedulingPool.createTaskResult(task.getId(), destination.getId(), stderr, stdout, returnCode, service));
while (iter.hasNext()) { Destination dest = iter.next(); if (generalServiceManager.isServiceBlockedOnDestination(task.getService(), dest.getId())) { iter.remove();
while (iter.hasNext()) { Destination dest = iter.next(); if (serviceDenialDao.isServiceBlockedOnDestination(service.getId(), dest.getId())) { iter.remove(); log.debug("[{}] Removed blocked destination: {}", task.getId(), dest.toString());