Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * File: VirtualMachinePlatform.java
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
  * The contents of this file are subject to the terms and conditions of 
  * the Common Development and Distribution License 1.0 (the "License").
  *
  * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the License by consulting the LICENSE.txt file
 * distributed with this file, or by consulting https://oss.oracle.com/licenses/CDDL
 *
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing the software, include this License Header Notice in each
 * file and include the License file LICENSE.txt.
 *
 * MODIFICATIONS:
 * If applicable, add the following below the License Header, with the fields
 * enclosed by brackets [] replaced by your own identifying information:
 * "Portions Copyright [year] [name of copyright owner]"
 */
package com.oracle.tools.runtime.virtual;
A com.oracle.tools.runtime.Platform implementation that represents an O/S running in a virtual machine.

Copyright (c) 2014. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author(s):
Jonathan Knight
public abstract class VirtualPlatform extends RemotePlatform implements Closeable
{
    
The action to perform when this is closed
    private CloseAction closeAction;


    
Construct a new VirtualPlatform.

Parameters:
name the name of this VirtualPlatform
address the java.net.InetAddress that will be used to SSH into this VirtualPlatform
port the remote port that will be used to SSH into this VirtualPlatform
userName the user name on the remote host
authentication the com.oracle.tools.runtime.remote.Authentication for connecting to the host
closeAction the action to perform when this VirtualPlatform is closed
    public VirtualPlatform(String name,
                           InetAddress address,
                           int port,
                           String userName,
                           Authentication authentication,
                           CloseAction closeAction)
    {
        super(nameaddressportuserNameauthentication);
        this. = closeAction != null ? closeAction : .;
    }


    
Close this VirtualPlatform by performing the action specified by the closeAction field.

    @Override
    public abstract void close() throws IOException;


    
Obtain the CloseAction to perform when this VirtualPlatform is closed.

Returns:
the CloseAction to perform when this VirtualPlatform is closed
    public CloseAction getCloseAction()
    {
        return ;
    }
New to GrepCode? Check out our FAQ X