예제 #1
0
from Filepool.FPNetException import FPNetException
from Filepool.FPServerException import FPServerException
from Filepool.FPClientException import FPClientException
from Filepool.FPClip import FPClip
from Filepool.FPTag import FPTag
from Filepool.FPFileOutputStream import FPFileOutputStream
from Filepool.FPRetention import FPRetention

try:

    ip = raw_input("Pool address: ")

    pool = FPPool(ip)

    pool.setGlobalOption(FPLibrary.FP_OPTION_EMBEDDED_DATA_THRESHOLD, 100 * 1024)

    print pool.getComponentVersion(FPLibrary.FP_VERSION_FPLIBRARY_DLL)

    pool.close()


except FPClientException, c:
    print c
    traceback.print_exc(file=sys.stdout)
except FPServerException, s:
    print s
except FPNetException, n:
    print n
except FPException, e:
    print e
예제 #2
0
  print "\t" + str(pool.infoVersion) + "\n"

  print "CentraStar Version:\n"
  print "\t" + pool.version + "\n"

  print "Cluster Capacity:\n"
  print "\t" + str(pool.capacity) + "\n"

  print "Cluster Free Space:\n"
  print "\t" + str(pool.freeSpace) + "\n"

  print "Cluster Replica Address:\n"
  print "\t" + pool.replicaAddress + "\n"

  print "Native SDK Library Version:\n"
  print "\t" + pool.getComponentVersion( 
FPLibrary.FP_VERSION_FPLIBRARY_DLL ) + "\n"

  print "Cluster Time:\n"
  print "\t" + pool.getClusterTime() + "\n"

  print "Pool Capabilities:\n"

  print "\tRead Operation Allowed:";
  print "\t" + pool.getCapability( FPLibrary.FP_READ, 
FPLibrary.FP_ALLOWED) + "\n"

  print "\tWrite Operation Allowed:";
  print "\t" + pool.getCapability( FPLibrary.FP_WRITE, 
FPLibrary.FP_ALLOWED) + "\n"

  print "\tDelete Operation Allowed:";
예제 #3
0
        ip = argv[1]
    except IndexError:
        ip = raw_input("Pool address: ")

    pool = FPPool(ip)

    pool.getPoolInfo()

    print "Cluster ID\t" + pool.clusterid
    print "Cluster Name\t" + pool.clusterName
    print "Pool Info Version\t" + str(pool.infoVersion)
    print "CentraStar Version\t" + pool.version
    print "Cluster Capacity\t" + str(pool.capacity)
    print "Cluster Free Space\t" + str(pool.freeSpace)
    print "Cluster Replica Address\t" + pool.replicaAddress
    print "Native SDK Library Version\t" + pool.getComponentVersion(FPLibrary.FP_VERSION_FPLIBRARY_DLL)
    print "Cluster Time\t" + pool.getClusterTime()

    #
    # Capabilities
    #
    print "Pool Capabilities:\n"
    print "\tRead Operation Allowed+\t" + pool.getCapability(FPLibrary.FP_READ, FPLibrary.FP_ALLOWED)
    print "\tWrite Operation Allowed+\t" + pool.getCapability(FPLibrary.FP_WRITE, FPLibrary.FP_ALLOWED)
    print "\tDelete Operation Allowed+\t" + pool.getCapability(FPLibrary.FP_DELETE, FPLibrary.FP_ALLOWED)
    print "\tPurge Operation Allowed+\t" + pool.getCapability(FPLibrary.FP_PURGE, FPLibrary.FP_ALLOWED)
    print "\tPrivileged Delete Operation Allowed+\t" + pool.getCapability(FPLibrary.FP_PRIVILEGEDDELETE, FPLibrary.FP_ALLOWED)
    print "\tExistence Checking Operation Allowed+\t" + pool.getCapability(FPLibrary.FP_EXIST, FPLibrary.FP_ALLOWED)
    print "\tMonitor Operation Allowed+\t" + pool.getCapability(FPLibrary.FP_MONITOR, FPLibrary.FP_ALLOWED)
    print "\tQuery Operation Allowed+\t" + pool.getCapability(FPLibrary.FP_CLIPENUMERATION, FPLibrary.FP_ALLOWED)
    print "\tDefault Retention Period+\t" + pool.getCapability(FPLibrary.FP_RETENTION, FPLibrary.FP_DEFAULT)
예제 #4
0
from Filepool.FPClientException import FPClientException
from Filepool.FPException import FPException
from Filepool.FPLibrary import FPLibrary
from Filepool.FPNetException import FPNetException
from Filepool.FPPool import FPPool
from Filepool.FPServerException import FPServerException

try:

    ip = raw_input("Pool address: ")

    pool = FPPool(ip)

    pool.setGlobalOption(FPLibrary.FP_OPTION_EMBEDDED_DATA_THRESHOLD,
                         100 * 1024)

    print pool.getComponentVersion(FPLibrary.FP_VERSION_FPLIBRARY_DLL)

    pool.close()

except FPClientException, c:
    print c
    traceback.print_exc(file=sys.stdout)
except FPServerException, s:
    print s
except FPNetException, n:
    print n
except FPException, e:
    print e
예제 #5
0
        ip = argv[1]
    except IndexError:
        ip = raw_input("Pool address: ")

    pool = FPPool(ip)

    pool.getPoolInfo()

    print "Cluster ID\t" + pool.clusterid
    print "Cluster Name\t" + pool.clusterName
    print "Pool Info Version\t" + str(pool.infoVersion)
    print "CentraStar Version\t" + pool.version
    print "Cluster Capacity\t" + str(pool.capacity)
    print "Cluster Free Space\t" + str(pool.freeSpace)
    print "Cluster Replica Address\t" + pool.replicaAddress
    print "Native SDK Library Version\t" + pool.getComponentVersion(
        FPLibrary.FP_VERSION_FPLIBRARY_DLL)
    print "Cluster Time\t" + pool.getClusterTime()

    #
    # Capabilities
    #
    print "Pool Capabilities:\n"
    print "\tRead Operation Allowed+\t" + pool.getCapability(
        FPLibrary.FP_READ, FPLibrary.FP_ALLOWED)
    print "\tWrite Operation Allowed+\t" + pool.getCapability(
        FPLibrary.FP_WRITE, FPLibrary.FP_ALLOWED)
    print "\tDelete Operation Allowed+\t" + pool.getCapability(
        FPLibrary.FP_DELETE, FPLibrary.FP_ALLOWED)
    print "\tPurge Operation Allowed+\t" + pool.getCapability(
        FPLibrary.FP_PURGE, FPLibrary.FP_ALLOWED)
    print "\tPrivileged Delete Operation Allowed+\t" + pool.getCapability(