Package com.intel.mtwilson.datatypes

Examples of com.intel.mtwilson.datatypes.Hostname


       
       
                                            HostTrustResponse hostTrustResponse = null;
                                                try {
                                                        log.info("Getting trust Information for Host "+hostName);
                                                        hostTrustResponse = apiClientServices.getHostTrust(new Hostname(hostDetailsEntityVO.getHostName()));
                                                        List<TxtHostRecord> hosts = apiClientServices.queryForHosts(hostDetailsEntityVO.getHostName());
                                                        TxtHostRecord txtHostRecord = null;
                                                        for(TxtHostRecord record : hosts) {
                                                            if( record.HostName.equals(hostDetailsEntityVO.getHostName())) {
                                                                txtHostRecord = record;
View Full Code Here


  @Override
  public boolean deleteHostDetails(String hostID, String hostName,AttestationService apiClientServices) throws DemoPortalException {
    boolean result = false;
    try {
      //Call to Services to delete HOST.
      apiClientServices.deleteHost(new Hostname(hostName));
     
      result = true;
    } catch (Exception e) {
      log.error("Errror While Deleting Host.");
       throw ConnectionUtil.handleException(e);
View Full Code Here

                                HostsTrustReportType report = null;
                                List<HostReportTypeVO> hostReportTypeVO = new ArrayList<HostReportTypeVO>();
                                        try {
                                List<Hostname> hostList = new ArrayList<Hostname>();
                                for (String host : hostNames) {
                                        hostList.add(new Hostname(host));
                                }
                                report = service.getHostTrustReport(hostList);
                                        } catch (Exception e) {
                                                log.error(e.getMessage());
                                                throw  ConnectionUtil.handleException(e);
View Full Code Here

  public List<PcrLogReport> getFailureReportData(String hostName,ApiClient attestationService) throws Exception {
    log.info("DemoPortalServicesImpl.getFailureReportData >>");
   
      AttestationReport report;
      try {
        report = attestationService.getAttestationReport(new Hostname(hostName));
       
      } catch (Exception e) {
        log.error(e.getMessage());
         throw ConnectionUtil.handleException(e);
      }
View Full Code Here

public class GetHostTrust extends AbstractCommand {

    @Override
    public void execute(String[] args) throws Exception {
        ApiClient api = getClient();
        HostTrustResponse response = api.getHostTrust(new Hostname(args[0]));
        System.out.println(toJson(response));
    }
View Full Code Here

    @GET
    @Consumes(MediaType.TEXT_PLAIN)
    @Produces(MediaType.APPLICATION_XML)
    @Path("/manifest")
    public JAXBElement<HostManifestReportType> getManifestReport(@QueryParam("hostName")String hostName) {
        return new JAXBElement<HostManifestReportType>(new QName("host_manifest_report"), HostManifestReportType.class,reportsBO.getReportManifest(new Hostname(hostName))); // datatype.Hostname       
    }
View Full Code Here

    @GET
    @Consumes(MediaType.TEXT_PLAIN)
    @Produces(MediaType.APPLICATION_XML)
    @Path("/attestation")
    public String getHostAttestationReport(@QueryParam("hostName")String hostName) {
        return reportsBO.getHostAttestationReport(new Hostname(hostName));  
    }
View Full Code Here

   
    private List<Hostname> hostnameListFromCSV(String hostnameCSV) {
        ArrayList<Hostname> list = new ArrayList<Hostname>();
        String stringArray[] = hostnameCSV.split(",");
        for(String hostname : stringArray) {
            list.add(new Hostname(hostname));
        }
        return list;
    }
View Full Code Here

    @Consumes(MediaType.TEXT_PLAIN)
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/attestationreport")
    public AttestationReport getAttestationReport(@QueryParam("hostName")String hostName,
            @QueryParam("failure_only") @DefaultValue("false") Boolean failureOnly) {
        return reportsBO.getAttestationReport(new Hostname(hostName),failureOnly); // datatype.Hostname       
    }
View Full Code Here

TOP

Related Classes of com.intel.mtwilson.datatypes.Hostname

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.