Dell Vizioncore Bedienungsanleitung Seite 128

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 141
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 127
128 vFoglight
Web Component Tutorial
Add a host
def hostName = @contextIn["hostName"];
def operatingSystem = @contextIn["operatingSystem"];
println hostName;
println operatingSystem;
topSrv = server.get("TopologyService");
hostIns =
topSrv.getObjectShell(topSrv.getType(operatingSystem+"_Host"));
hostIns.set("name", hostName);
objects = topSrv.mergeData(hostIns);
Remove Host
def hostToDelete = @contextIn["hostToDelete"];
topSrv = server.get("TopologyService");
tempO = topSrv.getObject(hostToDelete.getUniqueId());
topSrv.deleteObject(tempO);
Add Annotation
def hostId = @contextIn["hostId"];
def newAnnotation = @contextIn["newAnnotation"];
topSrv = server.get("TopologyService");
tempO = topSrv.getObject(hostId);
tempO = topSrv.beginUpdate(tempO);
hostAnnotations = tempO.get("annotations");
hostAnnotations.clear();
hostAnnotations.add(newAnnotation);
tempO= topSrv.endUpdate(tempO);
Configure the Views
Now that the task components are available, you can create the views that will invoke
them.
Configuring Add a Host Form
The Add a host form contains three nested views for collecting the information needed
when adding a new host.
Module tasktutorial
Name Add a host form
Component Grid
Seitenansicht 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 140 141

Kommentare zu diesen Handbüchern

Keine Kommentare