public void scanNode(Node node) { ObjectNode n = mapper.createObjectNode(); ObjectMeta meta = node.getMetadata(); n.put("nodeUid", meta.getUid()); n.put("resourceVersion", meta.getResourceVersion()); n.put("name", meta.getName()); n.put("namespace", meta.getNamespace()); n.put("clusterName", meta.getClusterName()); n.put("generateName", meta.getGenerateName()); n.put("creationTimestamp", meta.getCreationTimestamp()); n.put("deletionTimestamp", meta.getDeletionTimestamp()); n.put("deletionGracePeriod", meta.getDeletionGracePeriodSeconds()); n.put("selfLink", meta.getSelfLink()); NodeStatus ns = node.getStatus(); NodeSpec nodeSpec = node.getSpec(); n.put("externalId", nodeSpec.getExternalID()); n.put("unschedulable", nodeSpec.getUnschedulable()); n.put("podCIDR", nodeSpec.getPodCIDR()); n.put("providerId", nodeSpec.getProviderID()); n.put("clusterId", clusterId); getNeoRxClient().execCypher("merge (n:KubeNode {nodeUid:{nodeUid}}) set n.clusterId={clusterId}, n+={props}", "nodeUid", meta.getUid(), "props", n, "clusterId", clusterId); }
n.put("deletionTimestamp", meta.getDeletionTimestamp()); n.put("deletionGracePeriod", meta.getDeletionGracePeriodSeconds()); n.put("selfLink", meta.getSelfLink());
public ObjectMetaBuilder( ObjectMetaFluent<?> fluent , ObjectMeta instance ){ this.fluent = fluent; fluent.withAnnotations(instance.getAnnotations()); fluent.withCreationTimestamp(instance.getCreationTimestamp()); fluent.withDeletionTimestamp(instance.getDeletionTimestamp()); fluent.withGenerateName(instance.getGenerateName()); fluent.withLabels(instance.getLabels()); fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); fluent.withResourceVersion(instance.getResourceVersion()); fluent.withSelfLink(instance.getSelfLink()); fluent.withUid(instance.getUid()); } public ObjectMetaBuilder( ObjectMeta instance ){
public ObjectMetaBuilder( ObjectMetaFluent<?> fluent , ObjectMeta instance ){ this.fluent = fluent; fluent.withAnnotations(instance.getAnnotations()); fluent.withCreationTimestamp(instance.getCreationTimestamp()); fluent.withDeletionTimestamp(instance.getDeletionTimestamp()); fluent.withGenerateName(instance.getGenerateName()); fluent.withLabels(instance.getLabels()); fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); fluent.withResourceVersion(instance.getResourceVersion()); fluent.withSelfLink(instance.getSelfLink()); fluent.withUid(instance.getUid()); } public ObjectMetaBuilder( ObjectMeta instance ){
public ObjectMetaBuilder( ObjectMeta instance ){ this.fluent = this; this.withAnnotations(instance.getAnnotations()); this.withCreationTimestamp(instance.getCreationTimestamp()); this.withDeletionTimestamp(instance.getDeletionTimestamp()); this.withGenerateName(instance.getGenerateName()); this.withLabels(instance.getLabels()); this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); this.withResourceVersion(instance.getResourceVersion()); this.withSelfLink(instance.getSelfLink()); this.withUid(instance.getUid()); }
public ObjectMetaBuilder( ObjectMeta instance ){ this.fluent = this; this.withAnnotations(instance.getAnnotations()); this.withCreationTimestamp(instance.getCreationTimestamp()); this.withDeletionTimestamp(instance.getDeletionTimestamp()); this.withGenerateName(instance.getGenerateName()); this.withLabels(instance.getLabels()); this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); this.withResourceVersion(instance.getResourceVersion()); this.withSelfLink(instance.getSelfLink()); this.withUid(instance.getUid()); }
public ObjectMetaFluentImpl(ObjectMeta instance){ this.withAnnotations(instance.getAnnotations()); this.withCreationTimestamp(instance.getCreationTimestamp()); this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); this.withDeletionTimestamp(instance.getDeletionTimestamp()); this.withFinalizers(instance.getFinalizers()); this.withGenerateName(instance.getGenerateName()); this.withGeneration(instance.getGeneration()); this.withLabels(instance.getLabels()); this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); this.withOwnerReferences(instance.getOwnerReferences()); this.withResourceVersion(instance.getResourceVersion()); this.withSelfLink(instance.getSelfLink()); this.withUid(instance.getUid()); }
public ObjectMetaBuilder(ObjectMeta instance,Boolean validationEnabled){ this.fluent = this; this.withAnnotations(instance.getAnnotations()); this.withCreationTimestamp(instance.getCreationTimestamp()); this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); this.withDeletionTimestamp(instance.getDeletionTimestamp()); this.withFinalizers(instance.getFinalizers()); this.withGenerateName(instance.getGenerateName()); this.withGeneration(instance.getGeneration()); this.withLabels(instance.getLabels()); this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); this.withOwnerReferences(instance.getOwnerReferences()); this.withResourceVersion(instance.getResourceVersion()); this.withSelfLink(instance.getSelfLink()); this.withUid(instance.getUid()); this.validationEnabled = validationEnabled; }
public ObjectMetaBuilder(ObjectMetaFluent<?> fluent,ObjectMeta instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withAnnotations(instance.getAnnotations()); fluent.withCreationTimestamp(instance.getCreationTimestamp()); fluent.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); fluent.withDeletionTimestamp(instance.getDeletionTimestamp()); fluent.withFinalizers(instance.getFinalizers()); fluent.withGenerateName(instance.getGenerateName()); fluent.withGeneration(instance.getGeneration()); fluent.withLabels(instance.getLabels()); fluent.withName(instance.getName()); fluent.withNamespace(instance.getNamespace()); fluent.withOwnerReferences(instance.getOwnerReferences()); fluent.withResourceVersion(instance.getResourceVersion()); fluent.withSelfLink(instance.getSelfLink()); fluent.withUid(instance.getUid()); this.validationEnabled = validationEnabled; } public ObjectMetaBuilder(ObjectMeta instance){