public Credentials deepCopy() { return new Credentials(this); }
/** * Performs a deep copy on <i>other</i>. */ public SubmitOptions(SubmitOptions other) { if (other.is_set_initial_status()) { this.initial_status = other.initial_status; } if (other.is_set_creds()) { this.creds = new Credentials(other.creds); } }
try (NimbusClient client = NimbusClient.getConfiguredClient(conf)) { LOG.info("Uploading new credentials to {}", name); Credentials creds = new Credentials(fullCreds); if (expectedUser != null) { creds.set_topoOwner(expectedUser);
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, SubmitOptions struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.initial_status = org.apache.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true); } } }
state.setCredentials(id, new Credentials(newCredsMap), topoConf);
topoConf = Utils.merge(conf, topoConf); if (credentials == null) { credentials = new Credentials(Collections.emptyMap());
state.setCredentials(topoId, new Credentials(creds), topoConf);
opts = new SubmitOptions(TopologyInitialStatus.ACTIVE); opts.set_creds(new Credentials(fullCreds));
case 2: // CREDS if (schemeField.type == org.apache.storm.thrift.protocol.TType.STRUCT) { struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true);
public Credentials deepCopy() { return new Credentials(this); }
/** * Performs a deep copy on <i>other</i>. */ public SubmitOptions(SubmitOptions other) { if (other.is_set_initial_status()) { this.initial_status = other.initial_status; } if (other.is_set_creds()) { this.creds = new Credentials(other.creds); } }
if (localNimbus!=null) { LOG.info("Pushing Credentials to topology {} in local mode", name); localNimbus.uploadNewCredentials(name, new Credentials(fullCreds)); } else { try(NimbusClient client = NimbusClient.getConfiguredClient(conf)) { LOG.info("Uploading new credentials to {}", name); client.getClient().uploadNewCredentials(name, new Credentials(fullCreds));
@Override public void read(org.apache.thrift.protocol.TProtocol prot, SubmitOptions struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.initial_status = org.apache.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true); } } }
opts = new SubmitOptions(TopologyInitialStatus.ACTIVE); opts.set_creds(new Credentials(fullCreds));
case 2: // CREDS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true);