org.glassfish.virtualization.spi
Interface OsInterface


@Contract
public interface OsInterface

Interface responsible for all OS specific tasks like suspending and resuming machines

Author:
Jerome Dochez

Method Summary
 String groupId()
          Returns the current serverPool id
 String macAddressGen()
          Generates a new unique mac address
 Map<String,String> populateMacToIpsTable(PhysicalServerPool group)
          populate the ip to mac address map
 void resume(Machine machine)
          resume the target machine
 void suspend(Machine machine)
          Suspend the target machine
 String userId()
          Returns the current user id
 

Method Detail

suspend

void suspend(Machine machine)
             throws IOException
Suspend the target machine

Parameters:
machine - the target machine
Throws:
IOException - if the command fails to executeAndWait

resume

void resume(Machine machine)
            throws IOException
resume the target machine

Parameters:
machine - the target machine
Throws:
IOException - if the command fails to executeAndWait

populateMacToIpsTable

Map<String,String> populateMacToIpsTable(PhysicalServerPool group)
populate the ip to mac address map


macAddressGen

String macAddressGen()
Generates a new unique mac address


userId

String userId()
Returns the current user id


groupId

String groupId()
Returns the current serverPool id



Copyright © 2012. All Rights Reserved.