public class Controller extends Object
| Constructor and Description |
|---|
Controller() |
Controller(KubernetesClient kubernetes) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Object dto,
String sourceName)
Applies the given DTOs onto the Kubernetes master
|
void |
applyConfig(Config config,
String sourceName) |
void |
applyConfig(com.fasterxml.jackson.databind.JsonNode entity,
String sourceName) |
void |
applyEntity(Entity dto,
String sourceName)
Applies the given DTOs onto the Kubernetes master
|
String |
applyJson(byte[] json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(File json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(InputStream json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
String |
applyJson(String json)
Applies the given JSON to the underlying REST APIs in a single operation without needing to explicitly parse first.
|
void |
applyPod(PodSchema podSchema,
String sourceName) |
void |
applyReplicationController(ReplicationControllerSchema replicationControllerSchema,
String sourceName) |
void |
applyService(ServiceSchema serviceSchema,
String sourceName) |
void |
applyTemplateConfig(com.fasterxml.jackson.databind.JsonNode entity,
String sourceName) |
protected boolean |
isRunning(PodSchema entity) |
protected boolean |
isRunning(ReplicationControllerSchema entity) |
protected boolean |
isRunning(ServiceSchema entity) |
public Controller()
public Controller(KubernetesClient kubernetes)
public String applyJson(byte[] json) throws IOException
IOExceptionpublic String applyJson(String json) throws IOException
IOExceptionpublic String applyJson(File json) throws IOException
IOExceptionpublic String applyJson(InputStream json) throws IOException
IOExceptionpublic void apply(Object dto, String sourceName) throws IOException
IOExceptionpublic void applyEntity(Entity dto, String sourceName)
public void applyTemplateConfig(com.fasterxml.jackson.databind.JsonNode entity,
String sourceName)
public void applyConfig(Config config, String sourceName) throws IOException
IOExceptionpublic void applyConfig(com.fasterxml.jackson.databind.JsonNode entity,
String sourceName)
throws IOException
IOExceptionpublic void applyService(ServiceSchema serviceSchema, String sourceName)
public void applyReplicationController(ReplicationControllerSchema replicationControllerSchema, String sourceName)
protected boolean isRunning(PodSchema entity)
protected boolean isRunning(ReplicationControllerSchema entity)
protected boolean isRunning(ServiceSchema entity)
Copyright © 2011–2014 Red Hat. All rights reserved.