com.sun.enterprise.registration.impl
Class SysnetTransferManager

java.lang.Object
  extended by com.sun.enterprise.registration.impl.SysnetTransferManager

public class SysnetTransferManager
extends java.lang.Object

Tranfers service tag information from the local product repository to the SysNet repository using the SysNet stclient utility.

Author:
tjquinn

Constructor Summary
SysnetTransferManager(java.io.File repositoryFile)
          Creates a new SysnetTransferManager to transfer the service tags in the specified repository to SysNet.
 
Method Summary
 int transferServiceTags()
          Transfers previously-untransferred service tags from the local repository to SysNet using the stclient utility for the current platform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysnetTransferManager

public SysnetTransferManager(java.io.File repositoryFile)
                      throws RegistrationException
Creates a new SysnetTransferManager to transfer the service tags in the specified repository to SysNet.

Throws:
RegistrationException
Method Detail

transferServiceTags

public int transferServiceTags()
                        throws RegistrationException
Transfers previously-untransferred service tags from the local repository to SysNet using the stclient utility for the current platform.

Each local service tag is marked as transferred immediately after the corresponding stclient invocation completes. So, an error during the stclient invocation for a given service tag does not erase the fact that earlier transfers of other service tags succeeded.

Returns:
the number of tags transferred; -1 if the stclient command is not available
Throws:
RegistrationException - for errors encountered during transfer


Copyright © 2012 GlassFish Community. All Rights Reserved.